The caller does not have permission Google Ads Api Error

5,134 views
Skip to first unread message

Shweta Suthar

unread,
Oct 31, 2022, 6:34:02 AM10/31/22
to Google Ads API and AdWords API Forum
Hi Team,

we're getting below error when trying to access one of three mcc account for Google Ads api.

{ "message": "The caller does not have permission", "code": 7, "status": "PERMISSION_DENIED", "details": [ { "@type": "google.ads.googleads.v11.errors.googleadsfailure-bin", "data": "" }, { "@type": "grpc-status-details-bin", "data": "" }, { "@type": "request-id", "data": "LwsNpDJsFSQmUkQ0HaZxNA" } ] }

we've followed same process for all of 3 accounts. succeed for 2 of them. But getting above error for 1 mcc account.

Could you please help us to getting out for the same?

Thanks,
Shweta Suthar
Comfort Click Pvt. Ltd.

Google Ads API Forum Advisor

unread,
Oct 31, 2022, 8:52:26 AM10/31/22
to shweta...@comfortclick.co.uk, adwor...@googlegroups.com
Hi Shweta,

Thank you for reaching out to the Google Ads API support team.

Moving forward to your concern, it seems that you've encountered the USER_PERMISSION_DENIED  error. The authorized customer does not have access to the operating customer. The common cause of this is when authenticating as a user with access to a manager account but not specifying login-customer-id in the request.

To prevent this kind of error, I would suggest specifying the login-customer-id as the manager account ID without hyphens (-). 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 issue still persists, could you please provide the complete request and response logs, with the request-id? 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 Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Let me know if you have any questions.

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


ref:_00D1U1174p._5004Q2fpyZh:ref
Reply all
Reply to author
Forward
Message has been deleted
0 new messages