Thanks Eric..Example was life saver. thanks again..... On Apr 13, 2:47 pm, AdWords API Advisor <adwordsapiadvi...@google.com> wrote: > Hi, > > The login errors you mentioned are specifically from the ClientLogin > API, and another way of avoiding them is to simply cache the authToken > that it generates. You can cache this token for up to two weeks, and > use it when you create new AdWordsUser objects. An example of > handling authTokens manually is available here: > > http://code.google.com/p/google-api-adwords-java/source/browse/trunk/... > > Best, > - Eric Koleda, AdWords API Team > > On Apr 13, 4:10 am, AdWordsNovice <harshsondhi2...@gmail.com> wrote: > > > Ok, Forget about going through all the crap..if it looks like..my > > simple question.. > > > I want to avoid error because of frequent log in to account in > > AdWords. > > It causes errors, which most people recommended to reuse Account and > > Service in same thread.. e.g per client per thread to avoid. > > I am using JAVA 1.6/AdWords v200909 > > Can i use ThreadLocal in order to reuse/cash account/service?? can any > > one point out the example if ,some one already has used this concept > > successfully in AdWords200909 ?? > > > Fir example...Using something like this:= > > > private ThreadLocal<aCachingObj> singletonRef = new > > ThreadLocal<aCachingObj>() { .... }; > > > where aCachingObj possibly stores AdWords account/service reference > > to reuse in code..with all the initiating once and reusing logic in > > it. > > > Thanks Crawl About, I will post it in the suggested link too..thanks > > for your patience. ;-)
-- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Have you migrated to v200909 yet? The v13 sunset is on April 22, 2010. 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