AuthorizationError.USER_PERMISSION_DENIED

57 views
Skip to first unread message

kdoshi...@gmail.com

unread,
Dec 14, 2018, 4:44:04 PM12/14/18
to AdWords API and Google Ads API Forum

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

Luis Xander Talag (AdWords API Team)

unread,
Dec 16, 2018, 9:51:37 PM12/16/18
to AdWords API and Google Ads API Forum
Hi,

The 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 to determine which client accounts are linked to your manager account. You may check this sample code 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
Reply all
Reply to author
Forward
0 new messages