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
<https://developers.google.com/adwords/api/docs/reference/v201502/AdGroupAdService.ImageAd#image>
.
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.
On Tuesday, May 5, 2015 at 9:56:55 AM UTC-4, [email protected] wrote:
>
> Hi. Can you tell me how to add the image ad. Is there any example into the
> google ads library?
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/323ce2ae-8676-4966-bb0a-c4040852048f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.