Hi Muniyasamy, 

The USER_PERMISSION_DENIED 
<https://developers.google.com/adwords/api/docs/common-errors#AuthorizationError.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 
<https://developers.google.com/adwords/api/docs/guides/first-api-call#set_up_oauth2_authentication>
 once 
again and accept the prompt while logged in as the user who has access to 
the account. 

If you believe that the credentials you are using has access to the target 
account, you could perform a CustomerService.getCustomers() 
<https://developers.google.com/adwords/api/docs/reference/v201802/CustomerService#getcustomers>
 and 
check for the results. If they are using the credentials of a manager 
account, it will list the MCC accounts and any other account that user has 
direct access to. If the target account is not listed in the results, that 
would mean that the credentials cannot access that specific account. Please 
give this a try and let me know if you are still facing issues. 

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3d6ab251-9ca0-4843-817d-3c61e8e0ece7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... MuniyasamyK
    • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
    • ... Lithia Auto Stores

Reply via email to