Errors using .NET sample application

168 views
Skip to first unread message

Big Daddy Leon

unread,
Feb 23, 2016, 9:11:32 AM2/23/16
to AdWords API Forum

I'm using a test account while waiting for production developer token application to get approved.
I have the config file set up as directed, with my new OAuth info entered here (scrubbed):
    <add key="OAuth2ClientId" value="xxxxxxxxxxxx.apps.googleusercontent.com" />
    <add key="OAuth2ClientSecret" value="xxxxxxxxxxx" />

I am using the test manager account as "ClientCustomerId" in the config file
     <add key="ClientCustomerId"  value="xxxxxxxxxxx" />

When I click "Authorize User" I'm able to allow the test manager account "Manage your AdWords campaigns".
I then put in the test client account I created and click "Get Campaigns". I get this error and am not sure what to try next.

Failed to get campaigns. Exception says "AdWordsApiException: One or more AdWords API errors have occurred. User doesn't have permission to access customer.. (Error: AuthorizationError.USER_PERMISSION_DENIED, FieldPath: , Trigger: ) "

Any assistance would be appreciated. Thanks

Anthony Madrigal

unread,
Feb 23, 2016, 5:05:15 PM2/23/16
to AdWords API Forum
Hi,

The USER_PERMISSION_DENIED error occurs when there is no link between the client and manager account. Please use the ManagedCustomerService to see if you are connected correctly. 

Also, please make sure the refresh token you generated was from the test manager account level.

Regards,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages