Hi Mike,
Thank you for reaching out to the Google Ads API support team.
After reviewing your concern, I understand that your query is regarding the asset_group in the PMax campaign. However, there are some limitations for Performance Max (PMax) asset group reporting with metrics by API. The
asset_group resource does not support metric selection or filtering. This is why you received the error message when you tried to query for the clicks and impressions metrics.
To get asset group performance metrics, you can use the asset_group_product_group_view resource. This resource allows you to segment your results by product group, but you can also limit the results to a single asset group by adding an asset group filtering condition to the WHERE clause.
The following example demonstrates how to use the asset_group_product_group_view resource to retrieve performance metrics by asset group:
SELECT
asset_group.name,
metrics.impressions,
metrics.clicks,
metrics.cost_micros
FROM asset_group_product_group_view
WHERE asset_group.id = '6479664517'
AND segments.date DURING LAST_MONTH
ORDER BY metrics.impressions DESC
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. If you have any concerns / queries related to
Google Ads API, please feel free to get back to us.
This message is in relation to case "ref:!00D1U01174p.!5004Q02pU79C:ref"
Thanks,
 |
Google Ads API Team |
