Hi PPC Developer, When you generated your OAuth credentials, did you set the *access_type* to *online*? If so, then you only received an *access_token*, and an *access_token* will expire in roughly one hour.
Could you try generating your OAuth credentials, but this time request an *access_type* of offline? This will give you a *refresh token* which you can store in your web.config file, and the client library will automatically obtain new *access tokens* for you. With this setup you shouldn't get any interruptions. We also have a *guide <https://developers.google.com/identity/protocols/OAuth2WebServer#offline>* and a github wiki page <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fgoogleads%2Fgoogleads-dotnet-lib%2Fwiki%2FUsing-OAuthTokenGenerator&sa=D&sntz=1&usg=AFQjCNEj3qlhxGX3C229lT7vJAFZ92UrjQ> that might help you in setting this up. Cheers, Raghavendra, AdWords API Team. On Wednesday, May 6, 2015 at 4:15:27 PM UTC-4, PPC Developer wrote: > > Hi, > > I have this .NET application written in C#, using .NET client libraries. > The documentation says that the client libraries should handle refreshing > the token. However, my app gets this exception > AdWordsCredentialsExpiredException after running a few hours. > > How do I handle this so my app never stops? This is a server component > that is expected to run indefinitely, in a loop, downloads reports and does > some processing. > > Thanks a lot, > D. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/76c4bd63-1086-4b89-a8ce-70b28bee0924%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.