*Hello Google Ads API Support,*

I am encountering a persistent issue while trying to access a client 
customer account via the Google Ads API. Below are the details of the error 
and the steps I’ve taken to resolve it, but the issue remains unresolved.

*Error Details:*
```
Error: (<_InactiveRpcError of RPC that terminated with:
  status = StatusCode.PERMISSION_DENIED
  details = "The caller does not have permission"
  debug_error_string = "UNKNOWN:Error received from peer 
ipv4:142.250.187.234:443
  {created_time:"2024-08-20T00:10:36.47873777+00:00", grpc_status:7,
  grpc_message:"The caller does not have permission"}"
>, <_InactiveRpcError of RPC that terminated with:
  status = StatusCode.PERMISSION_DENIED
  details = "The caller does not have permission"
  debug_error_string = "UNKNOWN:Error received from peer 
ipv4:142.250.187.234:443
  {created_time:"2024-08-20T00:10:36.47873777+00:00", grpc_status:7,
  grpc_message:"The caller does not have permission"}"
>, errors {
  error_code {
    authorization_error: USER_PERMISSION_DENIED
  }
  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. See
  
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid";
}
request_id: "kGR3SnwhTZWDx0f1SS54iA"
, 'kGR3SnwhTZWDx0f1SS54iA')
```

*Actions Taken:*
1. Set the `login-customer-id` header to the MCC (manager) account's 
customer ID when trying to access the client account.
2. Ensured that the user account associated with the API request has the 
necessary permissions to access both the manager and client accounts.
3. Verified the OAuth token has the correct scope (`
https://www.googleapis.com/auth/adwords`).
4. Double-checked the **client customer ID** I am using in the request.
5. Verified that the client account is properly linked to the MCC account 
in the Google Ads interface.

*Request Configuration:*
- *Manager (MCC) Customer ID:* `<insert MCC Customer ID>`
- *Client Customer ID:* `<insert Client Customer ID>`
- *OAuth Scope:* `https://www.googleapis.com/auth/adwords`
- *API Request Type:* `<insert the API endpoint or query used>`

Despite following all of the steps mentioned in the API documentation, I 
continue to receive the *PERMISSION_DENIED* error. I would greatly 
appreciate further assistance in troubleshooting this issue.

Could you please review the error or provide any additional guidance on 
what might be going wrong? Is there any specific permission setting or API 
configuration I am missing?

Thank you for your help!

Best regards

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/40241a14-44c2-4ccb-8f3c-f72ff6b22546n%40googlegroups.com.
  • PE... Developer Walkwel
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum
      • ... Developer Walkwel

Reply via email to