Campaign Service returns UNEXPECTED_INTERNAL_API_ERROR with Shopping Campaigns

69 views
Skip to first unread message

Edward Grave

unread,
Feb 11, 2015, 6:31:11 AM2/11/15
to adwor...@googlegroups.com
When requesting a shopping campaign to be added I am receiving an internal error back from Google.

Does anyone have any clues as to why this might be?

Below is the SOAP request/response:


REQUEST:

  <soap:Header>
      <clientCustomerId>*********</clientCustomerId>
      <developerToken>*********</developerToken>
      <userAgent>*******</userAgent>
    </RequestHeader>
  </soap:Header>
  <soap:Body>
      <operations>
        <operator>ADD</operator>
        <operand>
          <name>EdCamp1234</name><status>ENABLED</status>
          <budget>
            <budgetId>213066684</budgetId><deliveryMethod>STANDARD</deliveryMethod>
          </budget>
          <adServingOptimizationStatus>OPTIMIZE</adServingOptimizationStatus>
          <settings xsi:type="ShoppingSetting">
            <merchantId>*********</merchantId><salesCountry>Algeria</salesCountry>
            <campaignPriority>0</campaignPriority>
          </settings>
          <advertisingChannelType>SEARCH</advertisingChannelType>
          <networkSetting>
            <targetGoogleSearch>true</targetGoogleSearch><targetSearchNetwork>true</targetSearchNetwork>
            <targetContentNetwork>true</targetContentNetwork>
            <targetPartnerSearchNetwork>false</targetPartnerSearchNetwork>
          </networkSetting>
          <biddingStrategyConfiguration>
            <biddingStrategyId>492638724</biddingStrategyId>
          </biddingStrategyConfiguration>
        </operand>
      </operations>
    </mutate>
  </soap:Body>
</soap:Envelope>

RESPONSE:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
      <requestId>00050eccae2114510ac45ea758007d6c</requestId>
      <serviceName>CampaignService</serviceName>
      <methodName>mutate</methodName>
      <operations>0</operations>
      <responseTime>57</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/v201409">
          <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></fieldPath>
            <trigger></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>
Message has been deleted

Edward Grave

unread,
Feb 12, 2015, 9:32:51 AM2/12/15
to adwor...@googlegroups.com

This is now happening when any campaign is attempted to be added through the API

Josh Radcliff (AdWords API Team)

unread,
Feb 13, 2015, 12:55:40 PM2/13/15
to adwor...@googlegroups.com
Hi,

I looked up your request, and the underlying error is caused by the ShoppingSetting.salesCountry setting in your request. Are you able to create a Merchant Center account with a sales country of Algeria? From what I can find, that country is not supported.

I'll also follow up with the shopping team so we can provide a more useful error if the sales country is not supported.

Thanks,
Josh, AdWords API Team

Edward Grave

unread,
Feb 16, 2015, 5:29:54 AM2/16/15
to adwor...@googlegroups.com
Hi Josh,

Thanks for the response. Unfortunately this is happening with any country.

I have tried to do multiple calls with different countries such as the UK and United States. All come back with this internal error response.

Here's a RequestID for a request I just did with the Untied States as the country. '00050f31fb71be980aec56d2c8001a7c'

Regards, Ed

Josh Radcliff (AdWords API Team)

unread,
Feb 17, 2015, 10:46:15 AM2/17/15
to adwor...@googlegroups.com
Hi Ed,

Thanks for the request ID. I noticed that you specified the country using the country name of United States. Have you tried using the country code US instead, as shown in the AddShoppingCampaign example?

Cheers,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages