CustomerService.getCustomers returns AuthorizationError.CUSTOMER_NOT_ACTIVE

335 views
Skip to first unread message

Timm Janssen

unread,
May 29, 2018, 5:31:18 AM5/29/18
to AdWords API and Google Ads API Forum
Occurs when fetching all customers for our MCC. There are only a few customers which are in fact not active.
Here's our request:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns0="https://adwords.google.com/api/adwords/mcm/v201802" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://adwords.google.com/api/adwords/mcm/v201802" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
 
<SOAP-ENV:Header>
     
<tns:RequestHeader>
       
<tns:developerToken xmlns:tns="https://adwords.google.com/api/adwords/cm/v201802">XXXXXXXXXX</tns:developerToken>
       
<tns:userAgent xmlns:tns="https://adwords.google.com/api/adwords/cm/v201802">Our App (AwApi-Python, googleads/10.1.0, Python/2.7.12)</tns:userAgent>
       
<tns:validateOnly xmlns:tns="https://adwords.google.com/api/adwords/cm/v201802">false</tns:validateOnly>
       
<tns:partialFailure xmlns:tns="https://adwords.google.com/api/adwords/cm/v201802">false</tns:partialFailure>
     
</tns:RequestHeader>
 
</SOAP-ENV:Header>
 
<ns1:Body>
     
<ns0:getCustomers/>
 
</ns1:Body>
</SOAP-ENV:Envelope>

How are we supposed to retrieve all customers in such a case?

The same applies to other methods like ReportDefinitionService.getReportFields where we can set clientCustomerId with the top MCC's ID as a workaround. However this is not possible for the case mentioned above.

Thanks,
Timm

Dhanya Sundararaju (AdWords API Team)

unread,
May 29, 2018, 3:17:13 PM5/29/18
to AdWords API and Google Ads API Forum
Hi Timm,

If you are trying to get the list of customers to which your OAuth has access, then you can use the CustomerService.getCustomers() without setting a clientcustomerid. Else, if you are trying to get the list of customers under a MCC, then you will need to set the clientcustomerid as the MCC id, and then do a ManagedCustomerService.get(). When you do a check on your access against a client customer id that is not active, you will get the error AuthorizationError.CUSTOMER_NOT_ACTIVE. In order to troubleshoot further, could you please reply back with the complete SOAP logs including request and response with data NOT redacted? You may opt to reply privately to author.

Regards,
Dhanya, AdWords API Team

Timm Janssen

unread,
Jun 4, 2018, 12:11:43 PM6/4/18
to AdWords API and Google Ads API Forum
HI,

just replied privately, however this seems to be connected with https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/adwords-api/v2bkyJiT62E (got the same error message before bumping the API version to v201802)

Thanks
Timm

Dhanya Sundararaju (AdWords API Team)

unread,
Jun 4, 2018, 2:41:19 PM6/4/18
to AdWords API and Google Ads API Forum
Hi Timm,

Thank you for the details. We are looking into this issue and will post on this thread as soon as we have an update.

Alon Diamant

unread,
Jun 4, 2018, 3:42:13 PM6/4/18
to AdWords API and Google Ads API Forum
We are also affected by this issue, indeed, calling CustomerService.getCustomers() without setting a clientCustomerId.
Replying to receive updates.

Dhanya Sundararaju (AdWords API Team)

unread,
Jun 5, 2018, 1:28:40 PM6/5/18
to AdWords API and Google Ads API Forum
Hi all,

Thanks for the details. We are looking into it and will post on this thread once we have any updates.

Dhanya Sundararaju (AdWords API Team)

unread,
Jun 5, 2018, 3:59:10 PM6/5/18
to AdWords API and Google Ads API Forum
Hi all,

The issue has been fixed. Could you please retry and let me know if you still get errors when pulling up active accounts?

Ivan Petrov

unread,
Jun 5, 2018, 5:56:36 PM6/5/18
to AdWords API and Google Ads API Forum
I also have similar situation. Perfectly fine MCC, probably a few inactive customers inside, but then CustomerService getCustomers() not working without specifying id. Same problem. How we are supposed to retrieve all customers in such a case?

Timm Janssen

unread,
Jun 6, 2018, 12:59:22 AM6/6/18
to AdWords API and Google Ads API Forum
Hi Dhanya,

I can confirm the issue seems to be fixed.

Thanks,
Timm

Dhanya Sundararaju (AdWords API Team)

unread,
Jun 6, 2018, 10:36:09 AM6/6/18
to AdWords API and Google Ads API Forum
Hi Ivan,

Could you please reply back with the emailid used for making the API call, complete SOAP logs including request and response and also what accounts you expect to see in the response, so that I can troubleshoot further? You may opt to reply privately to author.

Oksana Sulyma

unread,
Aug 13, 2018, 7:56:59 AM8/13/18
to AdWords API and Google Ads API Forum
Hi guys,
We experience similar issue, I had separate topic on it, but it was marked as duplicated and I get redirected here.
I'm ready to provide again details on the error we get. Whom can I send this provate information?
Thanks,
Oksana

Dhanya Sundararaju (AdWords API Team)

unread,
Aug 13, 2018, 11:42:06 AM8/13/18
to AdWords API and Google Ads API Forum
Hi Oksana,

You can reply privately to author. Please do include details like emailid used for making the API call, complete SOAP logs including request and response and also what accounts you expect to see in the response.

Oksana Sulyma

unread,
Aug 14, 2018, 4:20:00 AM8/14/18
to AdWords API and Google Ads API Forum
Replied, thanks!

David Antunes

unread,
Oct 12, 2018, 2:52:21 AM10/12/18
to AdWords API and Google Ads API Forum
Hi,

I'm also experiencing the same issue - should I also send the SOAP logs to you Dhanya?

Many thanks!
David

Dhanya Sundararaju (AdWords API Team)

unread,
Oct 12, 2018, 1:56:30 PM10/12/18
to AdWords API and Google Ads API Forum
Hi David,

Yes, please reply back with your client customer id and complete SOAP logs including Request id, so that I can check further.

David Miguel Antunes

unread,
Oct 16, 2018, 2:09:22 PM10/16/18
to Dhanya Sundararaju, AdWords API Forum
Hi Dhanya,

Thank you, I've found the cause for this problem in the meanwhile.

Kind regards!
David


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/uSomm1x4nKw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/8e56332c-523f-4d04-8d41-0746080f470b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dhanya Sundararaju (AdWords API Team)

unread,
Oct 17, 2018, 10:25:34 AM10/17/18
to AdWords API and Google Ads API Forum
Hi David,

Glad that you were able to figure out the problem. Let us know if you need any further assistance.
Reply all
Reply to author
Forward
0 new messages