Hi,

The AuthorizationError.USER_PERMISSION_DENIED 
<https://developers.google.com/adwords/api/docs/common-errors#AuthorizationError.USER_PERMISSION_DENIED>
 error 
you encountered means that there is no link between the manager account 
authenticated in the request with the client account specified in the 
headers or your OAuth2 credentials are for a user who does not have access 
to the client customer ID specified or any of its manager accounts. This 
being said, you should make sure that the OAuth2 credentials you are using 
were generated using an email address which has access to the account(s) 
you are making the API requests to. Also, you could use 
ManagedCustomerService 
<https://developers.google.com/adwords/api/docs/reference/v201806/ManagedCustomerService>
 to 
determine which client accounts are linked to your manager account. You may 
check this sample code 
<https://developers.google.com/adwords/api/docs/samples/php/account-management#get-the-account-hierarchy-under-the-current-account>
 for 
reference.

If the issue persist, could you provide which email address you use to 
generate your OAuth2 credentials? Also, could you provide which 
clientCustomerId you are making API calls when you encountered the error? 
Please reply via *Reply privately to author*.

Thanks and regards,
Luis
AdWords API Team

On Saturday, December 15, 2018 at 5:44:04 AM UTC+8, kdoshi.boost wrote:
>
>
> Message:AdWordsApiException: Exception of type 
> 'Google.Api.Ads.AdWords.Lib.AdWordsApiException' was thrown. 
>
> User doesn't have permission to access customer.. (Error: 
> AuthorizationError.USER_PERMISSION_DENIED, FieldPath: , Trigger: <null>)
>
>  StackTrace:
> Server stack trace: 
>    at 
> Google.Api.Ads.Common.Lib.SoapFaultInspector`1.AfterReceiveReply(Message& 
> reply, Object correlationState)
>    at 
> System.ServiceModel.Dispatcher.ImmutableClientRuntime.AfterReceiveReply(ProxyRpc&
>  rpc)
>    at 
> System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime 
> operation, ProxyRpc& rpc)
>    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean 
> oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, 
> TimeSpan timeout)
>    at 
> System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
>  methodCall, ProxyOperationRuntime operation)
>    at 
> System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
>  methodCall
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d58345c3-420d-4b27-beb6-75745386fa72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... fp . mmc . mail
    • ... fp . mmc . mail
    • ... kdoshi . boost
      • ... 'Luis Xander Talag (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to