failed with status "PERMISSION_DENIED", login-customer-id header

51 views
Skip to first unread message

薛磊

unread,
Jul 29, 2021, 11:37:48 PM7/29/21
to AdWords API and Google Ads API Forum
Hello,

I tried to access the google ads api and configured google-ads.yaml, but an error was reported when using the client request.

error info:

failed with status "PERMISSION_DENIED" and includes the following errors:
Error with 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".

Please help me thanks

Google Ads API Forum Advisor

unread,
Jul 30, 2021, 3:57:34 AM7/30/21
to dlia...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for posting your concern.

The USER_PERMISSION_DENIED error occurs when authenticating as a user with access to a manager account but not specifying login-customer-id in the request. With this, you need 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.

Let me know if you have further questions.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2JFGAx:ref
Reply all
Reply to author
Forward
0 new messages