dotnet authentication without config file

35 views
Skip to first unread message

Wolfgang Riedmann

unread,
Feb 25, 2016, 2:03:26 PM2/25/16
to AdWords API Forum
Hello,

I would like to set the authentication info not from a .config file, but from code.

Unfortunately, the URL mentioned in the sample is not valid anymore:

https://code.google.com/p/google-api-adwords-dotnet/wiki/HowToUseAdWordsUser

Where can I find the needed parameters or more info how to setup the AdWordsAppConfig object for the AdwordsUser object?

Thank you for any help!

Wolfgang

P.S. I'm trying with the newest API version, 201601

Thanet Knack Praneenararat (AdWords API Team)

unread,
Feb 25, 2016, 9:25:11 PM2/25/16
to AdWords API Forum
Hello Wolfgang,

We're currently maintaining our client libs at Github and you can ignore what's in the code.google.com repo.
The dotnet library is maintained here.

The config file for the app is stored in the App.config file.
You can find the instructions of using this client lib there.

Cheers,
Thanet, AdWords API Team

Zweitze

unread,
Mar 1, 2016, 6:49:54 AM3/1/16
to AdWords API Forum
The AdWordsUser class has a constructor where you pass a dictionary - the contents of that dictionary override the settings in the config file.
In my software with installed authentication, I use it to work with multiple refreshtokens - that works great. I think this technique was also used in one of the samples.

You don't need to construct the AdWordsAppConfig object dynamically.

Wolfgang Riedmann

unread,
Mar 2, 2016, 12:13:01 PM3/2/16
to AdWords API Forum
Thank you, Thanet!

Wolfgang

(I'm working on this project only a day per week).

Wolfgang Riedmann

unread,
Mar 2, 2016, 12:13:55 PM3/2/16
to AdWords API Forum
Hi Zweitze,

I will search for the sample, thank you!

Wolfgang
Reply all
Reply to author
Forward
0 new messages