Adwords API /CustomerService returns "UNKNOWN" error

237 views
Skip to first unread message

Kevin Moritz

unread,
Aug 19, 2015, 12:37:28 PM8/19/15
to AdWords API Forum
Today I went to view my adwords account via the /CustomerService endpoint, and received an UNKNOWN error.  I am not sure what this means, and I am pretty sure I have not received this error in the past whilst trying to get info about my adwords account.  Can someone please shed light on this?

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 
<soap:Header>
   
<ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201506" xmlns="https://adwords.google.com/api/adwords/mcm/v201506">
     
<ns2:requestId>00051dabf7fd6bf80ac4a4ca9000e24c</ns2:requestId>
     
<ns2:serviceName>CustomerService</ns2:serviceName>
     
<ns2:methodName>get</ns2:methodName>
     
<ns2:operations>0</ns2:operations>
     
<ns2:responseTime>198</ns2:responseTime>
   
</ResponseHeader>
 
</soap:Header>
 
<soap:Body>
   
<soap:Fault>
     
<faultcode>soap:Server</faultcode>
     
<faultstring>[RequestError.UNKNOWN @ ]</faultstring>
     
<detail>
       
<ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/mcm/v201506" xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201506">
         
<ns2:message>[RequestError.UNKNOWN @ ]</ns2:message>
         
<ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type>
         
<ns2:errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:RequestError">
           
<ns2:fieldPath></ns2:fieldPath>
           
<ns2:trigger></ns2:trigger>
           
<ns2:errorString>RequestError.UNKNOWN</ns2:errorString>
           
<ns2:ApiError.Type>RequestError</ns2:ApiError.Type>
           
<ns2:reason>UNKNOWN</ns2:reason>
         
</ns2:errors>
       
</ApiExceptionFault>
     
</detail>
   
</soap:Fault>
 
</soap:Body>
</soap:Envelope>

Umesh Dengale

unread,
Aug 19, 2015, 5:11:44 PM8/19/15
to AdWords API Forum
Hi Kevin,

Could provide the SOAP XML request logs? Just click Reply privately to author in the forum when responding. Don't forget to remove the developer token in the output.

Thanks,
Umesh, AdWords API Team.

Umesh Dengale

unread,
Aug 20, 2015, 10:49:43 AM8/20/15
to AdWords API Forum
Hi Kevin,

Thanks for emailing the SOAP XML request. You are using CustomerId, Name fields in the selector for the CustomerService. However, Name field is not defined in the Customer. Please select the fields available in the Customer class.
If you are planning get information(e.g. CustomerId, Name) about ManagedCustomer, then please use ManagedCustomerService.

Regards,
Umesh, AdWords API Team.

Kevin Moritz

unread,
Aug 20, 2015, 5:31:13 PM8/20/15
to AdWords API Forum
I'm confused, because I've called the same exact XML request with a different non-manager user and it returns fine.  I also took the name field out of the selector, and still receive the same error.  I still don't know what the UNKNOWN error is, but I assume it has something to do with me starting adwords but not completing it.  Can you please look into this for me?  If I login to adwords, I see I have a customer id, but I have not completed the billing section yet (and do not plan to).  Is this a bug in the adwords API?  Should I be seeing a different error?  UNKNOWN I feel is too generic, where NOT_ADS_USER might be more applicable in this case.

Kevin

Danial Klimkin

unread,
Aug 24, 2015, 9:08:49 AM8/24/15
to AdWords API Forum
Hello Kevin,


As per service documentation, CustomerService.get() method takes no parameters:


Have you tried omitting the selector in your request?


-Danial, AdWords API Team.

Kevin Moritz

unread,
Aug 24, 2015, 12:09:36 PM8/24/15
to AdWords API Forum
Correct. I removed the <serviceSelector> portion completely from the XML request and still receive the same UNKNOWN error


Kevin

Kevin Moritz

unread,
Aug 28, 2015, 3:17:39 PM8/28/15
to AdWords API Forum
Any updates as to why I might be seeing this error?

Danial Klimkin

unread,
Sep 10, 2015, 12:19:27 PM9/10/15
to AdWords API Forum
Hello Kevin,


The body part of the request should look like:

  <env:Body>
  </env:Body>

If still in doubt, please send me full XML request and response code over email ("reply to author" on the right).


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages