I keep getting USER_PERMISSION_DENIED... Which login_customer_id should I take?

55 views
Skip to first unread message

Wbdseo GamingReal

unread,
Mar 22, 2022, 12:58:37 PM3/22/22
to Google Ads API and AdWords API Forum
Hello! 
I am new to the Google Ads API and to Google Ads in general. I try to make it work on Python and I keep getting USER_PERMISSION_DENIED error. I created both a test account and a non-test account. The first one was indicated to be necessary to connect to API, whereas the second one gives me client_id and client_secret (and refresh_token thus).

I tried to put either test account login_customer_id or non-test account login_customer_id in the .yaml file but both give me the same USER_PERMISSION_DENIED error. I may not be understanding quite well the structure I need to have in my account (for example, on the Web, I found information about MCC account but I don't know what that is or how to create one and if it is really useful)? It's been now 5 days I have been working on this and I still cannot find a solution!

Capture.PNG

Thanks in advance !

Google Ads API Forum Advisor

unread,
Mar 22, 2022, 10:09:24 PM3/22/22
to wbdseoga...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to us.

As per this guide , if your access to the customer account is through a manager account, this header is required and must be set to the customer ID of the manager account.

To elaborate, if your OAuth2 credentials were generated using a user / email address associated to your manager account, you will need to specify that manager account's ID as the login-customer-id. Let me know how this goes on your end.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


ref:_00D1U1174p._5004Q2YqNJz:ref

Wbdseo GamingReal

unread,
Mar 23, 2022, 4:57:13 AM3/23/22
to Google Ads API and AdWords API Forum
Hello Heidi,

Thanks for your quick answer!

I still struggle to understand what you mean in the first sentence:
- What does "your access to the customer account is through a manager account" mean please? I think I do not have any customer account but only manager account. Could the issue come from that?
- What does "this header" stand for?

Thanks again,

Yours!

Google Ads API Forum Advisor

unread,
Mar 23, 2022, 12:10:43 PM3/23/22
to wbdseoga...@gmail.com, adwor...@googlegroups.com
Hi Wbdseo,

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

With regards to your concern, you can create customer account under manager account. You may refer to this guide to create sub-account. If you do not have customer account you will get an error while making API call. Here "this header" means it is part of  API request call structure. Let me know if you have have any question. 

Thanks,
Google Logo
Nirmita
Google Ads API Team
 


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