MediaService in google ads api

58 views
Skip to first unread message

cv

unread,
Mar 23, 2021, 9:30:04 AM3/23/21
to AdWords API and Google Ads API Forum
hi,

I am trying to get fields similar to Adwords API MediaService
Fields that I try to get in Google Ads API are
'MediaId', 'Width', 'Height', 'MimeType', 'Name'

Which view I need to use to get width and height for the Media Mime type?

Thanks,

Google Ads API Forum Advisor Prod

unread,
Mar 23, 2021, 10:34:28 PM3/23/21
to chirag....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out.

On the Google Ads API perspective, you can use the media_file report and you can include the following fields to get the details that you've mentioned:
media_file.id
media_file.mime_type
media_file.name

As for the dimension (Width and Height) of the image, you can use include the media_file.image.full_size_image_url and media_file.image.preview_size_image_url instead.

Hope this will help. Let me know if you have further questions.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


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