Groups
Groups
Sign in
Groups
Groups
(Deprecated) Google Ads API and AdWords API Forum
Conversations
Labels
About
Send feedback
Help
How to add image ad?
37 views
Skip to first unread message
ja...@safedatatech.com
unread,
May 5, 2015, 9:56:55 AM
5/5/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
5/5/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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