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>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/03566fc1-81f3-4ea6-b240-335686e2ff20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to