Below is the query I use to extract the asset information, 

SearchGoogleAdsStreamRequest searchGoogleAdsStreamRequest =
SearchGoogleAdsStreamRequest.newBuilder()
.setCustomerId(customerId)
.setQuery(
"SELECT asset.id, asset.image_asset.file_size, 
asset.image_asset.full_size.height_pixels, "
+ "asset.image_asset.full_size.url, 
asset.image_asset.full_size.width_pixels, "
+ "asset.image_asset.mime_type, asset.name, asset.type, 
asset.text_asset.text, "
+ "asset.youtube_video_asset.youtube_video_id, asset.resource_name "
+ "FROM asset "
+ "WHERE asset.type IN ('IMAGE', 'YOUTUBE_VIDEO', 'MEDIA_BUNDLE')")
.build();


For HTML5_UPLOAD_AD, my understanding is the asset is MEDIA_BUNDLE type, 
however, the result from above query doesn't have anything inside 
MEDIA_BUNDLE.

Client id is 4425978192

thanks,

Dihan

On Monday, November 16, 2020 at 3:19:58 AM UTC-5 adsapiforumadvisor wrote:

> Hi Dihan,
>
> Could you confirm how you are currently extracting the asset information? 
> So I can better understand, could you provide your customer ID and the 
> complete request and response logs? You may send the requested details 
> using the *Reply privately to author* option.
>
> Also, generally, your assets information can be retrieved using the 
> AssetService.GetAssetRequest 
> <https://developers.google.com/google-ads/api/reference/rpc/v6/GetAssetRequest>.
>  As 
> for retrieving other information such as its metrics, you may refer to this 
> guide 
> <https://developers.google.com/google-ads/api/docs/assets/fetching-assets> 
> as well.
>
> Best regards,
>
> [image: Google Logo] 
> Peter Laurence Napa Oliquino 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q27tfEX:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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/ba51b67a-07c0-49d7-99ec-566ca3dfb5f5n%40googlegroups.com.

Reply via email to