To find out more info about the issue USER_PERMISSION_DENIED,
We made an API call to ShowAccountHierarchy() and got this error message 
for the same client customer account: "Customer ID 4822940284 is likely a 
test account, so its customer client  information cannot be retrieved."

On Thursday, March 23, 2023 at 2:08:04 AM UTC-5 Google Ads API Forum 
Advisor wrote:

> Hi,
>
> Thank you for reaching out to us.
>
> I had to delete your post since API logs posted on the forum. For the 
> reference, you may refer to below without sensitive information:
>
> “*Hi there,*
>
> *It used to work, but lately we are getting the error 
> USER_PERMISSION_DENIED*
>
> *User doesn't have permission to access customer.*
>
> *This is the API call Request/Response (I hope you can help us):*”
>
> I can see that you have encountered the "*USER_PERMISSION_DENIED* 
> <https://developers.google.com/google-ads/api/reference/rpc/v10/AuthorizationErrorEnum.AuthorizationError?hl=en#user_permission_denied>"
>  
> which means a user doesn't have permission to access a customer and you’re 
> accessing a client customer using 'login-customer-id’ in the request.
>
> To address the above error, you will need to ensure that the user / email 
> address you used to generate the credentials indeed has *access* 
> <https://support.google.com/google-ads/answer/9978556?visit_id=637628826037447236-382779227&rd=1>
>  
> to the account in your request. If the user / email address has access or 
> is associated with the MCC / manager account, you will need to specify the 
> said MCC / manager account ID as the value of the *login-customer-id* 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid>
>  
> field.
>
> If the issue still persists, you may  please provide the user account / 
> email address that you used to generate API access or refresh tokens. With 
> the help of this information, I can check if you set the correct customer 
> ID to login-customer-id.
>
> Best regards,
> [image: Google Logo] Google Ads API Team 
>
> ref:_00D1U1174p._5004Q2k27Mx:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/25d857c6-b038-4efb-ab6f-b016d1cfc83an%40googlegroups.com.
  • US... API2Go
    • ... API2Go
      • ... API2Go
        • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to