Hi , I am using V201402 and I am trying to Add a template ad but getting an error "[AdError.AD_FORMAT_NOT_SPECIFIED @ operations[0].operand.ad.adFormat]".
I'd very much appreciate if you can provide guidance on how/where to set the AD_FORMAT. Can't seem find it anywhere in the API. . *The Request going to API :* <Operation xmlns:q2="https://adwords.google.com/api/adwords/cm/v201402" xsi:type="q2:AdGroupAdOperation"> <q2:operator>ADD</q2:operator> <q2:operand> <q2:adGroupId>10032677681</q2:adGroupId> <q2:ad xsi:type="q2:TemplateAd"> <q2:url>http://www.test.com</q2:url> <q2:displayUrl>www.test.com</q2:displayUrl> <q2:templateId>277</q2:templateId> <q2:templateElements> <q2:uniqueName>adData</q2:uniqueName> <q2:fields> <q2:name>creationContext</q2:name> <q2:type>TEXT</q2:type> <q2:fieldText>WORKFLOW:BURDOCK,TEMPLATE_SOURCE:AD_GALLERY</q2:fieldText> </q2:fields> <q2:fields> <q2:name>backgroundColor</q2:name> <q2:type>ENUM</q2:type> <q2:fieldText>#ffffff</q2:fieldText> </q2:fields> <q2:fields> <q2:name>layout</q2:name> <q2:type>ENUM</q2:type> <q2:fieldText>blank_V1</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_BUTTON_0_Height</q2:name> <q2:type>NUMBER</q2:type> <q2:fieldText>30</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_BUTTON_0_Width</q2:name> <q2:type>NUMBER</q2:type> <q2:fieldText>100</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_BUTTON_0_Z</q2:name> <q2:type>NUMBER</q2:type> <q2:fieldText>3</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_BUTTON_0_TextSize</q2:name> <q2:type>NUMBER</q2:type> <q2:fieldText>18</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_BUTTON_0_ButtonColor</q2:name> <q2:type>ENUM</q2:type> <q2:fieldText>#000000</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_BUTTON_0_TextColor</q2:name> <q2:type>ENUM</q2:type> <q2:fieldText>#ffffff</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_BUTTON_0_TextFont</q2:name> <q2:type>ENUM</q2:type> <q2:fieldText>arialuni</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_BUTTON_0_Text</q2:name> <q2:type>TEXT</q2:type> <q2:fieldText>Learn more</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_IMAGE_0_Z</q2:name> <q2:type>NUMBER</q2:type> <q2:fieldText>1</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_IMAGE_0_Image</q2:name> <q2:type>IMAGE</q2:type> <q2:fieldMedia xsi:type="q2:Image"> <q2:mediaId>1093813086</q2:mediaId> <q2:type>IMAGE</q2:type> <q2:referenceId>-6794462060366266368</q2:referenceId> <q2:dimensions> <q2:key>FULL</q2:key> <q2:value> <q2:width>468</q2:width> <q2:height>60</q2:height> </q2:value> </q2:dimensions> <q2:urls> <q2:key>FULL</q2:key> <q2:value>https://tpc.googlesyndication.com/pageadimg/imgad?id=CICAgKCTmM7aoQEQ1AMYPCgBMgi7sKffpipZGw</q2:value> </q2:urls> <q2:mimeType>IMAGE_JPEG</q2:mimeType> <q2:sourceUrl>media://da/image?source=user_file&id_from_source=imgad.jpg&operation=original</q2:sourceUrl> <q2:Media.Type>Image</q2:Media.Type> </q2:fieldMedia> </q2:fields> <q2:fields> <q2:name>CUSTOM_TEXT_0_Height</q2:name> <q2:type>NUMBER</q2:type> <q2:fieldText>25</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_TEXT_0_Width</q2:name> <q2:type>NUMBER</q2:type> <q2:fieldText>120</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_TEXT_0_Z</q2:name> <q2:type>NUMBER</q2:type> <q2:fieldText>2</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_TEXT_0_TextSize</q2:name> <q2:type>NUMBER</q2:type> <q2:fieldText>20</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_TEXT_0_TextColor</q2:name> <q2:type>ENUM</q2:type> <q2:fieldText>#000000</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_TEXT_0_TextFont</q2:name> <q2:type>ENUM</q2:type> <q2:fieldText>arialuni</q2:fieldText> </q2:fields> <q2:fields> <q2:name>CUSTOM_TEXT_0_Text</q2:name> <q2:type>TEXT</q2:type> <q2:fieldText>TestAd1</q2:fieldText> </q2:fields> </q2:templateElements> <q2:dimensions> <q2:width>160</q2:width> <q2:height>600</q2:height> </q2:dimensions> <q2:name>Display Ad created 1/28/14</q2:name> <q2:duration>0</q2:duration> </q2:ad> <q2:status>PAUSED</q2:status> </q2:operand> </Operation> *Response* <?xml version="1.0" encoding="utf-16"?> <SimpleMutateResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <results xmlns="https://adwords.google.com/api/adwords/cm/v201402"> <PlaceHolder /> </results> <errors xsi:type="AdError" xmlns="https://adwords.google.com/api/adwords/cm/v201402"> <fieldPath>operations[0].operand.ad.adFormat</fieldPath> <trigger /> <errorString>AdError.AD_FORMAT_NOT_SPECIFIED</errorString> <ApiError.Type>AdError</ApiError.Type> </errors> </SimpleMutateResult> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/e88ad655-5017-494d-990d-088ad7e92c3a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.