Where to find info on AD_FORMAT_NOT_SPECIFIED error?

214 views
Skip to first unread message

Sam

unread,
Aug 13, 2013, 1:02:14 AM8/13/13
to adwor...@googlegroups.com
Hi,

I'm suddenly getting an AD_FORMAT_NOT_SPECIFIED error via my AdWords API.  Looking at the v201302 source have no reference of this error type.  Can someone help shed some light on where I can find more information about this error?  Thanks.
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[AdError.AD_FORMAT_NOT_SPECIFIED @ operations[1].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ operations[2].operand.ad.adFormat]</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201302">
                    <message>[AdError.AD_FORMAT_NOT_SPECIFIED @ operations[1].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ operations[2].operand.ad.adFormat]</message>
                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AdError">
                        <fieldPath>operations[1].operand.ad.adFormat</fieldPath>
                        <trigger/>
                        <errorString>AdError.AD_FORMAT_NOT_SPECIFIED</errorString>
                        <ApiError.Type>AdError</ApiError.Type>
                    </errors>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AdError">
                        <fieldPath>operations[2].operand.ad.adFormat</fieldPath>
                        <trigger/>
                        <errorString>AdError.AD_FORMAT_NOT_SPECIFIED</errorString>
                        <ApiError.Type>AdError</ApiError.Type>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>


Takeshi Hagikura (AdWords API Team)

unread,
Aug 19, 2013, 5:00:00 AM8/19/13
to adwor...@googlegroups.com
Hi Sam,

Can you please share the full request and response xmls to see if it's expected? (Please remove the sensitive info).
Maybe we should publish that error AdError type.

Best,
- Takeshi, 

Sam

unread,
Aug 19, 2013, 10:25:51 AM8/19/13
to adwor...@googlegroups.com
Hi Takeshi,

