Can't create partition tree or I just don't understand it

55 views
Skip to first unread message

WDirk

unread,
Oct 25, 2018, 8:49:11 AM10/25/18
to AdWords API and Google Ads API Forum
Hello, I've just linked my AdWords account with my Merchant account and created a shopping campaign, without using a Default partition tree. I tried to use an add_product_partion_tree.py from examples. After adding ID of my Ad group to the code and running it, I received this ERROR message:

Traceback (most recent call last):
  File "/Users/roelramp/PycharmProjects/adwords_Python3/googleads/common.py", line 1377, in MakeSoapRequest
    *packed_args, _soapheaders=soap_headers)['body']['rval']
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/proxy.py", line 42, in __call__
    self._op_name, args, kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 132, in send
    return self.process_reply(client, operation_obj, response)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 194, in process_reply
    return self.process_error(doc, operation)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 299, in process_error
    detail=fault_node.find('detail'))
zeep.exceptions.Fault: [CriterionError.INVALID_PRODUCT_BIDDING_CATEGORY @ operations[7].operand.criterion.caseValue; trigger:'ProductBiddingCategory{type=BIDDING_CATEGORY_L1, value=ProductCategoryId: -5914235892932915235}']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/roelramp/PycharmProjects/adwords_Python3/examples/adwords/v201809/shopping/add_product_partition_tree.py", line 276, in <module>
    main(adwords_client, ADGROUP_ID)
  File "/Users/roelramp/PycharmProjects/adwords_Python3/examples/adwords/v201809/shopping/add_product_partition_tree.py", line 221, in main
    result = adgroup_criterion_service.mutate(helper.GetOperations())
  File "/Users/roelramp/PycharmProjects/adwords_Python3/googleads/common.py", line 1389, in MakeSoapRequest
    e.detail, errors=error_list, message=e.message)
googleads.errors.GoogleAdsServerFault: [CriterionError.INVALID_PRODUCT_BIDDING_CATEGORY @ operations[7].operand.criterion.caseValue; trigger:'ProductBiddingCategory{type=BIDDING_CATEGORY_L1, value=ProductCategoryId: -5914235892932915235}']

I've even tried to check, if the ProductCategoryId exists, by running a get_product_category_taxanomy.py, and it looks all right. And now I don't know what to do, please help me.
Thank you

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Oct 25, 2018, 2:41:18 PM10/25/18
to AdWords API and Google Ads API Forum
Hello, 

The INVALID_PRODUCT_BIDDING_CATEGORY indicates that "Bidding categories do not form a valid path in the Shopping bidding category taxonomy". Since you were able to verify that, could you please enable logging and share you SOAP request? You could reply privately to the author while sharing the details. 

Thanks,
Sreelakshmi, AdWords API Team

WDirk

unread,
Oct 26, 2018, 2:18:55 AM10/26/18
to AdWords API and Google Ads API Forum
Ok, I've sent you a SOAP request ^^

Dne čtvrtek 25. října 2018 20:41:18 UTC+2 Sreelakshmi Sasidharan (AdWords API Team) napsal(a):

Josh Radcliff (AdWords API Team)

unread,
Oct 28, 2018, 4:28:01 PM10/28/18
to AdWords API and Google Ads API Forum
Hi,

You can get the list of valid product bidding categories for each country using ConstantDataService.getProductBiddingCategoryData, where your request includes a predicate for the Country of interest.

However, based on this Google Ads Help Center article, bidding categories are not supported for Czechia, so you'll want to use one of the other product dimensions for this particular Shopping campaign.

Thanks,
Josh, AdWords API Team

WDirk

unread,
Oct 29, 2018, 8:20:30 AM10/29/18
to AdWords API and Google Ads API Forum
Ok, thank you very much for the answer, it helped a lot ^^

Dne neděle 28. října 2018 21:28:01 UTC+1 Josh Radcliff (AdWords API Team) napsal(a):
Reply all
Reply to author
Forward
0 new messages