Problem with google api

39 views
Skip to first unread message

杨乔杉

unread,
Feb 7, 2023, 10:50:36 PM2/7/23
to Google Ads API and AdWords API Forum
How to fix the error code:  FaultMessage: 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

Google Ads API Forum Advisor

unread,
Feb 8, 2023, 5:26:45 AM2/8/23
to yangqi...@qiyi.com, adwor...@googlegroups.com
Hi,

Thank you for raising this concern to the Google Ads API support team. I hope you are doing well today.

With regards to your concern, It seems that you are encountering the "USER_PERMISSION_DENIED" which means a user doesn't have permission to access a customer and you’re accessing a client customer using 'login-customer-id’ in the request as mentioned in the provided link. 

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.

If the error still persists, you may provide us with the complete request and response logs, with the request-id along with the email address used to generate the OAuth2 credentials to better check this in our end.

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 googleadsapi-support@google.com.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


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