Google Ads API - MEDIA_BUNDLE

302 views
Skip to first unread message

Omri Gal

unread,
Sep 11, 2019, 3:49:11 AM9/11/19
to AdWords API and Google Ads API Forum
Hi,

In Google Ads API, When I pull from Ad_Group_Ad_Asset_View with the fields "asset.id, asset.type, asset.name" , I'm getting all kinds of Asset types, one of them is the MEDIA_BUNDLE.
Can you explain more what it means and how do I pull the actual media? (Image / Video).

IFor Asset.type = IMAGE/YOUTUBE_VIDEO I pull the "asset.image_asset.full_size.url" / asset.youtube_video_asset.youtube_video_id" successfully.
Also, I've noticed that the asset.name is a filename with suffix ".zip" but didn't know from which endpoint I should pull it.

Thanks in advance,
Omri 

Google Ads API Forum Advisor Prod

unread,
Sep 11, 2019, 1:25:47 PM9/11/19
to omr...@singular.net, adwor...@googlegroups.com

Hi Omri, 

The MEDIA_BUNDLE asset type is for uploading the HTML5 assets as a zip file. If you're using the ad_group_ad_asset_view to pull these details, this will return the details of the specific media bundle. This will not return the image/video details within this bundle. For the other image/video assets, you may use the asset.image_asset.full_size.url or the media_file.source_url which will return the URL for these assets. Please let me know if you have any other questions.

Thanks,
Bharani, Google Ads API Team



ref:_00D1U1174p._5001UHGOSm:ref

Omri Gal

unread,
Sep 15, 2019, 9:51:31 AM9/15/19
to AdWords API and Google Ads API Forum
Hi Bharani,

Thanks for the answer.
So it means there is no option to pull the actual HTML5 assets using Google Ads API?

Omri G.

Google Ads API Forum Advisor Prod

unread,
Sep 16, 2019, 3:41:06 PM9/16/19
to omr...@singular.net, adwor...@googlegroups.com
Hi Omri, 

That's right. You will be able to pull the media bundle as a whole and not the assets within. Let me know if you have any further questions.

Omri Gal

unread,
Sep 23, 2019, 7:16:29 AM9/23/19
to AdWords API and Google Ads API Forum

Just to be clear, can I pull the entire Media Bundle Zip file?
If it's possible, can you explain how?

Thanks,
Omri G.

Google Ads API Forum Advisor Prod

unread,
Sep 23, 2019, 3:38:23 PM9/23/19
to omr...@singular.net, adwor...@googlegroups.com
Hi Omri,

I'm afraid, retrieving the MEDIA_BUNDLE assets through the Google Ads API is not yet supported. You may use the MediaService.get() AdWords API to pull these specific details. 

Omri Gal

unread,
Sep 24, 2019, 4:05:06 AM9/24/19
to AdWords API and Google Ads API Forum
Hi Bharani,

1. Do you know when will it be available to pull MEDIA_BUNDLE via Google Ads API?
2. I've the following test:
  1. Queried Google Ads API Ad_Group_Ad_Asset_View endpoint for Rovio, account_id = 2708572890.
  2. From the response, I've filtered out only Assets with asset.type = MEDIA_BUNDLE which have non zero cost metric.
  3. Date = 05/09/2019
  4. List of the assets_ids = [1286848931, 1286848913, 1286848910, 1286848919, 1286848916, 1286848928, 1286848925, 1286848922]
  5. As you've suggested above, I Queried from Adwords API using the MediaService.Get() Service with the following query but the response was empty:
Selector = {'fields': ['MediaId', 'Type', 'Width', 'Height', 'MimeType', 'FileSize', 'Name', 'SourceUrl', 'StreamingUrl', 'Urls','YouTubeVideoIdString'],
 'predicates': [{'field': 'MediaId', 'operator': 'IN', 'values': [1286848931, 1286848913, 1286848910, 1286848919, 1286848916, 1286848928, 1286848925, 1286848922]}]}

I'll be glad  to understand why the response was empty, and how it is possible to pull the MEDIA_BUNDLE from Adwords API.

Thanks,
Omri G.

Google Ads API Forum Advisor Prod

unread,
Sep 25, 2019, 9:26:16 AM9/25/19
to omr...@singular.net, adwor...@googlegroups.com
Hi Omri, 

Regret the delay as I was checking this internally with the team. Please note that Assets and Media are completely different and not related to each other in any way. They both store similar kinds of information, but they are not interchangeable, and using one in place of other will always result in blank data. I have raised a feature request to the team for MEDIA_BUNDLE support. Please keep an eye on our blog for more updates. 
Reply all
Reply to author
Forward
0 new messages