Assets metrics

74 views
Skip to first unread message

Yevhen Serdiuk

unread,
Dec 14, 2023, 6:15:22 PM12/14/23
to Google Ads API and AdWords API Forum
Hello! I need to get costs and convs of my max perfomance campaings per asset group
This query return me the assets groups for each campaign:
SELECT
customer.id,
customer.descriptive_name,
asset_group_asset.field_type,
asset_group.id,
asset_group.name,
asset_group.resource_name,
asset_group_asset.resource_name,
asset_group_asset.status,
asset_group_asset.field_type,
asset.name
FROM
asset_group_asset
WHERE
campaign.advertising_channel_type="PERFORMANCE_MAX"


How can I merge this data  with metrics.costs and metrics.convertions? Thank you!

Google Ads API Forum Advisor

unread,
Dec 14, 2023, 9:56:22 PM12/14/23
to nabazo...@gmail.com, adwor...@googlegroups.com
Hi,

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

By reviewing your concern, I understand that you're aiming to access the costs and conversions of your Performance Max campaigns via the asset_group_asset resource. Kindly note that asset_group_asset resource doesn’t support metrics. I would recommend you kindly refer to the asset_group resource where metrics can be retrieved per each asset group. 

Please find the sample GAQL query: 
 
SELECT asset_group.id, asset_group.name, asset_group.resource_name, asset_group.status, metrics.clicks, metrics.conversions, campaign.advertising_channel_type FROM asset_group WHERE campaign.advertising_channel_type = 'PERFORMANCE_MAX'

Additionally, 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. Kindly get back to us if you have any further questions related to the Google Ads API. 
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02r1r6G:ref"

Thanks,
 
Google Logo Google Ads API Team


Yevhen Serdiuk

unread,
Dec 15, 2023, 1:04:54 PM12/15/23
to Google Ads API and AdWords API Forum
Thank you, but I can not see any segment (segment.date) in asset_group. What should I do if I need metrics, for example, for last 7 days?

четверг, 14 декабря 2023 г. в 23:56:22 UTC+2, Google Ads API Forum Advisor:

Google Ads API Forum Advisor

unread,
Dec 15, 2023, 2:21:21 PM12/15/23
to nabazo...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

Kindly note that, there are some limitations for asset group reporting with metrics by API. The asset_group resource does not support Segments selection or filtering. I would recommend you to refer to this documentation to know more about the Fields/Segments/Metrics that can be used with the asset_group resource. 
Reply all
Reply to author
Forward
0 new messages