google ads USER_PERMISSION_DENIED 错误

66 views
Skip to first unread message

刘凯

unread,
Feb 27, 2023, 9:00:22 AM2/27/23
to Google Ads API and AdWords API Forum
Request ID ByTFVBgOuTkCfsyR9zNMXg failed due to GoogleAdsException. Underlying errors:
  Error 0: 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"
 我已经设置了 login-customer-id 并以授权  但是错误依然存在

Google Ads API Forum Advisor

unread,
Feb 27, 2023, 1:15:03 PM2/27/23
to kliu...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to Google Ads API Forum.

Upon checking your logs, I can see that you have encountered the USER_PERMISSION_DENIED error. This error usually indicates that the user / email address you used to generate your OAuth2 credentials does not have access to the customer ID you specified in your request. 

That being said, you will need to ensure that the user / email address you used to generate the credentials indeed has access 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 MCC / manager account's ID without hyphens (-) as the value of the login-customer-id field. 

Let me know how it goes on your end if this resolves your issue. In the event that the error persists after trying the suggested solution, then you may provide to us the complete request and response logs with the request-id once again together with the email address used to generate the OAuth credentials from your end so we can investigate further. You can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2jH8JD:ref

刘凯

unread,
Feb 28, 2023, 4:39:18 AM2/28/23
to Google Ads API and AdWords API Forum
是这个邮件吗  googl...@google.com

Google Ads API Forum Advisor

unread,
Feb 28, 2023, 10:38:52 AM2/28/23
to kliu...@gmail.com, adwor...@googlegroups.com

Hi,

I can see that you have opened support thread with us with the email subject “下载google ads 数据是权限异常问题”. For us to track your issue properly, and avoid duplicate thread confusion, you may continue on that thread instead. 

Regards,

Reply all
Reply to author
Forward
0 new messages