Unable to add template ad

33 views
Skip to first unread message

test...@bannerwise.co

unread,
Jan 8, 2015, 5:47:54 AM1/8/15
to adwor...@googlegroups.com, Fabio Coduri
Hi there,

I tried uploading an ad made with Google Web Designer manually and all went fine. I'm now trying to automate this process, upload the published .zip file via a C# application, but when I try doing that I get this error:

AdError.MISSING_REQUIRED_TEMPLATE_FIELDS @ operations[0].operand.ad.templateElements[0].variationSpecificFieldOverrides; trigger:'Custom_layout'

I tried adding a field "Custom_layout", the only type that doesn't give an error being BACKGROUND_IMAGE (I tried all types, all others trigger the invalid field error), no error is triggered on the field itself, but the error above (Custom_layout missing) is still triggered despite being in the request.

Can you please help me with this issue?

this is the body I send:

<soap:Body>

<mutate xmlns="https://adwords.google.com/api/adwords/cm/v201409">

<operations>

<operator>ADD</operator>

<operand>

<adGroupId>18375969918</adGroupId>

<ad xsi:type="TemplateAd">

<url>http://www.bannerwise.co</url>

<displayUrl>www.bannerwise.co</displayUrl>

<templateId>419</templateId>

<templateElements>

<uniqueName>adData</uniqueName>

<fields>

<name>layout</name>

<type>ENUM</type>

<fieldText>Custom</fieldText>

</fields>

<fields>

<name>Custom_layout</name>

<type>BACKGROUND_IMAGE</type>

<fieldMedia xsi:type="Image">

<type>IMAGE</type>

<data>[byteArrayOfZipFile]</data>

</fieldMedia>

</fields>

</templateElements>

<adAsImage>

<type>IMAGE</type>

<data>[byteArrayOfZipFile]</data>

</adAsImage>

<dimensions>

<width>300</width>

<height>250</height>

</dimensions>

<name>Test automated web designer ad</name>

</ad>

<status>PAUSED</status>

</operand>

</operations>

</mutate>

</soap:Body>

Josh Radcliff (AdWords API Team)

unread,
Jan 9, 2015, 12:09:04 PM1/9/15
to adwor...@googlegroups.com, fa...@bannerwise.co
Hi,

Template ads with template ID 419 are not supported through the API. The API only supports specific template IDs -- please see this related post.

You may want to look through the list of available template ads to see if one of the available IDs will meet your use case.

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