Re-pinging. Anyone have a best practice on caching the auth token across when using ClientLogin and the ruby api?
Thanks in advance, John On Tue, Oct 11, 2011 at 3:50 PM, John Li <[email protected]> wrote: > Hello, > > What's the best way to save authorization credentials across different > logins with Ruby? I'm following the example at > http://code.google.com/p/google-api-ads-ruby/wiki/AdWordsReadme, and my > app will be repeating the same 1-2-3 steps as in the example: > > 1. adwords = AdwordsApi::Api.new > 2. campaign_srv = adwords.service(:CampaignService, :v201101) > 3. <do something with campaign_srv> > > My app will be repeating this pattern a lot. I'm trying to follow best > practices and find a way to cache the ClientLogin credentials so I won't hit > CAPTCHA issues, but I don't see a way to do this elegantly. > > Caching the entire AdwordsApi::Api object seems excessive (and Ruby's > Marshal can't dump the obj anyways), and I see no way to get/set the actual > authToken from the object. > > Thanks in advance, and apologies if this has already been asked. > > Cheers, > John Li > > > -- > > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
