Hi Hagay,

Firstly, have you tried using the OAuth2 
example<https://code.google.com/p/google-api-ads-ruby/source/browse/adwords_api/examples/v201302/misc/use_oauth2.rb>as
 a reference for the authorization flow?
You should store the hash from the response from the 
authorize()<https://code.google.com/p/google-api-ads-ruby/source/browse/adwords_api/examples/v201302/misc/use_oauth2.rb#39>function
 and return it as a parameter for the next authorization attempt.
E.g:
  *token* = *load_from_store(...)*
  
adwords.authorize<https://code.google.com/p/google-api-ads-ruby/source/browse/ads_common/lib/ads_common/api.rb#88>
(*{:oauth2_token => token}*)

*Where load_from_store is your own implementation for loading the 
credentials.*


Secondly, if you are handeling the authorization some other way, you would 
need to construct the token yourself.
E.g:
  token = *{:refresh_token=> manual_token}*
  
adwords.authorize<https://code.google.com/p/google-api-ads-ruby/source/browse/ads_common/lib/ads_common/api.rb#88>({:oauth2_token
 
=> token})

We strongly recommend that you use the library for handeling the 
authorization flow. Therefore, we would suggest you use the *First*example. If 
you're having difficulties configuring this, if you would paste 
your config file (with the personally identifiable information masked) we 
can make suggestions further.

Regards,

- Paul, AdWords API Team.

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