Couldn't add a banner 600x100 by API. It's added through the google adwords interface

159 views
Skip to first unread message

Darya Sk

unread,
Sep 17, 2015, 8:25:28 AM9/17/15
to AdWords API Forum
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?

Nadine Sundquist (AdWords API Team)

unread,
Sep 17, 2015, 8:34:38 PM9/17/15
to AdWords API Forum
Hi Darya,

It looks like you're trying to add a 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. 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

Darya Sk

unread,
Sep 18, 2015, 2:50:38 AM9/18/15
to AdWords API Forum
Hi, Nadine!

TemplateId is 432. In the list of 432 there is 300x50. 
:request_id=>"00051fffa9d40fd00a0deec6600a73b3"


пятница, 18 сентября 2015 г., 3:34:38 UTC+3 пользователь Nadine Sundquist (AdWords API Team) написал:

Nadine Sundquist (AdWords API Team)

unread,
Sep 18, 2015, 12:05:18 PM9/18/15
to AdWords API Forum
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. 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 that were set were appId and appStore. The image was set at the TemplateAd in adAsImage level.

Cheers,
Nadine, AdWords API Team

Darya Sk

unread,
Sep 19, 2015, 3:06:41 AM9/19/15
to AdWords API Forum
Hi and thank you, Nadine! But there is no problem with 640x100. 
I'm trying to upload 600x100 and it matches to 300x50. 
In the guide there is 300x50 and for 600x100 I set the dimensions as 300x50. And API throws that error.

пятница, 18 сентября 2015 г., 19:05:18 UTC+3 пользователь Nadine Sundquist (AdWords API Team) написал:

Nadine Sundquist (AdWords API Team)

unread,
Sep 21, 2015, 5:02:12 PM9/21/15
to AdWords API Forum
Hi Darya,

I don't think the dimensions in our guide are up-to-date because through the AdWords user interface I can't upload a 600x100 ad. I get an error stating that only these are valid dimensions:

File types 
FormatsGIF, JPG, PNG, SWF, ZIP
Max. size150KB
Ad sizes 
Square and rectangle 
200 × 200Small square
240 × 400Vertical rectangle
250 × 250Square
250 × 360Triple widescreen
300 × 250Inline rectangle
336 × 280Large rectangle
580 × 400Netboard
Skyscraper 
120 × 600Skyscraper
160 × 600Wide skyscraper
300 × 600Half-page ad
300 × 1050Portrait
Leaderboard 
468 × 60Banner
728 × 90Leaderboard
930 × 180Top banner
970 × 90Large leaderboard
970 × 250Billboard
980 × 120Panorama
Mobile 
320 × 50Mobile banner
320 × 100Large mobile banner

The API has the same limitations on dimensions as the AdWords user interface. Thanks for catching that issue with our documentation. I'll work on getting the documentation for that Template Ad updated with the correct dimensions.

Best,
Nadine, AdWords API Team

Darya Sk

unread,
Sep 22, 2015, 2:41:07 AM9/22/15
to AdWords API Forum
Hello, Nadine!
I've managed to load a banner 600x100 in Google AdWords interface.
The banner is defined by Google as 300x50 but the image was 600x100.

Client id is 225-300-8414

the name of the ad group is ad_group_#14

the name of the campaign is campaign_#9_14


вторник, 22 сентября 2015 г., 0:02:12 UTC+3 пользователь Nadine Sundquist (AdWords API Team) написал:

Darya Sk

unread,
Sep 22, 2015, 3:07:18 AM9/22/15
to AdWords API Forum



вторник, 22 сентября 2015 г., 9:41:07 UTC+3 пользователь Darya Sk написал:

Nadine Sundquist (AdWords API Team)

unread,
Sep 22, 2015, 11:53:17 AM9/22/15
to AdWords API Forum
Hi Darya,

Thank you for being so patient in explaining exactly what you did. Providing the ad group really helped. I was able to reproduce through the user interface that it is possible with that particular campaign setup to create an ad with those dimensions. I'm sending this over to the engineers who work on this component to find out why this is being blocked. I'll get back to you as soon as I hear back from them.

Best,
Nadine, AdWords API Team

Darya Sk

unread,
Sep 24, 2015, 6:47:55 AM9/24/15
to AdWords API Forum
Ok, I look forward to getting any information about the banner 600x100 from your collegues.

вторник, 22 сентября 2015 г., 18:53:17 UTC+3 пользователь Nadine Sundquist (AdWords API Team) написал:

Nadine Sundquist (AdWords API Team)

unread,
Sep 28, 2015, 3:33:21 PM9/28/15
to AdWords API Forum
Hi Darya,

Good news! We were able to make some changes that now allows uploading 600x100 ads with 300x50 as the dimensions. I gave it a try this morning, and it looks like it's working. Please give it a go.

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