Getting USER_PERMISSION_DENIED in google ads api when trying to fetch client info, which allowed access in authentication of the app

28 views
Skip to first unread message

Support Support

unread,
Feb 23, 2022, 3:30:14 AM2/23/22
to Google Ads API and AdWords API Forum
Hi,

I am working on a tool which will help my clients to manage their ad accounts with convenient user interface. I have created a project in google cloud console and used the clientID and scope to authenticate clients and prompt for the permission to access their ad accounts. But when I try to get customer info using developer-token and login-customer-id of my mcc account, it shows USER_PERMISSION_DENIED error. 
How can I access account info of my clients by authenticating them.

Google Ads API Forum Advisor

unread,
Feb 23, 2022, 10:50:23 AM2/23/22
to sup...@gkmit.co, adwor...@googlegroups.com
Hi,

It sounds like each client has their own authentication with you GCP project. They can log in directly to their accounts without your login customer Id because they are probably authenticating with a Google Account that is already a user in their Ads accounts. You probably are a user in your mcc account, if that is the case you can log in with login customer Id set to your mcc account and access your client's account. Some setups don't even need an mcc account altogether. For more information you can look at our login customer Id guide.

Regards,

Google Logo
Aryeh
Google Ads API Team
 


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