Hi, In a *single* mutate request you should have:
1. An AdGroupCriterionOperation <https://developers.google.com/adwords/api/docs/reference/v201402/AdGroupCriterionService.AdGroupCriterionOperation> with operator = *REMOVE* and operand = the AdGroupCriterion of the root ProductPartition (the one with a null *parentCriterionId*). This is to do a cascading delete of the current product partition tree. 2. AdGroupCriterionOperation <https://developers.google.com/adwords/api/docs/reference/v201402/AdGroupCriterionService.AdGroupCriterionOperation>s with operator = *ADD* and operand = the AdGroupCriterions for the new ProductPartitions. The collection of ADD operations must create a complete, valid tree. Below is a sample mutate request where the existing root ProductPartition had criterion ID 18283950120. Cheers, Josh, AdWords API Team <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201402"> <!-- Operation to REMOVE the current root --> <operations> <operator>REMOVE</operator> <operand xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201402" xsi:type="ns2:BiddableAdGroupCriterion"> <ns2:adGroupId>12667430234</ns2:adGroupId> <ns2:criterionUse>BIDDABLE</ns2:criterionUse> <ns2:criterion xsi:type="ns2:ProductPartition"> <ns2:id>*18283950120*</ns2:id> <ns2:type>PRODUCT_PARTITION</ns2:type> <ns2:Criterion.Type>ProductPartition</ns2:Criterion.Type> <ns2:partitionType>SUBDIVISION</ns2:partitionType> </ns2:criterion> <ns2:AdGroupCriterion.Type>BiddableAdGroupCriterion</ns2:AdGroupCriterion.Type> </operand> </operations> <!-- Operations to ADD the new COMPLETE and VALID tree --> <operations> <operator>ADD</operator> <operand xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201402" xsi:type="ns3:BiddableAdGroupCriterion"> <ns3:adGroupId>12667430234</ns3:adGroupId> <ns3:criterion xsi:type="ns3:ProductPartition"> <ns3:id>-1</ns3:id> <ns3:partitionType>SUBDIVISION</ns3:partitionType> </ns3:criterion> </operand> </operations> <operations> <operator>ADD</operator> <operand xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201402" xsi:type="ns4:BiddableAdGroupCriterion"> <ns4:adGroupId>12667430234</ns4:adGroupId> <ns4:criterion xsi:type="ns4:ProductPartition"> <ns4:partitionType>UNIT</ns4:partitionType> <ns4:parentCriterionId>-1</ns4:parentCriterionId> <ns4:caseValue xsi:type="ns4:ProductCanonicalCondition"> <ns4:condition>NEW</ns4:condition> </ns4:caseValue> </ns4:criterion> <ns4:biddingStrategyConfiguration> <ns4:bids xsi:type="ns4:CpcBid"> <ns4:bid> <ns4:microAmount>200000</ns4:microAmount> </ns4:bid> </ns4:bids> </ns4:biddingStrategyConfiguration> </operand> </operations> <operations> <operator>ADD</operator> <operand xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201402" xsi:type="ns5:BiddableAdGroupCriterion"> <ns5:adGroupId>12667430234</ns5:adGroupId> <ns5:criterion xsi:type="ns5:ProductPartition"> <ns5:partitionType>UNIT</ns5:partitionType> <ns5:parentCriterionId>-1</ns5:parentCriterionId> <ns5:caseValue xsi:type="ns5:ProductCanonicalCondition"> <ns5:condition>USED</ns5:condition> </ns5:caseValue> </ns5:criterion> <ns5:biddingStrategyConfiguration> <ns5:bids xsi:type="ns5:CpcBid"> <ns5:bid> <ns5:microAmount>100000</ns5:microAmount> </ns5:bid> </ns5:bids> </ns5:biddingStrategyConfiguration> </operand> </operations> <operations> <operator>ADD</operator> <operand xmlns:ns6="https://adwords.google.com/api/adwords/cm/v201402" xsi:type="ns6:BiddableAdGroupCriterion"> <ns6:adGroupId>12667430234</ns6:adGroupId> <ns6:criterion xsi:type="ns6:ProductPartition"> <ns6:id>-2</ns6:id> <ns6:partitionType>SUBDIVISION</ns6:partitionType> <ns6:parentCriterionId>-1</ns6:parentCriterionId> <ns6:caseValue xsi:type="ns6:ProductCanonicalCondition"/> </ns6:criterion> </operand> </operations> <operations> <operator>ADD</operator> <operand xmlns:ns7="https://adwords.google.com/api/adwords/cm/v201402" xsi:type="ns7:BiddableAdGroupCriterion"> <ns7:adGroupId>12667430234</ns7:adGroupId> <ns7:criterion xsi:type="ns7:ProductPartition"> <ns7:partitionType>UNIT</ns7:partitionType> <ns7:parentCriterionId>-2</ns7:parentCriterionId> <ns7:caseValue xsi:type="ns7:ProductBrand"> <ns7:value>BrandA</ns7:value> </ns7:caseValue> </ns7:criterion> <ns7:biddingStrategyConfiguration> <ns7:bids xsi:type="ns7:CpcBid"> <ns7:bid> <ns7:microAmount>900000</ns7:microAmount> </ns7:bid> </ns7:bids> </ns7:biddingStrategyConfiguration> </operand> </operations> <operations> <operator>ADD</operator> <operand xmlns:ns8="https://adwords.google.com/api/adwords/cm/v201402" xsi:type="ns8:BiddableAdGroupCriterion"> <ns8:adGroupId>12667430234</ns8:adGroupId> <ns8:criterion xsi:type="ns8:ProductPartition"> <ns8:partitionType>UNIT</ns8:partitionType> <ns8:parentCriterionId>-2</ns8:parentCriterionId> <ns8:caseValue xsi:type="ns8:ProductBrand"> <ns8:value>BrandB</ns8:value> </ns8:caseValue> </ns8:criterion> <ns8:biddingStrategyConfiguration> <ns8:bids xsi:type="ns8:CpcBid"> <ns8:bid> <ns8:microAmount>10000</ns8:microAmount> </ns8:bid> </ns8:bids> </ns8:biddingStrategyConfiguration> </operand> </operations> <operations> <operator>ADD</operator> <operand xmlns:ns9="https://adwords.google.com/api/adwords/cm/v201402" xsi:type="ns9:BiddableAdGroupCriterion"> <ns9:adGroupId>12667430234</ns9:adGroupId> <ns9:criterion xsi:type="ns9:ProductPartition"> <ns9:id>-3</ns9:id> <ns9:partitionType>SUBDIVISION</ns9:partitionType> <ns9:parentCriterionId>-2</ns9:parentCriterionId> <ns9:caseValue xsi:type="ns9:ProductBrand"/> </ns9:criterion> </operand> </operations> <operations> <operator>ADD</operator> <operand xmlns:ns10="https://adwords.google.com/api/adwords/cm/v201402" xsi:type="ns10:BiddableAdGroupCriterion"> <ns10:adGroupId>12667430234</ns10:adGroupId> <ns10:criterion xsi:type="ns10:ProductPartition"> <ns10:partitionType>UNIT</ns10:partitionType> <ns10:parentCriterionId>-3</ns10:parentCriterionId> <ns10:caseValue xsi:type="ns10:ProductBiddingCategory"> <ns10:type>BIDDING_CATEGORY_L1</ns10:type> <ns10:value>-5914235892932915235</ns10:value> </ns10:caseValue> </ns10:criterion> <ns10:biddingStrategyConfiguration> <ns10:bids xsi:type="ns10:CpcBid"> <ns10:bid> <ns10:microAmount>750000</ns10:microAmount> </ns10:bid> </ns10:bids> </ns10:biddingStrategyConfiguration> </operand> </operations> <operations> <operator>ADD</operator> <operand xmlns:ns11="https://adwords.google.com/api/adwords/cm/v201402" xsi:type="ns11:BiddableAdGroupCriterion"> <ns11:adGroupId>12667430234</ns11:adGroupId> <ns11:criterion xsi:type="ns11:ProductPartition"> <ns11:partitionType>UNIT</ns11:partitionType> <ns11:parentCriterionId>-3</ns11:parentCriterionId> <ns11:caseValue xsi:type="ns11:ProductBiddingCategory"> <ns11:type>BIDDING_CATEGORY_L1</ns11:type> </ns11:caseValue> </ns11:criterion> <ns11:biddingStrategyConfiguration> <ns11:bids xsi:type="ns11:CpcBid"> <ns11:bid> <ns11:microAmount>110000</ns11:microAmount> </ns11:bid> </ns11:bids> </ns11:biddingStrategyConfiguration> </operand> </operations> </mutate> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.