Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

location asset data performance max campaign

46 views
Skip to first unread message

Lộc Đoàn

unread,
Apr 22, 2025, 6:22:36 AMApr 22
to Google Ads API and AdWords API Forum
Hi Google Ads Team

I'm trying to retrieve reporting data of location asset for a performance max campaign. However, when I run this query, it only returns result of the search campaign. Can you help guide me how to get data of the performance max campaign?

Here's the query

SELECT campaign.id,metrics.impressions,metrics.clicks,metrics.cost_micros,asset_set.type,asset_set.id,asset.id,asset.type,metrics.interactions,metrics.cross_device_conversions FROM asset_set_asset  WHERE segments.date >= '2025-04-01' AND segments.date <= '2025-04-22' AND metrics.impressions > 0

Thanks in advance

Google Ads API Forum Advisor

unread,
Apr 22, 2025, 8:11:22 AMApr 22
to locdoan...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for contacting the Google Ads API support team.

I understand you are facing issues while retrieving data of location assets for a performance max campaign. To assist you further, provide us with the complete API logs (request and response logs with request-id and request header) generated at your end.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-04-22 12:10:17Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qUXlY:ref" (ADR-00300692)



Lộc Đoàn

unread,
Apr 22, 2025, 10:34:41 PMApr 22
to Google Ads API and AdWords API Forum
Hi Google Ads team,

I have sent a private message. Can you help confirm if you have received one?

Google Ads API Forum Advisor

unread,
Apr 23, 2025, 4:06:30 AMApr 23
to locdoan...@gmail.com, adwor...@googlegroups.com
Hi,

Yes, we have received your email. To fetch the location asset, you need to use the asset.type field from the asset report. Note that this report is a resource without metrics. 

You may 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 for pmax campaign. 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 comes at cost.

If you are not looking for the above, share the uncropped screenshot of the Google Ads UI by highlighting the fields you would like to fetch via the Google Ads API.  You can send the details via Reply privately to the author option, or direct private reply to this email.

Additionally, from the provided API logs, it seems that you are using the deprecated version (v17) of the Google Ads API. Note that 'v17' was deprecated on October 16, 2024, and will sunset on June 4, 2025. After this date, all v17 API requests will fail. To avoid any disruption, I would recommend upgrading to the latest version, 'v19', as soon as possible to take advantage of the new features. You can find more information about the deprecation and sunset dates for each version in the documentation. 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-04-23 08:05:21Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qUXlY:ref" (ADR-00300692)



Lộc Đoàn

unread,
Apr 23, 2025, 5:09:48 AMApr 23
to Google Ads API and AdWords API Forum
Hi Google Ads team

I have replied in private message, sharing the UI image, the query I tried. Can you help check if you have received the message?

Google Ads API Forum Advisor

unread,
Apr 23, 2025, 7:36:24 AMApr 23
to locdoan...@gmail.com, adwor...@googlegroups.com
Hi,

I would like to inform you that performance metrics like cost, clicks, Impressions, etc., are available for Performance Max campaigns at asset_group level. These metrics cannot be fetched at the asset level. Please refer to this guide for more information on PMAX reporting. Kindly refer to the below given GAQL query to retrieve the performance metrics for PMax campaigns via the Google Ads API:
SELECT metrics.clicks, metrics.impressions, 
metrics.conversions, metrics.average_cpc, 
metrics.cost_micros, campaign.advertising_channel_type, segments.date 
FROM asset_group WHERE campaign.advertising_channel_type = '"'"'PERFORMANCE_MAX'"'"' AND segments.date >= '"'"'2025-04-01'"'"' AND segments.date <= '"'"'2025-04-21'"'"' 
AND metrics.impressions > 0
If you would like to retrieve the location asset details of PMax campaigns as shown in the given screenshot, you can use the asset report. Please find the given GAQL query for your reference:
SELECT asset.id, asset.name, 
asset.location_asset.place_id, 
asset.location_asset.location_ownership_type 
FROM asset WHERE asset.id = 149233636843
Also, you can utilize the Google Ads Query Builder and Query Validator to build and validate the queries for retrieving the data from the Google Ads API.

I hope this helps! Feel free to get back to us in case of any further queries.
 

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5

[2025-04-23 11:35:39Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01qUXlY:ref" (ADR-00300692)



Reply all
Reply to author
Forward
0 new messages