Following is the full request/response minus sensitive info.  Thanks for your help.

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Header>
        <ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201306" soapenv:mustUnderstand="0">
            <ns1:authToken>XXX</ns1:authToken>
            <ns1:clientCustomerId>XXX-XXX-XXXX</ns1:clientCustomerId>
            <ns1:developerToken>XXX</ns1:developerToken>
            <ns1:userAgent>user-XXX-XXX-XXXX (AwApi-Java, AdWords-Axis/1.18.1, Common-Java/1.18.1, Axis/1.4, Java/1.7.0_21, maven)</ns1:userAgent>
            <ns1:validateOnly>false</ns1:validateOnly>
            <ns1:partialFailure>false</ns1:partialFailure>
        </ns1:RequestHeader>
    </soapenv:Header>
    <soapenv:Body>
        <mutate xmlns="https://adwords.google.com/api/adwords/cm/v201306">
            <operations>
                <operator>ADD</operator>
                <operand>
                    <adGroupId>1256204474</adGroupId>
                    <ad xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201306" xsi:type="ns2:TextAd">
                        <ns2:url>http://www.example.com/roadshow.html?source=XXX1&amp;akw={keyword}</ns2:url>
                        <ns2:displayUrl>www.example.com</ns2:displayUrl>
                        <ns2:Ad.Type>TextAd</ns2:Ad.Type>
                        <ns2:headline>Implementing REACH &amp; GHS</ns2:headline>
                        <ns2:description1>Practical Guidance Roadshow</ns2:description1>
                        <ns2:description2>Sponsored by: Example</ns2:description2>
                    </ad>
                    <status>ENABLED</status>
                    <approvalStatus>FAMILY_SAFE</approvalStatus>
                    <trademarkDisapproved>true</trademarkDisapproved>
                    <stats>
                        <network>SEARCH</network>
                        <Stats.Type>AdStats</Stats.Type>
                        <percentServed>0.0</percentServed>
                    </stats>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <adGroupId>1256204474</adGroupId>
                    <ad xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201306" xsi:type="ns3:TemplateAd">
                        <ns3:url>http://www.example.com/roadshow.html?source=XXX2&amp;akw={keyword}</ns3:url>
                        <ns3:displayUrl>www.example.com</ns3:displayUrl>
                        <ns3:Ad.Type>TemplateAd</ns3:Ad.Type>
                        <ns3:templateId>37</ns3:templateId>
                        <ns3:adUnionId xsi:type="ns3:TempAdUnionId">
                            <ns3:id>129464</ns3:id>
                        </ns3:adUnionId>
                        <ns3:templateElements>
                            <ns3:uniqueName>adData</ns3:uniqueName>
                            <ns3:fields>
                                <ns3:name>adName</ns3:name>
                                <ns3:type>TEXT</ns3:type>
                                <ns3:fieldText>Roadshow Flash</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>text1</ns3:name>
                                <ns3:type>TEXT</ns3:type>
                                <ns3:fieldText>Example presents</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>text1Font</ns3:name>
                                <ns3:type>ENUM</ns3:type>
                                <ns3:fieldText>futurabc</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>color1</ns3:name>
                                <ns3:type>ENUM</ns3:type>
                                <ns3:fieldText>#ffff66</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>text2</ns3:name>
                                <ns3:type>TEXT</ns3:type>
                                <ns3:fieldText>,</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>text2Font</ns3:name>
                                <ns3:type>ENUM</ns3:type>
                                <ns3:fieldText>franklingothic_h</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>color2</ns3:name>
                                <ns3:type>ENUM</ns3:type>
                                <ns3:fieldText>#000000</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>text3</ns3:name>
                                <ns3:type>TEXT</ns3:type>
                                <ns3:fieldText>.</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>text3Font</ns3:name>
                                <ns3:type>ENUM</ns3:type>
                                <ns3:fieldText>franklingothic_h</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>color3</ns3:name>
                                <ns3:type>ENUM</ns3:type>
                                <ns3:fieldText>#ffcc00</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>logoUrl</ns3:name>
                                <ns3:type>IMAGE</ns3:type>
                                <ns3:fieldMedia xsi:type="ns3:Image">
                                    <ns3:type>IMAGE</ns3:type>
                                    <ns3:referenceId>-4745007012736836904</ns3:referenceId>
                                    <ns3:dimensions>
                                        <ns3:key>FULL</ns3:key>
                                        <ns3:value>
                                            <ns3:width>100</ns3:width>
                                            <ns3:height>36</ns3:height>
                                        </ns3:value>
                                    </ns3:dimensions>
                                    <ns3:urls>
                                        <ns3:key>FULL</ns3:key>
                                        <ns3:value>https://tpc.googlesyndication.com/pageadimg/imgad?id=XXX</ns3:value>
                                    </ns3:urls>
                                    <ns3:Media.Type>Image</ns3:Media.Type>
                                </ns3:fieldMedia>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>clickText</ns3:name>
                                <ns3:type>TEXT</ns3:type>
                                <ns3:fieldText>REGISTER!</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>clickTextFont</ns3:name>
                                <ns3:type>ENUM</ns3:type>
                                <ns3:fieldText>futurabc</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>color7</ns3:name>
                                <ns3:type>ENUM</ns3:type>
                                <ns3:fieldText>#000000</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>color6</ns3:name>
                                <ns3:type>ENUM</ns3:type>
                                <ns3:fieldText>#FFCF11</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>product1</ns3:name>
                                <ns3:type>IMAGE</ns3:type>
                                <ns3:fieldMedia xsi:type="ns3:Image">
                                    <ns3:type>IMAGE</ns3:type>
                                    <ns3:referenceId>-2898028189745287274</ns3:referenceId>
                                    <ns3:dimensions>
                                        <ns3:key>FULL</ns3:key>
                                        <ns3:value>
                                            <ns3:width>300</ns3:width>
                                            <ns3:height>196</ns3:height>
                                        </ns3:value>
                                    </ns3:dimensions>
                                    <ns3:urls>
                                        <ns3:key>FULL</ns3:key>
                                        <ns3:value>https://tpc.googlesyndication.com/pageadimg/imgad?id=XXX</ns3:value>
                                    </ns3:urls>
                                    <ns3:Media.Type>Image</ns3:Media.Type>
                                </ns3:fieldMedia>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>color4</ns3:name>
                                <ns3:type>ENUM</ns3:type>
                                <ns3:fieldText>#ffcc00</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>displayUrl</ns3:name>
                                <ns3:type>TEXT</ns3:type>
                                <ns3:fieldText>www.roadshow.com</ns3:fieldText>
                            </ns3:fields>
                            <ns3:fields>
                                <ns3:name>destinationUrl</ns3:name>
                                <ns3:type>URL</ns3:type>
                                <ns3:fieldText>http://www.example.com/roadshow.html</ns3:fieldText>
                            </ns3:fields>
                        </ns3:templateElements>
                        <ns3:dimensions>
                            <ns3:width>336</ns3:width>
                            <ns3:height>280</ns3:height>
                        </ns3:dimensions>
                        <ns3:name>Roadshow 2009 Flash</ns3:name>
                    </ad>
                    <status>ENABLED</status>
                    <approvalStatus>FAMILY_SAFE</approvalStatus>
                    <trademarkDisapproved>true</trademarkDisapproved>
                    <stats>
                        <network>SEARCH</network>
                        <Stats.Type>AdStats</Stats.Type>
                        <percentServed>0.0</percentServed>
                    </stats>
                </operand>
            </operations>
            <operations>
                <operator>ADD</operator>
                <operand>
                    <adGroupId>1256204474</adGroupId>
                    <ad xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201306" xsi:type="ns4:TemplateAd">
                        <ns4:url>http://www.example.com/roadshow.html?source=XXX2&amp;akw={keyword}</ns4:url>
                        <ns4:displayUrl>www.example.com</ns4:displayUrl>
                        <ns4:Ad.Type>TemplateAd</ns4:Ad.Type>
                        <ns4:templateId>37</ns4:templateId>
                        <ns4:adUnionId xsi:type="ns4:TempAdUnionId">
                            <ns4:id>129464</ns4:id>
                        </ns4:adUnionId>
                        <ns4:templateElements>
                            <ns4:uniqueName>adData</ns4:uniqueName>
                            <ns4:fields>
                                <ns4:name>adName</ns4:name>
                                <ns4:type>TEXT</ns4:type>
                                <ns4:fieldText>Roadshow Flash</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>text1</ns4:name>
                                <ns4:type>TEXT</ns4:type>
                                <ns4:fieldText>Example presents</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>text1Font</ns4:name>
                                <ns4:type>ENUM</ns4:type>
                                <ns4:fieldText>futurabc</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>color1</ns4:name>
                                <ns4:type>ENUM</ns4:type>
                                <ns4:fieldText>#ffff66</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>text2</ns4:name>
                                <ns4:type>TEXT</ns4:type>
                                <ns4:fieldText>,</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>text2Font</ns4:name>
                                <ns4:type>ENUM</ns4:type>
                                <ns4:fieldText>franklingothic_h</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>color2</ns4:name>
                                <ns4:type>ENUM</ns4:type>
                                <ns4:fieldText>#000000</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>text3</ns4:name>
                                <ns4:type>TEXT</ns4:type>
                                <ns4:fieldText>.</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>text3Font</ns4:name>
                                <ns4:type>ENUM</ns4:type>
                                <ns4:fieldText>franklingothic_h</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>color3</ns4:name>
                                <ns4:type>ENUM</ns4:type>
                                <ns4:fieldText>#ffcc00</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>logoUrl</ns4:name>
                                <ns4:type>IMAGE</ns4:type>
                                <ns4:fieldMedia xsi:type="ns4:Image">
                                    <ns4:type>IMAGE</ns4:type>
                                    <ns4:referenceId>-4745007012736836904</ns4:referenceId>
                                    <ns4:dimensions>
                                        <ns4:key>FULL</ns4:key>
                                        <ns4:value>
                                            <ns4:width>100</ns4:width>
                                            <ns4:height>36</ns4:height>
                                        </ns4:value>
                                    </ns4:dimensions>
                                    <ns4:urls>
                                        <ns4:key>FULL</ns4:key>
                                        <ns4:value>https://tpc.googlesyndication.com/pageadimg/imgad?id=XXX</ns4:value>
                                    </ns4:urls>
                                    <ns4:Media.Type>Image</ns4:Media.Type>
                                </ns4:fieldMedia>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>clickText</ns4:name>
                                <ns4:type>TEXT</ns4:type>
                                <ns4:fieldText>REGISTER!</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>clickTextFont</ns4:name>
                                <ns4:type>ENUM</ns4:type>
                                <ns4:fieldText>futurabc</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>color7</ns4:name>
                                <ns4:type>ENUM</ns4:type>
                                <ns4:fieldText>#000000</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>color6</ns4:name>
                                <ns4:type>ENUM</ns4:type>
                                <ns4:fieldText>#FFCF11</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>product1</ns4:name>
                                <ns4:type>IMAGE</ns4:type>
                                <ns4:fieldMedia xsi:type="ns4:Image">
                                    <ns4:type>IMAGE</ns4:type>
                                    <ns4:referenceId>-2898028189745287274</ns4:referenceId>
                                    <ns4:dimensions>
                                        <ns4:key>FULL</ns4:key>
                                        <ns4:value>
                                            <ns4:width>300</ns4:width>
                                            <ns4:height>196</ns4:height>
                                        </ns4:value>
                                    </ns4:dimensions>
                                    <ns4:urls>
                                        <ns4:key>FULL</ns4:key>
                                        <ns4:value>https://tpc.googlesyndication.com/pageadimg/imgad?id=XXX</ns4:value>
                                    </ns4:urls>
                                    <ns4:Media.Type>Image</ns4:Media.Type>
                                </ns4:fieldMedia>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>color4</ns4:name>
                                <ns4:type>ENUM</ns4:type>
                                <ns4:fieldText>#ffcc00</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>displayUrl</ns4:name>
                                <ns4:type>TEXT</ns4:type>
                                <ns4:fieldText>www.example.com</ns4:fieldText>
                            </ns4:fields>
                            <ns4:fields>
                                <ns4:name>destinationUrl</ns4:name>
                                <ns4:type>URL</ns4:type>
                                <ns4:fieldText>http://www.example.com/roadshow.html</ns4:fieldText>
                            </ns4:fields>
                        </ns4:templateElements>
                        <ns4:dimensions>
                            <ns4:width>300</ns4:width>
                            <ns4:height>250</ns4:height>
                        </ns4:dimensions>
                        <ns4:name>Roadshow Flash</ns4:name>
                    </ad>
                    <status>ENABLED</status>
                    <approvalStatus>FAMILY_SAFE</approvalStatus>
                    <trademarkDisapproved>true</trademarkDisapproved>
                    <stats>
                        <network>SEARCH</network>
                        <Stats.Type>AdStats</Stats.Type>
                        <percentServed>0.0</percentServed>
                    </stats>
                </operand>
            </operations>
        </mutate>
    </soapenv:Body>
