Hello Darya, Thanks for the additional information. The image that you're uploading needs to match one of the dimensions or a variation of that dimension outlined in this guide <https://support.google.com/adwordspolicy/answer/176108?hl=en#nonani_ads>. For example, 320x50 or 640x100 would be acceptable image sizes. For a 640x100 image that you're uploading, you can set the dimensions to be 320x50. Here's an example of a SOAP request I was able to upload where *<lots_of_bytes>* is a 640x100 image and *<appid> *is your app ID.
<mutate xmlns="https://adwords.google.com/api/adwords/cm/v201506"><operations><operator>ADD</operator><operand><adGroupId>20119721333</adGroupId><ad xsi:type="TemplateAd" ><displayUrl>www.example.com/image</displayUrl><finalUrls>http://example.com/image</finalUrls><templateId>432</templateId><templateElements><uniqueName>adData</uniqueName><fields><name>appId</name><type>TEXT</type><fieldText> *<appid>* </fieldText></fields><fields><name>appStore</name><type>ENUM</type><fieldText>1</fieldText></fields></templateElements><adAsImage><data> *<lots_of_bytes>* </data></adAsImage><dimensions><width>320</width><height>50</height></dimensions><name>Ad for Image</name></ad><status>PAUSED</status></operand></operations></mutate> Also note that the only TemplateElementFields <https://developers.google.com/adwords/api/docs/reference/v201506/AdGroupAdService.TemplateElementField> that were set were *appId* and *appStore*. The image was set at the TemplateAd in *adAsImage* level. Cheers, Nadine, AdWords API Team On Friday, September 18, 2015 at 2:50:38 AM UTC-4, Darya Sk wrote: > > Hi, Nadine! > > TemplateId is 432. In the list of 432 > <https://developers.google.com/adwords/api/docs/appendix/templateads> > there is 300x50. > :request_id=>"00051fffa9d40fd00a0deec6600a73b3" > > > пятница, 18 сентября 2015 г., 3:34:38 UTC+3 пользователь Nadine Sundquist > (AdWords API Team) написал: >> >> Hi Darya, >> >> It looks like you're trying to add a TemplateAd >> <https://developers.google.com/adwords/api/docs/reference/v201506/AdGroupAdService.TemplateAd>? >> >> What's the ID of the TemplateId? The reason I'm asking is because each type >> of TemplateAd has different dimension requirements that are outlined in >> this guide >> <https://developers.google.com/adwords/api/docs/appendix/templateads>. >> If you find that your dimensions match the restrictions for the type of >> TemplateAd that you're adding, then please send me the *requestId *that >> came back with the failure. That way I can take a look at the request to >> figure out what's going on. >> >> Thanks, >> Nadine, AdWords API Team >> >> On Thursday, September 17, 2015 at 8:25:28 AM UTC-4, Darya Sk wrote: >>> >>> There is a popular banner format 300x50. Google Adwords lets me to load >>> 600x100 for retina in its interface. >>> >>> When I load a banner 600x100 in my application and set the DIMENSIONS >>> 300x50 API throws an error: >>> >>> AdwordsApi::V201502::AdGroupAdService::ApiException: >>> [ImageError.UNEXPECTED_SIZE @ operations[0].operand.ad.adAsImage] >>> >>> In Google Adwords interface the same banner is added successfully and >>> recognized as 300x50. >>> >>> Can you help me with the problem? >>> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/dfe0b309-4f4a-4ea6-8b7d-b0ecdb00baa8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.