USER_PERMISSION_DENIED error

29 views
Skip to first unread message

Anton Khorev

unread,
Jul 8, 2022, 8:22:23 AM7/8/22
to Google Ads API and AdWords API Forum
Hi,
I'm using python lib for google api. 
My MCC has been linked to 2 accounts and everything was working properly.

But now I'm trying to access the 3rd account and get an error:
"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""

I've checked my account heirarchy here and I found out that this account is in heirarchy as the other ones. But if I try almost the same using customer_service.list_accessible_customers(), this account is not on the list. 

What could solve this problem?

Google Ads API Forum Advisor

unread,
Jul 8, 2022, 10:36:01 AM7/8/22
to adwor...@googlegroups.com
Hi Anton,

Thank you for raising this concern to the Google Ads Forum.

To investigate this error, could please provide the complete request and response logs with request ID and request header generated on your end along with the email address used to generate the OAuth2 credentials? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link. 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.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


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