Extracting image ad dimensions through the API

17 views
Skip to first unread message

i...@albert.ai

unread,
Feb 11, 2019, 6:01:54 AM2/11/19
to AdWords API and Google Ads API Forum
Hello,

I need to extract the size of an image ad (non responsive ad) through the API, with a given ad ID.
I haven't found the desired field at the ad performance report.

Thanks, Ido.

The information contained in this communication and its attachments is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It is the property of Albert and may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, retention, printing or distribution of this communication or any part thereof, or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this email and then delete all copies of it from your system. Albert is not liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.

googleadsapi...@google.com

unread,
Feb 11, 2019, 3:08:54 PM2/11/19
to AdWords API and Google Ads API Forum
Hello, 

You may use the MediaService.get() to get the fileSize or the AssetService.get() to get the imagefilesize. This attribute is currently not available through the API reports. You can get the MediaId from the reports and use the API services to get the file size. 

Let me know if you have any other questions.

Regards,
Bharani, AdWords API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages