How to pull images for responsive ads

16 views
Skip to first unread message

Luis

unread,
Jan 14, 2019, 12:42:21 PM1/14/19
to AdWords API and Google Ads API Forum
Hi there,

We are trying to pull the images for responsive ads using the fields EnhancedDisplayCreativeLandscapeLogoImageMediaId and EnhancedDisplayCreativeMarketingImageSquareMediaId available at AD_PERFORMANCE_REPORT, but we are not sure how these two ids should be used to get the actual images. 

Many thanks in advance,
Luis

Teja Makani

unread,
Jan 14, 2019, 5:11:59 PM1/14/19
to AdWords API and Google Ads API Forum
Hello Luis,

You could use those fields and make a MediaServie.get call to get the respective Urls of those media and fetch them. You could refer to the code sample in Java from here. Samples in other languages can be found here. You could use the code sample and set a predicate to filter the media Ids in the sample code as ".in(MediaField.MediaId, "1234567890")". Please let me know if you have any further questions.

Regards,
Sai Teja, AdWords API Team

Luis

unread,
Jan 15, 2019, 12:08:28 PM1/15/19
to AdWords API and Google Ads API Forum
Hi Teja,

Thanks a lot for your answer. We will give it a try.

Best regards,
Luis
Reply all
Reply to author
Forward
0 new messages