Hi Inillien -
Thanks for this question and for sending over all of this detailed information.
I'm the maintainer of our Python client library so should be able to help with
this issue. Unfortunately we don't have an example for adding a product listing
group tree in Python, but that will hopefully change soon.
I believe the issue here is that one of the AdGroupCriterion in your request
needs to have a case_value field that is not set. The problem is it's not very
clear on how to do that in the Python interface for Protobuf message classes
because it seems like the only way to add a field to a message is to give it a
value.
If you look closely at the request Bharani shared you'll noticed that one of
the criterion has a listing group with a case_value that looks like this:
case_value {
product_condition {
}
}
That represents an empty case_value field.
This set of documentation shows how to set an empty message field in Python. On
one of your AdGroupCriterion objects you'll need to do something like this:
ad_group_criterion.listing_group.case_value.CopyFrom(client.get_type('ListingDimensionInfo'))
Hope this helps, please let me know if you have any further questions. Best,
Ben Karl, Google Ads API Team
ref:_00D1U1174p._5001UEJA9R:ref
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/cyved000000000000000000000000000000000000000000000PWM1CI00cp943G7uSpiYiTgZB8cXbQ%40sfdc.net.