Question about lookup_location.py

36 views
Skip to first unread message

Arnab Ganguly

unread,
Aug 8, 2019, 1:31:05 AM8/8/19
to AdWords API and Google Ads API Forum
How do I get the location of all countries supported  from lookup_location.py present under (googleads-python-lib/examples/adwords/v201809/targeting/lookup_location.py )? 
Currently I put the country names, run the script and get the details from the output.
Thanks,
-A

Google Ads API Forum Advisor Prod

unread,
Aug 8, 2019, 2:46:22 AM8/8/19
to adwor...@googlegroups.com

Hi Arnab,

The LocationCriterionService, which is used in the look up location example, currently only returns limited information, such as only those related to the input. It does not, unfortunately, have the ability to return more advanced searches (retrieve all supported Country type location criteria) such as the one you are looking for.

You may, however, refer to our geo targeting spreadsheet and filter using the Target Type = Country in order to retrieve all supported location criteria of the said type along with their details.

Thanks and regards,
Peter
Google Ads API Team



ref:_00D1U1174p._5001UEIKWj:ref

Arnab Ganguly

unread,
Aug 8, 2019, 3:42:50 PM8/8/19
to AdWords API and Google Ads API Forum
Hey Peter,
Thanks for the intel.I appreciate your time.
Regards,
-A
Reply all
Reply to author
Forward
0 new messages