Hi Sreelakshmi, Sorry for the delay, I've been working on other projects this week. The image you've attached does not appear to show up.
I am trying to modify the sample you've given to do a small test, and still running into an error - if I exclude the parentCriterionId:-1, it gives an error that I require one. If I put in the -1 I get the error:googleads.errors.GoogleAdsServerFault: [AdGroupCriterionError.PRODUCT_PARTITION_DOES_NOT_EXIST @ operations[1].operand.criterion.parentCriterionId; trigger:'TempCriterionId{id=1}'] The mutate request operations look like this: operations = [{ 'operator': 'ADD', 'operand': { 'xsi_type': 'BiddableAdGroupCriterion', 'adGroupId': adgroup_id, # Make sure that caseValue and parentCriterionId are left unspecified. # This makes this partition as generic as possible to use as a # fallback when others don't match. 'criterion': { 'xsi_type': 'ProductPartition', 'partitionType': 'UNIT' }, 'biddingStrategyConfiguration': { 'bids': [{ 'xsi_type': 'CpcBid', 'bid': { 'microAmount': 500000 } }] } } }, { 'operator': 'ADD', 'operand': { 'xsi_type': 'BiddableAdGroupCriterion', 'adGroupId': adgroup_id, 'criterion': { 'xsi_type': 'ProductPartition', 'partitionType': 'UNIT', 'parentCriterionId':-1, 'caseValue': {'xsi_type':'ProductOfferId', 'value': '2237847' } }, 'biddingStrategyConfiguration': { 'bids': [{ 'xsi_type': 'CpcBid', 'bid': { 'microAmount': 500000 } }] } }, } ] I think I'm almost there.. but I am not sure of how to get the appropriate parentCriterionId in order for this to succeed. Please let me know if you want the soap requst logs. On Tuesday, October 23, 2018 at 2:57:25 PM UTC-5, Sreelakshmi Sasidharan (AdWords API Team) wrote: > > Hi Kevin, > > Yes, I did get the details that you had shared. If you are looking for a > product partition tree as attached in the screenshot, you could use the > code sample attached. The "empty" caseValue of the correct type is required > to represent "all other values". Please check here > <https://developers.google.com/adwords/api/docs/guides/shopping#partitioning> > for > more details. You can refer to this sample > <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fgoogleads%2Fgoogleads-python-lib%2Fblob%2Fmaster%2Fexamples%2Fadwords%2Fv201809%2Fshopping%2Fadd_shopping_campaign.py&sa=D&sntz=1&usg=AFQjCNHTDe-eqEGXVSdEztnY4d-1k-UYqg> > to > create a shopping campaign and the ad group. Please let me know if you have > any additional questions. > > Thanks, > Sreelakshmi, AdWords API Team > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/e81af8f7-0619-49aa-82ba-cd8593376672%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.