Images Video

193 views
Skip to first unread message

Rodrigo Ampuero

unread,
Aug 11, 2022, 10:16:02 AM8/11/22
to Google Ads API and AdWords API Forum
Hi, I need to extract images from YouTube or Video campaign ads, but I don't know what resources I can find. for campaigns From Display I can get the id of the images from the resources "FROM ad_group_ad" in the fields "ad_group_ad.ad.discovery_multi_asset_ad.marketing_images, ad_group_ad.ad.discovery_multi_asset_ad.square_marketing_images", but YouTube or Video campaigns I can't find in which fields the ids can be. Attachment screens from where they are obtained from the ads platform. Thanks.
youtube.PNG

Google Ads API Forum Advisor

unread,
Aug 11, 2022, 4:00:00 PM8/11/22
to rac...@gmail.com, adwor...@googlegroups.com
Hi Rodrigo,

Thank you for reaching out to us.

Moving forward, you may use this ad_group_ad.ad.video_ad.video.asset field for you to find the video asset you are referring to. However you may try this query below to see this:

SELECT ad_group.id, ad_group_ad.ad.id, campaign.id, ad_group_ad.ad.type, ad_group_ad.ad.video_ad.bumper.companion_banner.asset, ad_group_ad.ad.video_ad.video.asset FROM ad_group_ad WHERE ad_group_ad.ad.id = 600642943096

Let me know if you have further questions.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


ref:_00D1U1174p._5004Q2dJiHu:ref

Rodrigo Ampuero

unread,
Aug 17, 2022, 5:15:09 PM8/17/22
to Google Ads API and AdWords API Forum
Hhi, I was able to get the asset_id, but I couldn't get the preview images, I thought they were in the "asset" table, could you help me by indicating where I can find them, according to the image I uploaded earlier. Thanks.

Google Ads API Forum Advisor

unread,
Aug 17, 2022, 10:19:16 PM8/17/22
to rac...@gmail.com, adwor...@googlegroups.com

Hi Rodrigo,
 

Thank you for getting back to us. I work with Heidi and allow me to assist you here. I hope you are doing well today.
 

Moving forward, regarding this, "but I couldn't get the preview images" could you please give more context on the preview image you said? Can you also provide a screenshot of the preview image you're looking for? So our team further investigates this issue and gives guidance on this.
 

Regards,

Google Logo
Darwin
Google Ads API Team
 


ref:_00D1U1174p._5004Q2dJiHu:ref

Rodrigo Ampuero

unread,
Aug 18, 2022, 9:49:37 AM8/18/22
to Google Ads API and AdWords API Forum

Hi, the images I'm looking for are the previews of the YouTube videos, attached screenshots of the images I'm looking for. Thank
youtube_1.PNG

Google Ads API Forum Advisor

unread,
Aug 18, 2022, 1:17:47 PM8/18/22
to rac...@gmail.com, adwor...@googlegroups.com
Hi Rodrigo,

Thank you for the screenshot.

The only ad type with preview information in the Google Ads API is the image ad as seen in the ad_group_ad.ad.image_ad.preview_image_url that you can extract using the ad_group_ad report.

Since YouTube videos' previews are not supported, our team can create a feature request, subject for review, for its support in the API. To do so, could you share as well your complete use case so that we may pass this along in the said request?

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2dJiHu:ref
Message has been deleted

Rodrigo Ampuero

unread,
Aug 19, 2022, 12:09:57 PM8/19/22
to Google Ads API and AdWords API Forum
Hi, so the image that appears in the "ad" column is not saved? It is not recorded in any report. The field that told me "ad_group_ad.ad.image_ad.preview_image_url " arrives empty when I call ad_group_ad report. Thanks

Google Ads API Forum Advisor

unread,
Aug 19, 2022, 12:14:37 PM8/19/22
to rac...@gmail.com, adwor...@googlegroups.com
Hi Rodrigo,

The Ads API doesn't have a field that provides direct access to the previews. With that being said, this stackoverflow article about using Youtube Id for every type of URL may be of assistance - https://stackoverflow.com/a/2068371. I tried some and they work just using the 11 letter Id from “asset.youtube_video_asset.youtube_video_id”.

For example, the 11 letter Id can be placed in the regular Youtube url starting "https://www.youtube.com/watch?v=" you can add to the end "B5PylOONGww" for the result - https://www.youtube.com/watch?v=B5PylOONGww and you can see a Google Ads tutorial. The default high quality image is https://img.youtube.com/vi/B5PylOONGww/hqdefault.jpg. I can guess this works for all Youtube videos. Feel free to get back to us.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


ref:_00D1U1174p._5004Q2dJiHu:ref
Reply all
Reply to author
Forward
0 new messages