Reposting the last inquiry ( 
https://groups.google.com/g/adwords-api/c/ux2k6cSyaR4 ) from the forum as 
it wasn't routed to our support queue.


Regards,
Jinky
Google Ads API Team
On Thursday, August 25, 2022 at 4:32:07 PM UTC+8 vyta...@whatagraph.com 
wrote:

> Is it possible (or what's the best way) to fetch metrics and thumbnails 
> (image or video assets) for Performance Max campaigns?
>
> For other types of ads I'm using this query:
>
> SELECT
>     metrics.impressions,
>     metrics.clicks,
>     campaign.name,
>     ad_group_ad.ad.name,
>     ad_group_ad.ad.image_ad.image_url,
>     ad_group_ad.ad.responsive_display_ad.marketing_images,
>     ad_group_ad.ad.type,
>     ad_group_ad.ad.id,
>     ad_group_ad.ad.video_ad.video.asset,
>     ad_group_ad.ad.video_responsive_ad.videos,
>     ad_group_ad.ad.app_ad.images
> FROM
>     ad_group_ad
> WHERE
>     segments.date BETWEEN '2022-07-01'
>     AND '2022-07-31'
>     AND ad_group_ad.ad.type IN('IMAGE_AD', 'IN_FEED_VIDEO_AD', 
> 'RESPONSIVE_DISPLAY_AD', 'VIDEO_TRUEVIEW_IN_STREAM_AD', 'VIDEO_BUMPER_AD', 
> 'VIDEO_RESPONSIVE_AD', 'APP_AD', 'VIDEO_NON_SKIPPABLE_IN_STREAM_AD')
>     AND metrics.impressions > 0
> ORDER BY
>     metrics.impressions DESC
>
> and I get almost everything I need with a single query. I can extract 
> assets for returned rows separately if needed.
>
> Is there a similar way to do it with Performance Max campaigns or do I 
> have to resort to fetching metrics separately and then make a separate 
> query to asset_group_asset 
> <https://developers.google.com/google-ads/api/fields/v11/asset_group_asset> 
> and then map the rows myself?
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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 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 adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d2625c50-1b92-4463-bb8f-f9e0afe6c28en%40googlegroups.com.

Reply via email to