How to add image ad?

37 views
Skip to first unread message

ja...@safedatatech.com

unread,
May 5, 2015, 9:56:55 AM5/5/15
to adwor...@googlegroups.com
Hi. Can you tell me how to add the image ad. Is there any example into the google ads library?

Raghavendra Soudala (AdWords API Team)

unread,
May 5, 2015, 5:16:28 PM5/5/15
to adwor...@googlegroups.com
Hi Jason,

Here is an example of creating an image object and populating its data using Java lib:

Image image = new Image();
image.setData(
    com.google.api.ads.common.lib.utils.Media.getMediaDataFromUrl("http://goo.gl/HJM3L"));

You can use this image object as the image attribute of the ImageAd.

Also, make sure you don't use MediaService because that's only for specific use cases involving template ads. I hope it answers your question.

Cheers,
Raghavendra, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages