Hi Neil, To better investigate the issue, could you provide the complete SOAP request and response logs when the error was encountered via *Reply privately to author*? If you have not yet enabled logging, you may refer to this guide <https://github.com/googleads/googleads-python-lib/blob/master/README.md#how-do-i-log-soap-interactions> on how to do so.
Regards, Dannison AdWords API Team On Tuesday, November 20, 2018 at 1:01:11 AM UTC+8, Nellle Rickchards wrote: > > Hello, > > I'm following the "Build a product partition tree for an ad group" example > in Python ( > https://developers.google.com/adwords/api/docs/samples/python/shopping-campaigns#build-a-product-partition-tree-for-an-ad-group > ) > > I ran the code after I updated the adgroup and merchant ids. The new > product partition appear in the Adwords UI however the script is outputting > the following error: > > Traceback (most recent call last): > File "shopping_adgroup.py", line 207, in <module> > main(adwords_client, ADGROUP_ID) > File "shopping_adgroup.py", line 162, in main > children[adgroup_criterion['criterion']['parentCriterionId']].append( > KeyError: None > > Any idea why this is happening? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/20c4101a-7028-4404-9e8f-c9743505353f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.