</soapenv:Envelope>


<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201306">
            <requestId>0004e43abda2f0b80a42ab0d00005da9</requestId>
            <serviceName>AdGroupAdService</serviceName>
            <methodName>mutate</methodName>
            <operations>3</operations>
            <responseTime>300</responseTime>
        </ResponseHeader>
    </soap:Header>

    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Server</faultcode>
            <faultstring>[AdError.AD_FORMAT_NOT_SPECIFIED @ operations[1].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ operations[2].operand.ad.adFormat]</faultstring>
            <detail>
                <ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201306">

                    <message>[AdError.AD_FORMAT_NOT_SPECIFIED @ operations[1].operand.ad.adFormat, AdError.AD_FORMAT_NOT_SPECIFIED @ operations[2].operand.ad.adFormat]</message>
                    <ApplicationException.Type>ApiException</ApplicationException.Type>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AdError">
                        <fieldPath>operations[1].operand.ad.adFormat</fieldPath>
                        <trigger/>
                        <errorString>AdError.AD_FORMAT_NOT_SPECIFIED</errorString>
                        <ApiError.Type>AdError</ApiError.Type>
                    </errors>
                    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AdError">
                        <fieldPath>operations[2].operand.ad.adFormat</fieldPath>
                        <trigger/>
                        <errorString>AdError.AD_FORMAT_NOT_SPECIFIED</errorString>
                        <ApiError.Type>AdError</ApiError.Type>
                    </errors>
                </ApiExceptionFault>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Takeshi Hagikura (AdWords API Team)

