User Permission Denied Different Client Library

43 views
Skip to first unread message

Mark Hill

unread,
Aug 24, 2015, 8:29:32 AM8/24/15
to AdWords API Forum
I've created a small application with the php client library. Now i'm considering the possibility of using the .NET library but i'm running into an issue. Every time I attempt to perform any basic actions I get a "user permission denied trigger null" error. However, I can access a test account I setup fine, but the problems happen when I use the exact same OAUTH/Developer info that is being used by the currently running application. Any idea on what the problem might be?

Thank You,
Mark Hill

Umesh Dengale

unread,
Aug 25, 2015, 9:39:16 AM8/25/15
to AdWords API Forum
Hi Mark,

For your .NET API request, your OAuth credentials don't match the client ID specified in the request, or any of its MCCs. Please check you have set your OAuth2.0 credential properly. You could refer the OAuth2.0 guide for details.

Regards,
Umesh, AdWords API Team.

Mark Hill

unread,
Aug 28, 2015, 7:01:19 PM8/28/15
to AdWords API Forum
Hi Umesh,

The values that are defined in the php config file, and that are also in the .net config file are:

User Agent
Developer Token
Client Customer Id

OAuth2 Client Id
OAuth2 Client Secret 
OAuth2 Refresh Token


The only difference is that the .net config file specifies that the Oauth mode is "application." Do I need different OAuth2 credentials for each application? Or should everything be working correctly with all of the settings being copied over?

Umesh Dengale

unread,
Aug 31, 2015, 10:40:09 AM8/31/15
to AdWords API Forum
Hi Mark,

The OAuth2.0 client id and client secret key are specific to the application. You need to create new client id and client secret key for .NET library selecting Application Type as Web applicationPlease check out our OAuth2.0 guide of .NET library for details information.

Thanks,
Umesh, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages