Google ads api permission denied ERROR

303 views
Skip to first unread message

Anil

unread,
May 28, 2022, 2:35:06 AM5/28/22
to Google Ads API and AdWords API Forum
Hello,

Our manager account has almost 40 active customers out which we are able to get data through API for 15 customers only. Rest all shows "Permission Denied" issue.

API error "The caller does not have permission" error.

Could you please help with this?


Google Ads API Forum Advisor

unread,
May 30, 2022, 2:11:01 AM5/30/22
to anilv.pr...@gmail.com, adwor...@googlegroups.com

Hi Anil,

Thank you for reaching out to our API support team.

Could you please elaborate on the The caller does not have permission to take a closer look at the issue, problems you've been having?

To assist you even further, could you please send us the complete request and response logs with request ID and request header generated on your end where we can see the error? You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Please let me know also if you have further concerns and our team will be happy to provide support


Best,

Google Logo
Anthony Cyril
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bEVzM:ref

Anil

unread,
May 31, 2022, 12:43:49 AM5/31/22
to Google Ads API and AdWords API Forum
 Hello,

What we noticed that the MCC account we used to create API token was not showing it as a user in Google Ads -> "Tools & Security" -> "Access and Security" section for some customers. These are the same customers those were missing in "list of customers" through API.

Then we added MCC account as a user to customer accounts through "Give others access to an account" section and then those missing customers started to show in "list of customers" through API.

But it doesn't allow us to do for more than 20 customers. 
Error "Your google account can only access up to 20 Google Ads accounts at a time" and so we are still not able to get list of all MCC customers yet through API.

Please suggest what can be done here.

Google Ads API Forum Advisor

unread,
May 31, 2022, 10:26:31 AM5/31/22
to anilv.pr...@gmail.com, adwor...@googlegroups.com

Hi Anil,

Thanks for getting back to us.

With regards to the concern of the Production Google Ads Manager account that holds the developer token and not showing it as a user in Google Ads -> "Tools & Security" -> "Access and Security" section for some customers, your concern is related to accounts, and I would recommend that you seek assistance with the Google Ads Product Support team, via this link.

If you’ve used the ListAccessibleCustomers method in CustomerService to list customers accessible to you, then note that the resulting list of customers is based on your OAuth credentials. The request returns a list of all accounts that you are able to act upon directly given your current credentials. This will not necessarily include all accounts within the account hierarchy; rather, it will only include accounts where your authenticated user has been added with admin or other rights in the account.

Since each top-level manager account can branch out to manage client accounts or other manager accounts. Those manager accounts can then branch out to manage more client accounts or other manager accounts, and so on. You can get the account hierarchy of your manager account, by building a Google Ads Query Language statement to query all the child accounts specified by the client_customer field from CustomerClient, and executing it recursively on the sub-manager accounts. You'll be able to check which accounts are directly linked to your manager account and which are indirectly linked through sub-managers. For more information, you may refer to this guide.

Regards,

Google Logo
Yasar
Google Ads API Team
 


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