unread,
Aug 22, 2013, 1:57:14 AM8/22/13
to adwor...@googlegroups.com
Hi, 

Thanks for the xml logs. 
I'm confirming the behavior if it's expected. 
I'll update the thread.

Best,
- Takeshi, AdWords API Team

Sam

unread,
Aug 22, 2013, 12:41:17 PM8/22/13
to adwor...@googlegroups.com
Hi Takeshi,

If it is an expected behavior, 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.

Regards,
Sam

Takeshi Hagikura (AdWords API Team)

unread,
Sep 2, 2013, 8:52:57 AM9/2/13
to adwor...@googlegroups.com
Hi Sam,

It's not the expected behavior. 
The fix will be applied anytime soon.

Best,
- Takeshi, AdWords API Team

Joe Heald

unread,
Jun 24, 2015, 5:36:08 AM6/24/15
to adwor...@googlegroups.com
Takeshi,

I am experiencing very similar errors, which I cannot find an explanation for in the API docs. Below are the errors I am receiving...

AdError.AD_FORMAT_NOT_SPECIFIED @ operations[0].operand.ad.adFormat
AdError.INVALID_INPUT @ operations[0].operand.ad.ddFeeds

I am trying to create a new AdGroupAd, of the TemplateAd type. However, I am attempting to use a custom TemplateAd ID, 416. I have created the ad template 416 manually in the adwords admin panel, but I would love to use this template structure to create new ads through the API. Is this not possible. If needed, I can post the full SOAP XML that I am attempting, and post the full response that I am receiving. Thanks in advance for any help you can offer.

-Joe



On Monday, September 2, 2013 at 8:52:57 AM UTC-4, Takeshi Hagikura (AdWords API Team) wrote:
Hi Sam,

...

Danial Klimkin

unread,
Jun 26, 2015, 7:42:29 AM6/26/15
to adwor...@googlegroups.com, jhe...@bostonlogic.com
Hello Joe,


This thread is two years old and in fact Takeshi has moved to a different team by now.

Please start a new thread on the forum, including your request and response code (please make sure to remove sensitive information such as developer token). Our team will follow up on the issue.


-Danial, AdWords API Team.
...
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages