Re: How do I reset the AuthTokenCache using .Net SDK?
Hi Ken, You could try AuthToken.Cache.Clear(); Or you could set in your app.config, and the library would detect GOOGLE_ACCOUNT_COOKIE_INVALID and refresh the token automatically. Cheers, Anash P. Oommen, AdWords API Advisor. On Wednesday, 22 August 2012 19:47:46 UTC+5:30, Ken Foster wrote: > > I have a windows service that runs once a day and downloads a variety of > reports. I received this error today, GOOGLE_ACCOUNT_COOKIE_INVALID . > Research indicates that my Authorization Token may have expired (a 2 week > expiration, which would fit time wise with how long my service has been > running). My question is, how do I reset the Authorization Token? I'm > looking at the SDK source code and don't see any way to do that. The only > thing that looks feasible is to do: > > AuthToken.Cache = new DefaultAuthTokenCache(); > > but I'm not convinced that would work or is the best way. This service > needs to run on it's own, unsupervised, for a long time, months or years if > the API is stable enough. I need a reliable way to maintain a valid > Authorization Token. > > Anyone run into this and have a solution? > Thanks, > Ken > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
Re: How do I reset the AuthTokenCache using .Net SDK?
BTW, I meant to ask, is this the correct forum for this question? Is there an AdWords .Net SDK forum? I've searched for similar problems and other than being asked to switch to OAuth, I haven't seen any answers. I understand that is what I should do long term, but I would need to research that, I haven't used it before and I need a quick solution for right now. Thanks, Ken On Wednesday, August 22, 2012 10:17:46 AM UTC-4, Ken Foster wrote: > > I have a windows service that runs once a day and downloads a variety of > reports. I received this error today, GOOGLE_ACCOUNT_COOKIE_INVALID . > Research indicates that my Authorization Token may have expired (a 2 week > expiration, which would fit time wise with how long my service has been > running). My question is, how do I reset the Authorization Token? I'm > looking at the SDK source code and don't see any way to do that. The only > thing that looks feasible is to do: > > AuthToken.Cache = new DefaultAuthTokenCache(); > > but I'm not convinced that would work or is the best way. This service > needs to run on it's own, unsupervised, for a long time, months or years if > the API is stable enough. I need a reliable way to maintain a valid > Authorization Token. > > Anyone run into this and have a solution? > Thanks, > Ken > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
How do I reset the AuthTokenCache using .Net SDK?
I have a windows service that runs once a day and downloads a variety of reports. I received this error today, GOOGLE_ACCOUNT_COOKIE_INVALID . Research indicates that my Authorization Token may have expired (a 2 week expiration, which would fit time wise with how long my service has been running). My question is, how do I reset the Authorization Token? I'm looking at the SDK source code and don't see any way to do that. The only thing that looks feasible is to do: AuthToken.Cache = new DefaultAuthTokenCache(); but I'm not convinced that would work or is the best way. This service needs to run on it's own, unsupervised, for a long time, months or years if the API is stable enough. I need a reliable way to maintain a valid Authorization Token. Anyone run into this and have a solution? Thanks, Ken -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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