AdGroupCriterionService mutate InternalApiError.UNEXPECTED_INTERNAL_API_ERROR

70 views
Skip to first unread message

samsinf...@gmail.com

unread,
Apr 23, 2019, 5:00:57 PM4/23/19
to AdWords API and Google Ads API Forum
Hi,
Whenever I try and call this, i get an UNEXPECTED_INTERNAL_API_ERROR error, both on our live account and test account
SOAP is:
  <s:Header>
      <clientCustomerId></clientCustomerId>
      <developerToken></developerToken>
      <userAgent>unknown (AwApi-DotNet/24.6.0, Common-Dotnet/9.5.0, .NET CLR/4.0.30319.42000, , gzip)</userAgent>
    </RequestHeader>
  </s:Header>
      <operations>
        <operator>ADD</operator>
        <operand xsi:type="BiddableAdGroupCriterion">
          <adGroupId>69481202596</adGroupId>
          <criterion xsi:type="ProductPartition">
            <id>-2147483648</id>
            <partitionType>SUBDIVISION</partitionType>
          </criterion>
        </operand>
      </operations>
      <operations>
        <operator>ADD</operator>
        <operand xsi:type="BiddableAdGroupCriterion">
          <adGroupId>69481202596</adGroupId>
          <criterion xsi:type="ProductPartition">
            <id>-2147483647</id>
            <partitionType>UNIT</partitionType>
            <parentCriterionId>-2147483648</parentCriterionId>
            <caseValue xsi:type="ProductOfferId">
              <value>A17</value>
            </caseValue>
          </criterion>
          <biddingStrategyConfiguration>
            <bids xsi:type="CpcBid">
              <bid>
                <microAmount>1000000</microAmount>
              </bid>
              <cpcBidSource>CRITERION</cpcBidSource>
            </bids>
          </biddingStrategyConfiguration>
        </operand>
      </operations>
      <operations>
        <operator>ADD</operator>
        <operand xsi:type="NegativeAdGroupCriterion">
          <adGroupId>69481202596</adGroupId>
          <criterion xsi:type="ProductPartition">
            <id>-2147483646</id>
            <partitionType>UNIT</partitionType>
            <parentCriterionId>-2147483648</parentCriterionId>
            <caseValue xsi:type="ProductOfferId"/>
          </criterion>
        </operand>
      </operations>
    </mutate>
  </s:Body>
</s:Envelope>


Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
      <requestId>000587341cad21ab0a37c201b203bbcb</requestId>
      <serviceName>AdGroupCriterionService</serviceName>
      <methodName>mutate</methodName>
      <operations>3</operations>
      <responseTime>328</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/v201809">
          <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>

googleadsapi...@google.com

unread,
Apr 24, 2019, 3:04:00 PM4/24/19
to samsinf...@gmail.com, AdWords API and Google Ads API Forum
Hello Sam, 

Regret the delay. The UNEXPECTED_INTERNAL_API_ERROR could be due to a transient issue and retrying the request should work in most of the scenarios. Please find the attached SOAP logs from my testing which worked fine with a similar request. Also, I'm having trouble looking up the specific AdGroup Id. Could you please recheck this? If you're still having an issue, could you please share the API SOAP logs of your implementation along with the CID without redacting any information? You can share the details privately via Reply privately to author option.

Regards,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Sample_Logs.rtf

samsinf...@gmail.com

unread,
Apr 26, 2019, 6:18:39 AM4/26/19
to AdWords API and Google Ads API Forum
Hi Bharani, i've sent a reply privately to author, please can you confirm if you've received it
Thanks
Sam

googleadsapi...@google.com

unread,
Apr 26, 2019, 8:53:15 AM4/26/19
to samsinf...@gmail.com, AdWords API and Google Ads API Forum
Hi Sam, 

Thank you for the logs. We have shared the details with the Engineering team for further investigation. However, I noticed that the ad group's campaign (1810991026) is a Search campaign. To add the Product Partition criteria to the ad group, this should only be done with ad groups of a shopping campaign. Could you please retry the request with an ad group under a shopping campaign? 

Please let us know if you're having an issue.

Regards,
Bharani, Google Ads API Team
Reply all
Reply to author
Forward
0 new messages