Hi,
I am currently working on migrating our AdWords API client to GoogleAds API client, and I am having an issue to list all ImageAds with the GoogleAdsService.Search (Google Ads SearchQuery).
The Image entity contains all media file info,
But when I try to list ImageAds with the GoogleAdsService.Search (Google Ads SearchQuery). I can only find those ImageAd fields available for query:
- ad_group_ad.ad.image_ad.image_url
- ad_group_ad.ad.image_ad.mime_type
- ad_group_ad.ad.image_ad.name
- ad_group_ad.ad.image_ad.pixel_height
- ad_group_ad.ad.image_ad.pixel_width
- ad_group_ad.ad.image_ad.preview_image_url
- ad_group_ad.ad.image_ad.preview_pixel_height
- ad_group_ad.ad.image_ad.preview_pixel_width
I could not get the MediaFile Resource Name of the image or the raw data.
May I ask is there a way to list ImageAd with the media file info by search query? or is there another option to link them?
BTWI found for VideoAd, the search query actually provided a filed called "ad_group_ad.ad.video_ad.media_file" and it contains the Video Media file resource name. If I can get the MediaFile Resource Name as field "ad_group_ad.ad.image_ad.media_file", I might be able to make another query from media_file to get the media file detailed info.
Thanks!