Thanks!

On Wednesday, October 18, 2023 at 5:10:01 PM UTC+8 Google Ads API Forum 
Advisor wrote:

> 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 
> <https://developers.google.com/google-ads/api/fields/v14/asset_group_query_builder>
>  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 
> <https://developers.google.com/google-ads/api/fields/v14/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 <(647)%20966-4517>'
> AND segments.date DURING LAST_MONTH
> ORDER BY metrics.impressions DESC
> Also, you can utilize the *Google Ads Query Builder* 
> <https://developers.google.com/google-ads/api/fields/v14/overview_query_builder>
>  
> and *Query Validator* 
> <https://developers.google.com/google-ads/api/fields/v14/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* 
> <https://developers.google.com/google-ads/api/docs/start>, please feel 
> free to get back to us. 
>
>   
> This message is in relation to case "ref:!00D1U01174p.!5004Q02pU79C:ref"
>
> Thanks,
>   
> [image: Google Logo] Google Ads API Team 
>
>  
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/9e5a9f82-56bb-4b3d-8161-60394ac8279dn%40googlegroups.com.
  • Qu... Mike Fang
    • ... Mike Fang
      • ... Roland Abdallah
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to