areaofinterest.getCity()

15 views
Skip to first unread message

Tülay Çağlayan

unread,
Apr 8, 2022, 9:05:47 AM4/8/22
to Google Ads API and AdWords API Forum
Hello,

areaofinterest.getCity() returns geoTargetConstants/citycode

Is there a way to get only city code ?

Or should I split with slash to get citycode or replace geoTargetConstants/ with empty ? 

Google Ads API Forum Advisor

unread,
Apr 8, 2022, 1:10:13 PM4/8/22
to tulayca...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

With regards to your concern, you can use geo_target_city field form geographic_view report. Let me know if this what you are looking for. If not, could you please provide the complete request and response logs, with the request-id?

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. You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


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