AdGroupCriterionError.PRODUCT_PARTITION_ALREADY_EXISTS and AdGroupCriterionError.PRODUCT_PARTITION_DOES_NOT_EXIST

184 views
Skip to first unread message

Илья Бовбель

unread,
Jun 26, 2017, 1:00:44 PM6/26/17
to AdWords API Forum
Hello,
I' ve got problem, when i'm trying to create a node in method AdGroupCriterionService. The problem is next: when i use this method to create ProductPartition element, (that never existed, I checked it by method get), I don't get answer, i get exception like this:
AdGroupCriterionError.PRODUCT_PARTITION_ALREADY_EXISTS @ operations[0].operand.criterion, AdGroupCriterionError.PRODUCT_PARTITION_DOES_NOT_EXIST @ operations[1].operand.criterion.parentCriterionId; trigger:'TempCriterionId{id=6476}'. But after that I checked if this element was created, and it had been.
I'm using php library, so my operands are:
Array
(
    [0] => Google\AdsApi\AdWords\v201705\cm\AdGroupCriterionOperation Object
        (
            [operand:protected] => Google\AdsApi\AdWords\v201705\cm\BiddableAdGroupCriterion Object
                (
                    [userStatus:protected] => 
                    [systemServingStatus:protected] => 
                    [approvalStatus:protected] => 
                    [disapprovalReasons:protected] => 
                    [destinationUrl:protected] => 
                    [firstPageCpc:protected] => 
                    [topOfPageCpc:protected] => 
                    [firstPositionCpc:protected] => 
                    [qualityInfo:protected] => 
                    [biddingStrategyConfiguration:protected] => Google\AdsApi\AdWords\v201705\cm\BiddingStrategyConfiguration Object
                        (
                            [biddingStrategyId:protected] => 
                            [biddingStrategyName:protected] => 
                            [biddingStrategyType:protected] => NONE
                            [biddingStrategySource:protected] => 
                            [biddingScheme:protected] => 
                            [bids:protected] => Array
                                (
                                )

                            [targetRoasOverride:protected] => 
                        )

                    [bidModifier:protected] => 
                    [finalUrls:protected] => 
                    [finalMobileUrls:protected] => 
                    [finalAppUrls:protected] => 
                    [trackingUrlTemplate:protected] => 
                    [urlCustomParameters:protected] => 
                    [adGroupId:protected] => 49364316891
                    [criterionUse:protected] => 
                    [criterion:protected] => Google\AdsApi\AdWords\v201705\cm\ProductPartition Object
                        (
                            [partitionType:protected] => SUBDIVISION
                            [parentCriterionId:protected] => 
                            [caseValue:protected] => 
                            [id:protected] => -6476
                            [type:protected] => 
                            [CriterionType:protected] => 
                        )

                    [labels:protected] => 
                    [forwardCompatibilityMap:protected] => 
                    [baseCampaignId:protected] => 
                    [baseAdGroupId:protected] => 
                    [AdGroupCriterionType:protected] => 
                )

            [exemptionRequests:protected] => 
            [operator:protected] => ADD
            [OperationType:protected] => 
        )

    [1] => Google\AdsApi\AdWords\v201705\cm\AdGroupCriterionOperation Object
        (
            [operand:protected] => Google\AdsApi\AdWords\v201705\cm\NegativeAdGroupCriterion Object
                (
                    [adGroupId:protected] => 49364316891
                    [criterionUse:protected] => 
                    [criterion:protected] => Google\AdsApi\AdWords\v201705\cm\ProductPartition Object
                        (
                            [partitionType:protected] => UNIT
                            [parentCriterionId:protected] => -6476
                            [caseValue:protected] => Google\AdsApi\AdWords\v201705\cm\ProductOfferId Object
                                (
                                    [value:protected] => 
                                    [ProductDimensionType:protected] => *
                                )

                            [id:protected] => 
                            [type:protected] => 
                            [CriterionType:protected] => 
                        )

                    [labels:protected] => 
                    [forwardCompatibilityMap:protected] => 
                    [baseCampaignId:protected] => 
                    [baseAdGroupId:protected] => 
                    [AdGroupCriterionType:protected] => 
                )

            [exemptionRequests:protected] => 
            [operator:protected] => ADD
            [OperationType:protected] => 
        )

)

Can you help me?
Message has been deleted
Message has been deleted

Shwetha Vastrad (AdWords API Team)

unread,
Jun 26, 2017, 5:08:03 PM6/26/17
to AdWords API Forum
Hi, 

I see that the AdGroup in question already has the root ProductPartition. You need to remove the existing ProductPartition before you make any changes to the partition tree. Please see this guide for more information on partitioning for shopping campaigns. Could you enable logging and provide the SOAP request and response logs so I can take a look? Please use Reply privately to author when responding. 

Thanks,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages