ListAccessibleCustomers fails for one specific account

1,115 views
Skip to first unread message

Marc Selman

unread,
May 9, 2019, 6:47:40 AM5/9/19
to AdWords API and Google Ads API Forum
I am trying to retrieve a list of customers for a specific google account but the request throws an exception.

Failure:
{ "errors": [ { "errorCode": { "authenticationError": "AUTHENTICATION_ERROR" }, "message": "Authentication of the request failed." } ] }

Message:
Status(StatusCode=Unauthenticated, Detail="Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.")

RequestId: 4c2d61SBEvXfIxwb123Wyw

For other google accounts it works without problems.

googleadsapi...@google.com

unread,
May 9, 2019, 1:41:46 PM5/9/19
to marc....@gmail.com, AdWords API and Google Ads API Forum
Hi Marc,

Your account is in DRAFT. You can't call the API against an account that is not set up. Once you finishing setting it up, you should be able to make API calls.

Regards,
Anthony
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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+unsubscribe@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 the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@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/d99a96d3-ce0e-4780-b91e-ca8fc751a7ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marc Selman

unread,
May 16, 2019, 8:45:12 AM5/16/19
to AdWords API and Google Ads API Forum
Hi Anthony,

The customer has finished setting up his account but now I still receive an error:

{ "errors": [ { "errorCode": { "authorizationError": "CUSTOMER_NOT_ENABLED" }, "message": "The customer can't be used because it isn't enabled." } ] }

What does "the customer is not enabled" mean?
And how can he or we fix it?

Best regards

Op donderdag 9 mei 2019 19:41:46 UTC+2 schreef googleadsapi-forumadvisor:

googleadsapi...@google.com

unread,
May 16, 2019, 2:38:10 PM5/16/19
to AdWords API and Google Ads API Forum
Hello Marc,

I am Anthony's team member, responding on this thread as he is not available. The error "the customer is not enabled" means that the account is not yet ready. I see that the account:8770719274 is still in draft, they yet to complete the process.

Regards,
Sai Teja, 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:

http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Marc Selman

unread,
May 17, 2019, 4:46:08 AM5/17/19
to AdWords API and Google Ads API Forum
Hi Sai,

I am trying to retrieve a list of accessible customers of a Google account.

Listing accessible customers is one of the few requests in the Google Ads API that does not require you to specify a customer ID in the request, and will ignore any supplied login-customer-id.

Our customer has connected his Google account using the OAuth flow to give access to his Google Ads environment.
The ListAccessibleCustomers call should then return all the accessible Google Ads account with the customerId etc.

The fact that one of those accounts (8770719274) is not yet setup should not matter.
His Google account has a completely setup Google Ads account (8305248323) that should be returned with the ListAccessibleCustomers method.

We have multiple other Google accounts connected this way, some of which also have some unfinished Google Ads accounts with no such problems.


Op donderdag 16 mei 2019 20:38:10 UTC+2 schreef googleadsapi-forumadvisor:

Google Ads API Forum Advisor Prod

unread,
May 17, 2019, 1:40:35 PM5/17/19
to adwor...@googlegroups.com
Hello Marc,

I see that the user has access to 3 accounts, out of which 2 are still in draft. So the result might contain only 1 account for ListAccessibleCustomers API call. If you see any scenario where the draft account is also resulting, please share that user email address using reply privately to the author option to investigate further.

Regards,
Sai Teja, Google Ads API Team

ref:_00D1U1174p._5001UApuJe:ref

Marc Selman

unread,
May 20, 2019, 6:18:56 AM5/20/19
to AdWords API and Google Ads API Forum
Hi Sai,

The problem is that I am getting the error on the ListAccessibleCustomers API call. So I'm not getting any results, just the error.

Op vrijdag 17 mei 2019 19:40:35 UTC+2 schreef adsapiforumadvisor:

Google Ads API Forum Advisor Prod

unread,
May 20, 2019, 10:23:52 AM5/20/19
to adwor...@googlegroups.com
Hello Marc,

Since you have one account that is in activa state, you should get at least that account while making the ListAccessibleCustomers API call. I recommend you to create a new set of OAuth credentials with the user having access to the account: 830-524-8323 using an incognito window. If you are still facing the issue, please share the error log, Query snippet you are suing and the email address that is used to create oAuth credentials using reply privately to the author option.
Reply all
Reply to author
Forward
0 new messages