How to get city name from geo_target_city

401 views
Skip to first unread message

Madeleine ANTHONISEN

unread,
Jan 14, 2022, 10:36:23 AM1/14/22
to Google Ads API and AdWords API Forum
Hello,
I am querying from geographic_view. The command 

select geo_target_city from geographic_view

returns 

geoTargetConstants/<some integer>

How do I translate this into a city name?
Thanks !!

Google Ads API Forum Advisor

unread,
Jan 16, 2022, 10:50:21 PM1/16/22
to adwor...@googlegroups.com
Hi Madeleine,

Thank you for reaching out to our team.

You will need to use the geo_target_constant, include the geo_target_constant.name and filter the geo_target_constant.resource_name by the resource name you've retrieved in geographic_view. By the following the said suggestion, you can retrieve the name of a specific geo location.

Let me know if you have further questions.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


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