Hi,

I finally get it. :) The key points are:

   1. For the Image app engagement ad (455) 
   
<https://developers.google.com/adwords/api/docs/appendix/templateads#image_cto_ad>
    and Image app install ad (432) 
   
<https://developers.google.com/adwords/api/docs/appendix/templateads#image_ctd_ad>,
 
   you *must* set the *Image* for the ad via the TemplateAd.adAsImage 
   
<https://developers.google.com/adwords/api/docs/reference/v201506/AdGroupAdService.TemplateAd#adAsImage>
 attribute, 
   as you were doing in your code.
   2. When setting the *Image*, you *should* be able to simply pass an 
   *Image* object with its mediaId 
   
<https://developers.google.com/adwords/api/docs/reference/v201506/AdGroupAdService.Image#mediaId>
 set 
   to an existing image in order to reuse that image. Unfortunately, this 
   doesn't work right now. I have raised this issue and we're looking into it.
   3. Although using *mediaId* doesn't work, I have good news! You *can*
    set originAdId 
   
<https://developers.google.com/adwords/api/docs/reference/v201506/AdGroupAdService.TemplateAd#originAdId>
 to 
   an existing ad that uses the same template, and AdWords will copy all of 
   the template elements *and* the *Image* from the origin ad to your new 
   ad.

#3 means that for your use case of creating 500 ads, you can create one ad 
by setting the *Image.data* and using that for the *adAsImage* field. To 
create the other 499 ads, you can specify the first ad's ID for *originAdId*, 
and skip the rest. This will work even if you are creating ads in a 
different ad group from the first ad.

Note that when creating the *TemplateAd*s using *originAdId*, you should do 
the following:

   - set *url, displayUrl, templateId, name*, and *originAdId*
   - do *not *set templateElements 
   
<https://developers.google.com/adwords/api/docs/reference/v201506/AdGroupAdService.TemplateAd#templateElements>,
 
   *dimensions, *or *adAsImage*

I think that covers everything, but let me know if you still have 
questions. Thanks for bearing with me while I was trying to understand your 
use case. :)

Cheers,
Josh, AdWords API Team

On Thursday, August 20, 2015 at 9:15:38 AM UTC-4, seb wrote:
>
>
>
> El jueves, 20 de agosto de 2015, 8:45:50 (UTC-3), sebastia...@despegar.com 
> escribió:
>>
>> Hi Josh,
>>
>> I noticed in your code that you are setting the adAsImage 
>>> <https://developers.google.com/adwords/api/docs/reference/v201506/AdGroupAdService.TemplateAd#adAsImage>
>>>  field, 
>>> and that's the only place where you use an *Image* object. However, I'm 
>>> pretty sure that the *adAsImage* field is being ignored since that 
>>> field is meant to provide you a preview of the ad in image form, and that 
>>> preview for template ID 455 is simply based on the other fields in the ad 
>>> that identify your app.
>>> Does the image you provided actually appear on the ad in the AdWords 
>>> user interface?
>>>
>>  
>> No it doesn't, but the UI doesn't show the image when I create one 
>> manually either. If I download the report for two "Image app engagement 
>> ad's", one created manually via the AdWords UI and one created 
>> automatically with the program I sent you the structure is the same. These 
>> arguments seem to favor, in my view, that the adAsIamge is not being 
>> ignored.
>>
>
> UPDATE:
> Yes, it does show the image in the AdWords UI. Initially when I said no 
> was because I was using Firefox, but in Chrome it does show the image in 
> both cases (manually created Ad, and created with the program I sent you).
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/8dac6534-0e5a-4670-bb49-80b146090c62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to