Hello,
Welcome to Google Ads API support team. Thank you for reaching out to us.
With regards to your concern, I can see that you’ve encountered the authorization_error: USER_PERMISSION_DENIED. It means the authorized customer does not have access to the operating customer. The common cause of this error is when authenticating as a user with access to a manager account but not specifying login-customer-id in the request. To prevent this kind of error, you need to make sure to specify the login-customer-id as the manager account ID without hyphens (-). Client libraries have built in support for this, or see our guide, in which you mentioned you already did. Having said that, it's possible that the user associated with the OAuth credentials (client ID and secret) does not have access to the manager account. With this, would you be able to provide us with the email used to create those credentials so we can check their permissions.
Regards,
![]() |
Google Ads API Team |
Hi,
Thank you for the reply.
I could confirm that the provided email address lia****@gmail.com doesn't have access to the specified account (215-427-2009) in your request and this is the reason why you are experiencing this error on your end. You can also check the access levels on your account’s TOOLS AND SETTINGS > Access and Security > Users.
On the other hand, you may check this documentation for managing user access. You can also review who has access to your account, edit their access levels, and remove user accounts to learn more about account access levels and learn how to grant or revoke access to your Google Ads account.
Additionally, you may check and refer to this java sample code for updating user access.
Best regards,
Hi,
Thanks for getting back to us.
As we have mentioned previously in our email, the provided email address lia****@gmail.com doesn't have access to the specified account (215-427-2009). The error USER_PERMISSION_DENIED means the user doesn't have permission to access the customer. That said, can you try adding this email address as a user in the account? You can access this through navigating TOOLS AND SETTINGS > Access and Security > Users in the said account.
Let me know how it goes. If the error persists after trying the suggested solution, you may share to us the complete request and response logs with the request-id so we can check further. For the Java client library, logging can be enabled by following this guide. Kindly note that it would help us investigate the cause of your error if we have these logs.
Regards,
Hi,
Thank you for getting back to us. I hope you are doing well today.
Moving forward to your concern, you may refer to this document. This document contains information on invite users through Google Ads API. As per document said, you can send an email invitation to a new user as part of managing access to a Google Ads account. This is done by creating a new CustomerUserAccessInvitation using the MutateCustomerUserAccessInvitationmethod of the CustomerUserAccessInvitationService. Please note that the email invitation needs to be manually accepted by the user who received the invitation. The invitation can also be accepted by the user using an alternate email address.
I hope this helps.
Let us know if you have further questions.