Hello,

I used the following request to add a template ad to the production
version of the api. I have not had trouble adding other types of ads
(text, image, mobile, etc), but I'm not sure why this type isn't
accepting my request.

The request to add ads itself:

<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-
ENV="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://
www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"> <SOAP-ENV:Header> <ns1:RequestHeader xmlns:ns1="https://
adwords.google.com/api/adwords/cm/v201101">
<ns1:authToken>*******************</ns1:authToken>
<ns1:developerToken>**************</ns1:developerToken>
<ns1:userAgent>*****************</ns1:userAgent>
<ns1:clientEmail>*******************</ns1:clientEmail> </
ns1:RequestHeader> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:mutate
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201101";>
<ns1:operations> <ns1:operator>ADD</ns1:operator> <ns1:operand>
<ns1:adGroupId>2427439864</ns1:adGroupId> <ns1:ad
xsi:type="ns1:TemplateAd"> <ns1:url>http://TestDisplayUrl.com?
adwordsid=69722344&amp;utm_campaign=APITestCampaign1&amp;utm_term={keyword}
&amp;utm_source=AdWords</ns1:url> <ns1:displayUrl>TestDisplayUrl.com</
ns1:displayUrl> <ns1:templateId></ns1:templateId>
<ns1:templateElements> <ns1:uniqueName>adData</ns1:uniqueName>
<ns1:fields> <ns1:name>text1TFText</ns1:name> <ns1:type>TEXT</
ns1:type> <ns1:fieldText>ThisIsTheFirstTestTemplateAd!</ns1:fieldText>
</ns1:fields> <ns1:fields> <ns1:name>text1TFTextFont</ns1:name>
<ns1:type>ENUM</ns1:type> <ns1:fieldText>YDYGO15</ns1:fieldText> </
ns1:fields> <ns1:fields> <ns1:name>text1TFTextColor</ns1:name>
<ns1:type>ENUM</ns1:type> <ns1:fieldText>#cc0000</ns1:fieldText> </
ns1:fields> <ns1:fields> <ns1:name>text2TFText</ns1:name>
<ns1:type>TEXT</ns1:type>
<ns1:fieldText>ThisIsTheDescriptionOfTheFirstTemplateAd!</
ns1:fieldText> </ns1:fields> <ns1:fields> <ns1:name>text2TFTextFont</
ns1:name> <ns1:type>ENUM</ns1:type> <ns1:fieldText>baskerville</
ns1:fieldText> </ns1:fields> <ns1:fields> <ns1:name>text2TFTextColor</
ns1:name> <ns1:type>ENUM</ns1:type> <ns1:fieldText>#33cc00</
ns1:fieldText> </ns1:fields> <ns1:fields> <ns1:name>clickTFText</
ns1:name> <ns1:type>TEXT</ns1:type>
<ns1:fieldText>ThisIsTheClickButtonForTheFirstTestAd!</ns1:fieldText>
</ns1:fields> <ns1:fields> <ns1:name>clickTFTextFont</ns1:name>
<ns1:type>ENUM</ns1:type> <ns1:fieldText>dfpgothic_w12</ns1:fieldText>
</ns1:fields> <ns1:fields> <ns1:name>clickTFTextColor</ns1:name>
<ns1:type>ENUM</ns1:type> <ns1:fieldText>#330000</ns1:fieldText> </
ns1:fields> <ns1:fields> <ns1:name>displayUrlColor</ns1:name>
<ns1:type>ENUM</ns1:type> <ns1:fieldText>#cc33cc</ns1:fieldText> </
ns1:fields> </ns1:templateElements> <ns1:dimensions> <ns1:width>468</
ns1:width> <ns1:height>60</ns1:height> </ns1:dimensions>
<ns1:name>TestTemplateAd</ns1:name> </ns1:ad> <ns1:status>enabled</
ns1:status> </ns1:operand> </ns1:operations> </ns1:mutate> </SOAP-
ENV:Body> </SOAP-ENV:Envelope>

Returned reponse from mutate request:


<Envelope ><Header><ResponseHeader
><requestId>0004a93d20b9c7a00ada4290338f1b80</requestId><operations>1</
operations><responseTime>457</responseTime><units>40</units></
ResponseHeader></Header><Body><Fault><faultcode>soap:Server</
faultcode><faultstring>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR
@
com.google.ads.api.services.common.error.InternalApiError.&lt;init&gt;
(InternalApiErro]</faultstring><detail><ApiExceptionFault
><message>[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
com.google.ads.api.services.common.error.InternalApiError.&lt;init&gt;
(InternalApiErro]</message><ApplicationException.Type>ApiException</
ApplicationException.Type><errors type="InternalApiError"><fieldPath></
fieldPath><trigger></
trigger><errorString>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR</
errorString><ApiError.Type>InternalApiError</
ApiError.Type><reason>UNEXPECTED_INTERNAL_API_ERROR</reason></errors></
ApiExceptionFault></detail></Fault></Body></Envelope> Fault from this
request: [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @
com.google.ads.api.services.common.error.InternalApiError.
(InternalApiErro]. No update has occurred.


Any insight into this problem would be greatly appreciated!

- Michael

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to