Problem when using Google Ads Keyword Planner with Python

422 views
Skip to first unread message

Daniel Heredia Mejias

unread,
Oct 7, 2022, 4:47:53 AM10/7/22
to Google Ads API and AdWords API Forum
When I try to use this piece of code: https://github.com/googleads/google-ads-python/blob/main/examples/planning/generate_keyword_ideas.py to extract ideas from Keyword Planner, it throws an error with the variable geo_target_constants.

The error message is: Assignment not allowed to message, map, or repeated field "geo_target_constants" in protocol message object.

Could you help to demystify if there is something wrong with the piece of code itself or the way I am executing it?

Google Ads API Forum Advisor

unread,
Oct 7, 2022, 9:30:49 AM10/7/22
to daniel.he...@gmail.com, adwor...@googlegroups.com
Hi Daniel,

Thank you for raising this concern to the Google Ads API Forum.

To have a clearer view, could you please provide the complete API request and response logs with request ID and request header that generated on your end where we can see the said error? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. This information will help our team to better check this.

You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsapi-support@google.com.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2f2y6s:ref
Reply all
Reply to author
Forward
0 new messages