Location Asset availability in API report

51 views
Skip to first unread message

Oksana Sulyma

unread,
Oct 4, 2024, 3:02:31 PM10/4/24
to Google Ads API and AdWords API Forum
Hi team!
I Google Ads UI we can see Assets and Associations like Image, CallOut, Location.
Could you please advice API report that can be used to pull LOCATION Assets list? 
Thanks in advance,
Oksana

Google Ads API Forum Advisor

unread,
Oct 4, 2024, 7:33:09 PM10/4/24
to adwor...@googlegroups.com
Hi,

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

In order to assist you further, please provide us with the un cropped UI screenshot of the report that you're trying to retrieve via the API. 

You can send the details via Reply privately to the author option, or direct private reply to this email.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGcKG:ref" (ADR-00270652)

Thanks,
 
Google Logo Google Ads API Team


Oksana Sulyma

unread,
Oct 7, 2024, 5:01:21 PM10/7/24
to Google Ads API and AdWords API Forum
Replied privately, thanks in advance!

Oksana Sulyma

unread,
Oct 7, 2024, 5:01:59 PM10/7/24
to ads...@forumsupport.google, adwor...@googlegroups.com, Eugenia Mankova
Hi team,
Sorry for the delay on this.
Attaching screenshots on how this looks in Google Ads UI.
Please advise best endpoint to get the same data via API.
Thanks a lot!
Oksana
image-20241002-194240.pngimage-20241002-194234.png


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads API and AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/2yZNKaDsNdM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/hUvZJ000000000000000000000000000000000000000000000SKUJMD00vOP64cwARhGVVo6yEsGQ5g%40sfdc.net.

Google Ads API Forum Advisor

unread,
Oct 8, 2024, 3:44:10 AM10/8/24
to oks...@tapclicks.com, eugenia...@tapclicks.com, adwor...@googlegroups.com
Hi Oksana,

Please be informed that the location assets do not store the location details in the asset. Instead, they store a Place Id that allows you to obtain the data via the Places ID. To get the addresses of the location assets, you need to use the Places API which comes at cost. 

Oksana Sulyma

unread,
Oct 8, 2024, 6:43:30 AM10/8/24
to Google Ads API Forum Advisor, eugenia...@tapclicks.com, adwor...@googlegroups.com
Thanks team! 

I don’t see 'Location’ as available asset type as example here https://developers.google.com/google-ads/api/fields/v17/campaign_asset#campaign_asset.field_type .

But I think we used to be able to get Location Id (not details) via API earlier. Was this ability deprecated? 

Thanks,
Oksana

Google Ads API Forum Advisor

unread,
Oct 8, 2024, 1:08:20 PM10/8/24
to oks...@tapclicks.com, eugenia...@tapclicks.com, adwor...@googlegroups.com
Hi Oksana,

The location assets are handled differently from other asset types. See Location assets for details. The campaign_asset.field_type won't contain the asset type 'location'. You need to use the asset.type field from the asset report. Please see the sample query below for reference: 

SELECT asset.location_asset.business_profile_locations,  
asset.location_asset.location_ownership_type, asset.location_asset.place_id, asset.id, 
asset.name, asset.resource_name, asset.source FROM asset WHERE asset.type = 'LOCATION'"
  

I have successfully replicated the above query on my end and managed to retrieve the location asset using the customer ID "1618748068". Kindly give this query a try. Once you have obtained the place ID, you will need to utilize the Places API to access the details of the locations, which incurs a cost.

Could you also let us know which report you've used earlier to retrieve the location ID?

Oksana Sulyma

unread,
Oct 8, 2024, 2:46:37 PM10/8/24
to Google Ads API Forum Advisor, eugenia...@tapclicks.com, adwor...@googlegroups.com
Thanks for your response team, this is very helpful!

> Could you also let us know which report you've used earlier to retrieve the location ID?

In fact our client says that our application used to provide Location Assets information before (pulled from Google Ads API), but from engineering side I can’t find traces on that calls :)

Thanks again, I think we are all set here!

Oksana
Reply all
Reply to author
Forward
0 new messages