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:

AuthorizationError.ACTION_NOT_PERMITTED - 
https://developers.google.com/google-ads/api/reference/rpc/v14/AuthorizationErrorEnum.AuthorizationError#action_not_permitted
access level - 
https://support.google.com/google-ads/answer/9978556?visit_id=638170509207191848-327631911&rd=1
How to edit access level - 
https://support.google.com/google-ads/answer/6372672?hl=en&ref_topic=3121776
Google Ads Query Language - 
https://developers.google.com/google-ads/api/docs/query/overview
CustomerUserAccess - 
https://developers.google.com/google-ads/api/reference/rpc/v14/CustomerUserAccess
newest version - https://developers.google.com/google-ads/api/docs/upgrade?hl=en

This message is in relation to case "ref:_00D1U1174p._5004Q2nthd0:ref"

Thanks,

Google Ads API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/Petd2000000000000000000000000000000000000000000000RZSNRS00_yK395OCSqihCXIjU8SlDw%40sfdc.net.
  • Go... Peos John
    • ... Peos John
      • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to