Hi,

Thanks a lot for fixing the JWT issue in the library! I have that working 
perfectly now, but I wonder if you can point me in the right direction with 
one other problem.

I'm using a queue (Sidekiq) to fetch reports across my client's 22 
accounts, which works for 3 or 4 requests... then I get a 
"Signet::AuthorizationError" (User Rate Limit Exceeded). I understand that 
this is because each job is creating a new instance of the API & 
authorizing, and that the solution is to authorize once and cache the 
result for use with all other instances.

I can see that calling api.authorize returns a hash like this:

{:access_token=>"1/ENK[...]rBY", :issued_at=>2013-02-06 13:43:01 +0000, 
:expires_in=>3600, :id_token=>nil}

My question is: how do I pass that to a new instance? I've tried many ways 
(e.g. api.authorize(hash), api.authorize(hash[:access_token]) etc.), but 
each way I try just ignores my hash and returns a new token. Any help would 
be really appreciated!

Cheers,
Richard

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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

--- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to