RE: error: USER_PERMISSION_DENIED

57 views
Skip to first unread message
Message has been deleted

Google Ads API Forum Advisor

unread,
Jul 26, 2021, 11:54:19 PM7/26/21
to mido...@gmail.com, adwor...@googlegroups.com
Hi Nicole,

Thank you for reaching out to our API support team.

I also had to delete your initial post as it contained the details of your logs. When sending logs, you may do so via the Reply privately to author option. If the said option is not available, you may send those to our team directly via our googleadsa...@google.com alias.

That said, I am posting some of the details of your initial concern below, as reference :

"Hello,

I get a USER_PERMISSION_DENIED exception and this 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"

But I already put the login-customer-id in header, please help me out

Thanks"


Moving forward, the USER_PERMISSION_DENIED error usually indicates that you may not be authenticating as a user that has access to the account specified in your API request.

To resolve this, you will need to ensure that your OAuth2 credentials was generated while logged in as the user / email address that has access to the customer ID in your request. Also, if the said user / email address is one that has access to the MCC / manager of the customer account, then you may specify the MCC / manager account's ID as the login-customer-id.

Should the issue persist, you may provide the user / email address you used to generate the credentials, and the updated logs - similar to the ones you sent initially, so that our team may investigate further. You may send the requested details privately or to our alias.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


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