authorization_error: USER_PERMISSION_DENIED when trying to access Google Ads / Content data

29 views
Skip to first unread message

Andreas Chouliaras

unread,
Jun 10, 2025, 11:50:39 AMJun 10
to Google Ads API and AdWords API Forum
Hello,

I am using some Python code to retrieve data for specific customers which are authenticated via OAuth.

It works for some customers, but for other customer I am getting the following messages:

status = StatusCode.PERMISSION_DENIED
details = "The caller does not have permission"
message: "User doesn\\'t have permission to access customer. Note: If you\\'re accessing a client customer, the manager\\'s customer id must be set in the \\'login-customer-id\\' header.


What do these errors mean? What should we do to fix these issues?

Google Ads API Forum Advisor

unread,
Jun 10, 2025, 3:32:53 PMJun 10
to adh...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for contacting the Google Ads API support team. 

Upon reviewing your concern, I understand that you are encountering a USER_PERMISSION_DENIED authorization error. This error indicates the user doesn't have permission to access the customer. In order to resolve this error, you need to ensure the following points:

  • The email Id that you're using to generate OAuth credentials is added to your Google Ads account with 'Admin' or 'Standard' access to perform mutate operations. You can refer to the access level Help Center article for more information on access levels. 
  • If you're accessing the customer account, you need to specify the ‘login-customer-id’ as the manager account ID without hyphens (-). Client libraries have built in support for this. You can refer to the API documentation for more information. 

Following the above provided points should resolve the USER_PERMISSION_DENIED error. If you are still facing any issues, then in order to investigate the issue further, kindly provide the following details to us:

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java, .Net, PHP, Python, Ruby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.

Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-06-10 19:32:06Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01repU2:ref" (ADR-00313591)



Max Ruso

unread,
Jun 10, 2025, 7:13:43 PMJun 10
to ads...@forumsupport.google, adh...@gmail.com, adwor...@googlegroups.com
what to do when government is denying documents and i dont have any?

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 the Google Groups "Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/adwords-api/jRfCV000000000000000000000000000000000000000000000SXNNLI00bw1Ya8uRQv-7ir2Rk3s9Rw%40sfdc.net.
Reply all
Reply to author
Forward
0 new messages