Template ads Images

212 views
Skip to first unread message

Prashant Kumar

unread,
Jun 18, 2018, 3:56:19 AM6/18/18
to AdWords API and Google Ads API Forum
Hi,

In case a template Ad has multiple images Adwords API gives us the url of the zip file of all the images for that Ad.

Is there any way of getting the individual url for each image separately?


Thanks,
Prashant

Peter Oliquino (AdWords API Team)

unread,
Jun 18, 2018, 4:57:27 AM6/18/18
to AdWords API and Google Ads API Forum
Hi Prashant,

The individual URLs of those images included within the zip is not retrievable via the AdWords API. I hope this helps.

Best regards,
Peter
AdWords API Team

Prashant Kumar

unread,
Jun 18, 2018, 9:23:37 AM6/18/18
to AdWords API and Google Ads API Forum
Hi Peter,

How do I download zip file given that I have imageUrl ?
Opening the link in web browser does nothing

Thanks,
Prashant

Prashant Kumar

unread,
Jun 19, 2018, 12:08:02 AM6/19/18
to AdWords API and Google Ads API Forum
Can anyone please help ?

Thanks in advance

Peter Oliquino (AdWords API Team)

unread,
Jun 19, 2018, 12:10:42 AM6/19/18
to AdWords API and Google Ads API Forum
Hi Prashant,

You may refer to the TemplateElementField documentation and you can use the FieldMedia field (Media.Type' => 'MediaBundle') to download the zip file.

Thanks and regards,
Peter
AdWords API Team

Prashant Kumar

unread,
Jun 19, 2018, 12:24:34 AM6/19/18
to AdWords API and Google Ads API Forum
Hi Peter,

As I already mentioned I have the url for the zip file. I need your assistance on how do I download that file ?
Opening it in a web browser does nothing. I also tried to download it programmatically with no results.

Thanks,
Prashant

Peter Oliquino (AdWords API Team)

unread,
Jun 19, 2018, 3:05:28 AM6/19/18
to AdWords API and Google Ads API Forum
Hi Prashant,

The zip file will not be downloaded through the URL that you are using. You will have to retrieve the MediaBundle.data object from your end to retrieve the zip file and its contents. I hope this helps.
Reply all
Reply to author
Forward
0 new messages