src/Google/AdsApi/AdWords/Shopping/v201809/ProductPartitions.php
public static function asNegativeAdGroupCriterion(
        $adGroupId,
        ProductPartition $productPartition
    ) {
        $criterion = new NegativeAdGroupCriterion();
        $criterion->setAdGroupId($adGroupId);
        $criterion->setCriterion($productPartition);

        return $criterion;
    }
public static function asNegativeAdGroupCriterion(
        $adGroupId,
        ProductPartition $productPartition
    ) {
        $criterion = new NegativeAdGroupCriterion();
        $criterion->setAdGroupId($adGroupId);
        $criterion->setCriterion($productPartition);

        return $criterion;
    }
public static function asNegativeAdGroupCriterion ( $ adGroupId , ProductPartition $ productPartition ) { $ criterion = new NegativeAdGroupCriterion ( ) ; $ criterion -> setAdGroupId ( $ adGroupId ) ; $ criterion -> setCriterion ( $ productPartition ) ; return $ criterion ; }
Returns the negative ad group criterion with by specifying the product
partition.

@param int $adGroupId the ID of ad group that this ad group criterion is
created under
@param ProductPartition $productPartition the product partition to create
an ad group criterion
@return NegativeAdGroupCriterion the created negative ad group criterion
Returns the negative ad group criterion with by specifying the product partition .