Hi Peos,
Thank you for returning to our team.
The
AuthorizationError.ACTION_NOT_PERMITTED error occurs when the user does not have permission to perform this action (e.g., ADD, UPDATE, REMOVE) on the resource or call a method. You encountered said error because you are using the credentials with adequate access level. That said, please make sure that the user email that is used for the authentication indeed has a correct
access level to the account specified in your request. You may refer to the steps shown under the "
How to edit access level" section of this guide to edit the access level.
As an administrator, you can get the list of users with access to an account by building a
Google Ads Query Language statement to query all the
CustomerUserAccess entities associated with a customer ID. Here is a typical query:
SELECT
customer_user_access.user_id,
customer_user_access.email_address,
customer_user_access.access_role,
customer_user_access.access_creation_date_time,
customer_user_access.inviter_user_email_address
FROM customer_user_access
Lastly, I noticed that you are using the v12 of the Google Ads API which was already deprecated. To avoid issues on your end, I would highly suggest upgrading to the
newest version.
Links included in this email: