Can't get data from CustomerService v201809 [AuthorizationError.USER_PERMISSION_DENIED]

80 views
Skip to first unread message

jianan wang

unread,
Nov 13, 2019, 3:24:02 AM11/13/19
to AdWords API and Google Ads API Forum
Hello,

This is my credentials:
1. Developer token - Production token from my MCC
2. Client customer Id - The AdWords account ID under MCC account
3. Client id - My id from google api console
4. Client secret - My secret from google api console
5. Refresh token - token which I get under Production MCC account

With OAuth2 credentials I can get data from my account, but to get other accounts data will response AuthorizationError.USER_PERMISSION_DENIED.
In addition, other accounts are not associated with our MCC account. What can be possible reason for this error?

Regards,
Jianan Wang

Google Ads API Forum Advisor Prod

unread,
Nov 13, 2019, 11:19:03 AM11/13/19
to wangjia...@gmail.com, adwor...@googlegroups.com
Hi Wang, 

The USER_PERMISSION_DENIED error means that the user who authorized your API call does not have access to the target AdWords account. If you are using the credentials of an MCC account to make the calls against the client account, you have to make sure that the accounts are still linked. If you are using the credentials of the user on the target account, you will have to make sure that the person who authorized the call (who accepted the prompt manually to generate the authorization code while setting up OAuth) has access to the specific account. If you are doubtful about this, please follow the steps to setup the OAuth once again and accept the prompt while logged in as the user who has access to that specific target account. 

Please give this a try and let me know if you see any issues.

Thanks,
Bharani, Google Ads API Team
 

ref:_00D1U1174p._5001UJaV4t:ref

jianan wang

unread,
Nov 13, 2019, 9:06:28 PM11/13/19
to AdWords API and Google Ads API Forum
Hi adsapiforumadvisor,

I've tried some time ago that the user does not has access to the specific account, but through the authorization process and generate the code, I can also get his information from the api. Has the new version of the api adjusted the permissions to get user's info?

Thanks,
Jianan Wang


在 2019年11月14日星期四 UTC+8上午12:19:03,adsapiforumadvisor写道:

Google Ads API Forum Advisor Prod

unread,
Nov 14, 2019, 9:16:47 AM11/14/19
to wangjia...@gmail.com, adwor...@googlegroups.com
Hi Wang, 

There were no recent changes made to the authorization process in AdWords API. The user authorizing the API call must be a valid user on Google Ads account. Please refer to step#2 for more information for the OAuth configuration setup in Java. You may find the steps to configure other client libraries here. Let me know if you have any further questions. 

jianan wang

unread,
Nov 15, 2019, 1:14:50 AM11/15/19
to AdWords API and Google Ads API Forum

Hello,

So, how can I get user's client custom id through OAuth process even if he's not link to my MCC account or any other who has no access to the account?


Thanks,
JIanan Wang


在 2019年11月14日星期四 UTC+8下午10:16:47,adsapiforumadvisor写道:

Google Ads API Forum Advisor Prod

unread,
Nov 15, 2019, 2:05:03 PM11/15/19
to wangjia...@gmail.com, adwor...@googlegroups.com
Hi Wang, 

Through the API, it is not possible to get the client customer Id of the accounts that are not linked to the MCC. The user with access to the account may log in to the account to retrieve this information. The same user can authorize the API to make the calls. Let me know if you have any other questions. 
Reply all
Reply to author
Forward
0 new messages