I am having a problem trying to add Ad Extensions to a campaign using the 
PHP API.  I have tried everything that I could to try and figure this out 
but I am getting nowhere with this UNEXPECTED_INTERNAL_API_ERROR.  Is there 
anyone that could look into this for me?  

The SOAP calls are below,

[Apr 20 2017 18:31:49.000000 - ERROR] POST 
/api/adwords/cm/v201702/CampaignExtensionSettingService HTTP/1.1^M
Host: adwords.google.com^M
Connection: Keep-Alive^M
User-Agent: PHP-SOAP/5.6.30, gzip^M
Accept-Encoding: gzip, deflate^M
Content-Encoding: gzip^M
Content-Type: text/xml; charset=utf-8^M
SOAPAction: ""^M
Content-Length: 720^M

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201702"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <SOAP-ENV:Header>
    <ns1:RequestHeader>
      <ns1:clientCustomerId>369-234-5439</ns1:clientCustomerId>
      <ns1:developerToken>GL6jmBtb_-qkg3bziDc3iQ</ns1:developerToken>
      <ns1:userAgent>autowebengine.com (AwApi-PHP/17.0.0, 
Common-PHP/17.0.0, PHP/5.6.30)</ns1:userAgent>
    </ns1:RequestHeader>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <ns1:mutate>
      <ns1:operations>
        <ns1:operator>ADD</ns1:operator>
        <ns1:operand>
          <ns1:campaignId>727425765</ns1:campaignId>
          <ns1:extensionType>SITELINK</ns1:extensionType>
          <ns1:extensionSetting>
            <ns1:extensions xsi:type="ns1:SitelinkFeedItem">
              <ns1:geoTargeting>
                <ns1:locationName>2840</ns1:locationName>
              </ns1:geoTargeting>
              <ns1:geoTargetingRestriction>
                
<ns1:geoRestriction>LOCATION_OF_PRESENCE</ns1:geoRestriction>
              </ns1:geoTargetingRestriction>
              <ns1:sitelinkText>Bob Moore Ford</ns1:sitelinkText>
              <ns1:sitelinkFinalUrls>
                <ns1:urls>http://www.bobmooreford.com</ns1:urls>
              </ns1:sitelinkFinalUrls>
            </ns1:extensions>
          </ns1:extensionSetting>
        </ns1:operand>
      </ns1:operations>
      <ns1:operations>
        <ns1:operator>ADD</ns1:operator>
        <ns1:operand>
          <ns1:campaignId>727425765</ns1:campaignId>
          <ns1:extensionType>CALLOUT</ns1:extensionType>
          <ns1:extensionSetting>
            <ns1:extensions xsi:type="ns1:CalloutFeedItem">
              <ns1:calloutText>Great Selection</ns1:calloutText>
            </ns1:extensions>
            <ns1:extensions xsi:type="ns1:CalloutFeedItem">
              <ns1:calloutText>Quality Cars</ns1:calloutText>
            </ns1:extensions>
            <ns1:extensions xsi:type="ns1:CalloutFeedItem">
              <ns1:calloutText>Best Local Deals</ns1:calloutText>
            </ns1:extensions>
            <ns1:extensions xsi:type="ns1:CalloutFeedItem">
              <ns1:calloutText>Financing Available</ns1:calloutText>
            </ns1:extensions>
          </ns1:extensionSetting>
        </ns1:operand>
      </ns1:operations>
    </ns1:mutate>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

HTTP/1.1 500 Internal Server Error^M
Content-Type: text/xml; charset=UTF-8^M
Content-Encoding: gzip^M
Date: Thu, 20 Apr 2017 22:31:49 GMT^M
Expires: Thu, 20 Apr 2017 22:31:49 GMT^M
Cache-Control: private, max-age=0^M
X-Content-Type-Options: nosniff^M
X-Frame-Options: SAMEORIGIN^M
X-XSS-Protection: 1; mode=block^M
Server: GSE^M
Alt-Svc: quic=":443"; ma=2592000; v="37,36,35"^M
Transfer-Encoding: chunked

<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Header>
    <ResponseHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201702";>
      <requestId>00054da0b4ea8dd00a37cc8d250e65e2</requestId>
      <serviceName>CampaignExtensionSettingService</serviceName>
      <methodName>mutate</methodName>
      <operations>7</operations>
      <responseTime>387</responseTime>
    </ResponseHeader>
  </soap:Header>
  <soap:Body>
    <soap: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 
xmlns="https://adwords.google.com/api/adwords/cm/v201702";>
          <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 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="InternalApiError">
            <fieldPath/>
            <trigger/>
            
<errorString>InternalApiError.UNEXPECTED_INTERNAL_API_ERROR</errorString>
            <ApiError.Type>InternalApiError</ApiError.Type>
            <reason>UNEXPECTED_INTERNAL_API_ERROR</reason>
          </errors>
        </ApiExceptionFault>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/44cf377d-df1e-4102-97e1-68333f133e16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to