Retrieving ParentLocations in Google Ads

94 views
Skip to first unread message

Kevin

unread,
Dec 9, 2020, 2:55:51 PM12/9/20
to AdWords API and Google Ads API Forum
Hi,

I was having trouble finding an analog for the ParentLocations data from the AdWords API in the GoogleAds API. Where can I find this data using the Google Ads API?

Thanks,
Kevin

Google Ads API Forum Advisor Prod

unread,
Dec 10, 2020, 10:52:52 AM12/10/20
to lopsid...@gmail.com, adwor...@googlegroups.com

Hi Kevin,

In Google Ads API, you can use the GeoTargetConstantService which will return locations. This object contains the field parent_geo_target which is equivalent to the parent locations in AdWords API.

Regards,
Anthony
Google Ads API Team
 

Google Logo
Anthony
Google Ads API Team
 


ref:_00D1U1174p._5004Q28okHw:ref

Kevin

unread,
Dec 10, 2020, 3:46:29 PM12/10/20
to AdWords API and Google Ads API Forum
Worked for me, thanks Anthony!

sebastia...@gmail.com

unread,
Mar 30, 2021, 11:41:28 AM3/30/21
to AdWords API and Google Ads API Forum
Hi Anthony,

Actually parent_geo_target is a dumbed-down version of ParentLocations:

1. It skips some hierarchy. Example: according to parent_geo_target the postal code SW4 (id: 9045894) is a child of England (id: 20339). But ParentLocations accurately includes the city London (id: 1006886).

2. In addition it can't replace ParentLocations as some locations actually have multiple parents. Example Kwinana Town Centre (id: 1000658) is actually a child of both Perth (id: 1000676) and Southern & Fremantle (id: 9060985). Which can be derived via the ParentLocations field and verified in the Google Ads UI.

To switch from the Adwords API I would need the equivalent of the ParentLocations field that returns all of the location's parents.

/Sebastian

Google Ads API Forum Advisor Prod

unread,
Mar 30, 2021, 4:01:33 PM3/30/21
to sebastia...@gmail.com, adwor...@googlegroups.com
Hi Sebastian,

Thanks for this feedback. I will go pass this to our team.

Cheers,
Anthony

sebastia...@gmail.com

unread,
Mar 30, 2021, 4:28:18 PM3/30/21
to AdWords API and Google Ads API Forum
Great. Thanks!

Jonatan Heyman

unread,
Mar 22, 2022, 11:21:33 AM3/22/22
to Google Ads API and AdWords API Forum
Hi!

Any updates on how to retrieve all the parent IDs for a location using the Google Ads API?

The geo_target_constant.parent_geo_target seems to only return a single parent still.

Best,
Jonatan

Google Ads API Forum Advisor

unread,
Mar 23, 2022, 3:40:09 AM3/23/22
to jon...@heyman.info, adwor...@googlegroups.com
Hi Jonatan,

Thank you for following up on this concern.

A feature request for retrieving parent locations was already raised by one of our members. For now, you may keep an eye on our blog for updates and announcements.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


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