Re: Using ClientLogin to get AuthToken

2011-03-28 Thread Anash P. Oommen
Hi Steven, AuthTokens generated from ClientLogin won't expire for about 2 weeks, unless the server decides to revoke it for some reason. So you should be fine if you regenerate tokens once a week or so. When AdWords API finds a token is invalid, it will throw a AuthenticationError.GOOGLE_ACCOU

Re: Using ClientLogin to get AuthToken

2011-03-24 Thread steven66062
Anash, Thanks. That was what I needed. I for some reason couldn't find how to do it in the sample code. In some of the documentation I have read an authorization it looks like the token has a time out. I am using the ReportDefinitionService. Do you know what the time limit is on this service?

Re: Using ClientLogin to get AuthToken

2011-03-23 Thread Anash P. Oommen
Hi Steven, You could do something like: string authToken = new AuthToken(new AdWordsAppConfig(), "adwords", email, password).GetToken(); You could then set this authToken in your app.config and AdWordsUser would pick it up from there. Hope this helps. Let me know if you have more questions.

Using ClientLogin to get AuthToken

2011-03-23 Thread steven66062
I am using the C# library to download a number of reports each day. I am getting a "The remote server returned an error: (403) Forbidden." error which from reading other posts is due to using too many authTokens in too short a period of time. I need an example of how to get an authToken to reuse