the manager's customer id must be set in the 'login-customer-id'

1,127 views
Skip to first unread message

united seoclients13

unread,
Jan 27, 2022, 5:21:01 AM1/27/22
to Google Ads API and AdWords API Forum
I am using google ads API and everthing is perfect but when I hit the API with customer id of user I want to get  the data it gives me this error how ever my account has admin access and was created by my social media head I am developer . 


"errorCode": { "authorizationError": "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.

Kindly guide me on how can I resolve this issue. 

Google Ads API Forum Advisor

unread,
Jan 27, 2022, 12:43:00 PM1/27/22
to unitedseo...@gmail.com, adwor...@googlegroups.com

Hello there,

Thanks for reaching out to the Google Ads API support. I understand that you’ve encountered the error ‘USER_PERMISSION_DENIED’, it usually has the following root causes:

  • The link between the manager and client account was removed.
  • Your OAuth credentials are for a user who does not have access to the client customer ID specified or any of its manager accounts.
You may double check if your credentials are correct for the said user. With that, I would recommend that you regenerate the refreshToken and the OAuth2 credential using an email address which currently has access to your Google Ads account. And for setting the login-customer-id header details you can find here.

If the issue persists, could you please provide us with the complete logs (request and response with request-id) via the Reply privately to the author option.

Best regards,
Google Logo
Jakeia Sabrina
Google Ads API Team
 

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