InternalApiError.UNEXPECTED_INTERNAL_API_ERROR using CampaignService

40 views
Skip to first unread message

Oksana Sulyma

unread,
Dec 14, 2018, 10:10:49 AM12/14/18
to AdWords API and Google Ads API Forum
Hello dear Ads support.
We started to experience very strange error using CampaignService. Our code is stable and using CampaignService is successful for the thousands of accounts we serve, but recently we started to get this issue for like 10 accounts among thousands.

Our call xml look like:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v20="https://adwords.google.com/api/adwords/cm/v201809">
   <soapenv:Header>
      <v20:RequestHeader>
         %authtoken%
         <v20:clientCustomerId>{our_id_here}</v20:clientCustomerId>
         <v20:developerToken>{our_token_here}</v20:developerToken>
      </v20:RequestHeader>
   </soapenv:Header>
   <soapenv:Body>
      <v20:get>
         <v20:serviceSelector>
            <v20:fields>Name</v20:fields>
            <v20:fields>StartDate</v20:fields>
            <v20:fields>EndDate</v20:fields>
            <v20:paging>
                <v20:startIndex>0</v20:startIndex>
                <v20:numberResults>10000</v20:numberResults>
            </v20:paging>
       </v20:serviceSelector>
      </v20:get>
   </soapenv:Body>
</soapenv:Envelope>


Error response looked like : "InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro.. "
(sorry we haven't logged full response)

When I try to reproduce this error, I get next response:
"<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809"><requestId>00057cfccdc88e480a374d949d027f60</requestId><serviceName>CampaignService</serviceName><methodName>get</methodName><operations>1</operations><responseTime>119</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>[AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'&lt;null&gt;']</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201809"><message>[AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'&lt;null&gt;']</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="AuthorizationError"><fieldPath></fieldPath><trigger>&lt;null&gt;</trigger><errorString>AuthorizationError.USER_PERMISSION_DENIED</errorString><ApiError.Type>AuthorizationError</ApiError."

This error is clear to me. But when we get InternalApiError.UNEXPECTED_INTERNAL_API_ERROR - we don't know how to act.
Any recommendations on this, shell we retry (we already make 3 retries with delay 30 seconds and this doesn't help).
Any ideas will be appreciated!
Thanks!

Teja Makani

unread,
Dec 14, 2018, 4:32:59 PM12/14/18
to AdWords API and Google Ads API Forum
Hello 

The USER_PERMISSION_DENIED error occurs when there is no link between the manager account authenticated in the request and the client account specified in the headers. Please make sure that the user authenticating the call having access to the account targeted in the API call. If the problem persists, please share the user's email address authenticating the call and the SOAP logs(or Client customer Id's in the request). Regarding the InternalApiError.UNEXPECTED_INTERNAL_API_ERROR, there is an ongoing known issue, our team is investigating. I will let you know once i have more information on this. You could use reply privately to the author option while sharing the details requested.

Regards,
Sai Teja, AdWords API Team

Oksana Sulyma

unread,
Dec 17, 2018, 7:13:07 AM12/17/18
to AdWords API and Google Ads API Forum
Thanks Sai Teja!
On this "InternalApiError.UNEXPECTED_INTERNAL_API_ERROR, there is an ongoing known issue". Is there some blog/topic where we can monitor state of this issue?
Thank you for information!
Oksana

Teja Makani

unread,
Dec 17, 2018, 1:26:33 PM12/17/18
to AdWords API and Google Ads API Forum
Hello Oksana,

There isn't any blog post regarding this issue. I will update you on this thread once we have any updates regarding this issue.


Regards,
Sai Teja, AdWords API Team

On Friday, December 14, 2018 at 10:10:49 AM UTC-5, Oksana Sulyma wrote:

Teja Makani

unread,
Dec 19, 2018, 2:32:31 PM12/19/18
to AdWords API and Google Ads API Forum
Hello Oksana,

Looks like the issue related to the UNEXPECTED_INTERNAL_API_ERROR is resolved. Please let us know if you are still facing these errors.


Regards,
Sai Teja, AdWords API Team

On Friday, December 14, 2018 at 10:10:49 AM UTC-5, Oksana Sulyma wrote:
Reply all
Reply to author
Forward
0 new messages