Adwords API - Product Partition: KeyError: None

15 views
Skip to first unread message

Nellle Rickchards

unread,
Nov 19, 2018, 12:01:11 PM11/19/18
to AdWords API and Google Ads API Forum
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? 

Dannison Yao (AdWords API Team)

unread,
Nov 19, 2018, 1:38:36 PM11/19/18
to AdWords API and Google Ads API Forum
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 on how to do so.

Regards,
Dannison
AdWords API Team
Reply all
Reply to author
Forward
0 new messages