The /customers:listAccessibleCustomers response is missing an account.

1,443 views
Skip to first unread message

Noémi Molnár

unread,
Jul 13, 2021, 9:34:14 AM7/13/21
to AdWords API and Google Ads API Forum
The adwords API (version: v201809) API's Customer service (namespace: mcm) returns two customers: 
4687386508 and 8183462864

The ads API's (v7)  /customers:listAccessibleCustomers endpoint also returns two resourceNames 'customers/4687386508', 'customers/1102285442'.

According to the documentation ( https://developers.google.com/google-ads/api/rest/design/resource-names) the customer ids of the accounts are: 
4687386508, 1102285442.

As you can see the first id matches in the two responses, but the second id is different in the two responses. 

When we try to use the `1102285442` customer id in the `/customers/{customerId}/googleAds:searchStream` request we get the following error as the response: 

StatusCodeError: 403 - [{"error":{"code":403,"message":"The caller does not have permission","status":"PERMISSION_DENIED","details":[{"@type":"type.googleapis.com/google.ads.googleads.v7.errors.GoogleAdsFailure","errors":[{"errorCode":{"authorizationError":"CUSTOMER_NOT_ENABLED"},"message":"The customer can't be used because it isn't enabled."}]}]}}]
 
The same request works as it is expected with the  id: `4687386508`.
I also tried the same request with the id: `8183462864`
Response of the API was `"errorCode\\\":{"authorizationError":"ACCESS_DENIED_FOR_ACCOUNT_TYPE"},"message":"The customer (or login customer) isn't in Google Ads. It belongs to another ads system.`

All of the request were made for the same authenticated user with the same credentials.

Could you please help me with requesting the customer id and details. 

Google Ads API Forum Advisor

unread,
Jul 14, 2021, 5:54:15 AM7/14/21
to no...@swydo.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to us. Could you please provide us with the following details for the failing requests on ‘1102285442 and ‘8183462864’ account ID ?

  • For AdWords API, provide the complete SOAP request and response logs generated on your end 
  • For Google Ads API, you can provide the complete request and response logs with request ID generated on your end


Please send the requested details via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.
 

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Kbqd2:ref

Noémi Molnár

unread,
Jul 26, 2021, 3:52:59 AM7/26/21
to AdWords API and Google Ads API Forum
Hi Yasar,

Have you received my message with the requested details ? Do you have any update on this ? 

Kind regards,
Noemi

Google Ads API Forum Advisor

unread,
Jul 26, 2021, 6:24:40 AM7/26/21
to no...@swydo.com, adwor...@googlegroups.com

Hi Noemi,

I would like to know if you haven’t received the response sent privately from our colleague. 

However, my colleague(Aryeh Baker) already reached out to you with the following response:

“I work with Yasar and will assist you. Thank you for sending us the logs in private. The Ads API seems to be working as intended, 1102285442 is not fully set up so you will see it when asking for accounts but you won't be able to access details. Adwords doesn't show it at all and that may also be working as intended, it's not a set up account.

Regarding 8183462864, it's not in the Ads system, I checked just now. The Ads API rightfully doesn't report this. Are you seeking assistance with the AdWords API, or the Ads API or both? Could you tell us what you are trying to accomplish?.”

Kindly revert back to us response sent above.

Regards,

Noémi Molnár

unread,
Jul 26, 2021, 6:45:34 AM7/26/21
to AdWords API and Google Ads API Forum
Hi Yasar, 

Thank you for your quick response, I have not received his message unfortunately.
I would like to receive the account details for the account with the id: '8183462864' from the new API.
I will ask for more details about the account with the id '8183462864' and get back to you with them.

King regards,
Noemi

Noémi Molnár

unread,
Jul 26, 2021, 9:55:37 AM7/26/21
to AdWords API and Google Ads API Forum
Hi Yasar,

I did not find anything out of ordinary about the account (8183462864). It is concerning thought that this account(8183462864) is returned through the Adwords API and works when using it to fetch reporting statistics through the old API, but it is in not known by the 'Ads system'. 
Please help me to find out why the AdWords API knows, returns and handles the account (8183462864), but not the Ads API. 

We want to migrate from the AdWords API to the Ads API, but we needed to put it on hold till we figure out why an account is missing from the Ads API's response and if this can occur for our users. 

We are less concerned about the draft account being returned, but it does not seem to be by design based on this response: https://groups.google.com/g/adwords-api/c/lAQHvUgZavk/m/vAfF4tXpAQAJ. If it is by design, is there a way to filter out the accounts from this response that will not work with the API request?

Kind regards,
Noemi

Google Ads API Forum Advisor

unread,
Jul 27, 2021, 3:40:08 PM7/27/21
to no...@swydo.com, adwor...@googlegroups.com
Hi Noémi,

I raised your concerns to my team and we will get back to you as soon as possible.

Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 
 

ref:_00D1U1174p._5004Q2Kbqd2:ref

Google Ads API Forum Advisor

unread,
Jul 27, 2021, 6:29:18 PM7/27/21
to no...@swydo.com, adwor...@googlegroups.com
Hello Noemi,

You have a couple of things happening at the same time, so I'll go step by step through them on each API. Hopefully, that will help other folks here on the forum in case they bump into this. In case anyone on the forum is curious, CustomerService.getCustomers() in the AdWords API and CustomerService.ListAccessibleCustomers() in the Google Ads API will return any accounts that your refresh token has access to at the top level of your account hierarchy. 

So, here's what's going on with your requests.

AdWords API
  • 4687386508: This is working as expected because it is a Google Ads account that has been fully set up. 
  • 8183462864: This is not showing up in the Google Ads API because this appears to be an SA360 account. In order to interact with this kind of account, you would use the Search Ads 360 API (https://developers.google.com/search-ads). The reason the Google Ads API does not return this type of account is because it's not strictly a Google Ads account, and it has additional functionality that can only be accessed through Search Ads 360. The error was just telling you that you can't use this account with Google Ads API because it's a different type of account.
Google Ads API
  • 4687386508: This is working as expected because it is a Google Ads account that has been fully set up.
  • 1102285442: This account is in a draft state where the account is a Google Ads account. This means that the billing has not been set up, yet. When the Google Ads API was being built, it was a feature request that we should also return accounts in a draft state so that the API developer would know if there were accounts they had access to with their refresh token that were not fully set up, yet. So, this is working as expected. The Google Ads API now provides more advanced billing features, so it's sometimes feasible (if it's monthly invoicing) to set up a newly created account through the API. Also, a developer can be made aware so they can also go to the UI to finish setting up account.
If you have any further questions on this, feel free to respond to this thread.

Cheers,
Nadine Wang, Google Ads API Team

ref:_00D1U1174p._5004Q2Kbqd2:ref
Message has been deleted

Noémi Molnár

unread,
Jul 28, 2021, 3:46:55 AM7/28/21
to AdWords API and Google Ads API Forum
Hello Nadine, 

Thank you for you detailed answer! 
We have one more question regarding the AdWords API:  Do the Adwords API fully support the SA360 accounts ? 

Kind regards,
Noemi Molnar

Google Ads API Forum Advisor

unread,
Jul 28, 2021, 8:17:34 AM7/28/21
to no...@swydo.com, adwor...@googlegroups.com
Hello Noémi,

No, the AdWords API does not fully support interacting with SA360 accounts. It's expected that developers use the SA360 API (https://developers.google.com/search-ads). We made the change in Google Ads API not to return those accounts because it can be confusing when the API does not support working with that kind of account.

Cheers,
Nadine, Google Ads API Team

ref:_00D1U1174p._5004Q2Kbqd2:ref
Reply all
Reply to author
Forward
0 new messages