CustomerServer getCustomers throws UNEXPECTED_INTERNAL_API_ERROR

66 views
Skip to first unread message

gyn...@branch.io

unread,
Oct 4, 2017, 5:10:06 PM10/4/17
to AdWords API Forum
I've been consistently getting an UNEXPECTED_INTERNAL_API_ERROR when using the googleads-java-lib to make a request to the AdWords CustomerService. Any idea on what might be missing?


Service: CustomerService
Method: getCustomers
URL: https://adwords.google.com/api/adwords/mcm/v201708/CustomerService
Request ID: 00055abd3118b9800aa37bcc8202950e

SOAP request:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   
<soapenv:Header>
       
<ns1:RequestHeader xmlns:ns1="https://adwords.google.com/api/adwords/mcm/v201708" soapenv:mustUnderstand="0">
           
<ns2:developerToken xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201708">REDACTED</ns2:developerToken>
           
<ns3:userAgent xmlns:ns3="https://adwords.google.com/api/adwords/cm/v201708">AdWords (AwApi-Java, AdWords-Axis/3.8.0, Common-Java/3.8.0, Axis/1.4, Java/1.8.0_91, maven)</ns3:userAgent>
           
<ns4:validateOnly xmlns:ns4="https://adwords.google.com/api/adwords/cm/v201708">false</ns4:validateOnly>
           
<ns5:partialFailure xmlns:ns5="https://adwords.google.com/api/adwords/cm/v201708">false</ns5:partialFailure>
       
</ns1:RequestHeader>
   
</soapenv:Header>
   
<soapenv:Body>
       
<getCustomers xmlns="https://adwords.google.com/api/adwords/mcm/v201708"/>
   
</soapenv:Body>
</soapenv:Envelope>

SOAP response:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   
<soap:Header>
       
<ns2:ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201708" xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201708">
           
<requestId>00055abc34fcee000aa35acdcc0a5bfe</requestId>
           
<serviceName>CustomerService</serviceName>
           
<methodName>getCustomers</methodName>
           
<operations>0</operations>
           
<responseTime>157</responseTime>
       
</ns2: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>
               
<ns2:ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201708" xmlns:ns2="https://adwords.google.com/api/adwords/mcm/v201708">
                   
<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>
               
</ns2:ApiExceptionFault>
           
</detail>
       
</soap:Fault>
   
</soap:Body>
</soap:Envelope>

More request info:
com.google.api.ads.adwords.lib.client.AdWordsServiceClient.requestInfoLogger: Request made: Service: CustomerService Method: getCustomers clientCustomerId: null URL: https://adwords.google.com/api/adwords/mcm/v201708/CustomerService Request ID: 00055abd3118b9800aa37bcc8202950e ResponseTime(ms): 167 OperationsCount: 0 IsFault: true FaultMessage: ApiException{applicationExceptionType=ApiException, errors=[InternalApiError{apiErrorType=InternalApiError, errorString=InternalApiError.UNEXPECTED_INTERNAL_API_ERROR, fieldPath=, reason=UNEXPECTED_INTERNAL_API_ERROR, trigger=}]}


Vincent Racaza (AdWords API Team)

unread,
Oct 5, 2017, 12:58:12 AM10/5/17
to AdWords API Forum
Hi,

I can see that you have also posted this as a private reply on this forum post, but will just reply here so we can track your concern better.

Could you confirm if until now, you are receiving this error consistently? As for UNEXPECTED_INTERNAL_ERROR, there might be temporary issues on our servers or there might be a bug that caused this. I have also tested this on my test account (with or without clientCustomerId), and the request worked successfully.

If you can confirm that you are still experiencing the issue even until now, then let us know so we can investigate the issue further.

Thanks,
Vincent
AdWords API Team

gyn...@branch.io

unread,
Oct 5, 2017, 11:22:32 AM10/5/17
to AdWords API Forum
Thanks for the reply Vincent! I'm still receiving the same error and haven't been able to send a successful one yet.

Thanet Knack Praneenararat (AdWords API Team)

unread,
Oct 6, 2017, 5:41:58 AM10/6/17
to AdWords API Forum
Hello,

We're investigating this issue and will get back to you soon.

Best,
Thanet, AdWords API Team

gyn...@branch.io

unread,
Oct 6, 2017, 12:51:31 PM10/6/17
to AdWords API Forum
We changed our manager account type from "Independent API access" provision to "Agency/SEM access" provision and that solve the issue.

Thanks,
Gerrit

Thanet Knack Praneenararat (AdWords API Team)

unread,
Oct 10, 2017, 2:27:26 AM10/10/17
to AdWords API Forum
Hello Gerrit,

Thanks for letting us know and glad that you can solve the issue.
I'll check if there is any information that we can add to our docs to make it clear.

Best,
Thanet, AdWords API Team
Reply all
Reply to author
Forward
0 new messages