Hello Jennifer,

Did you take a look on the OAuth2 example we have with the library?

  
http://code.google.com/p/google-api-ads-ruby/source/browse/adwords_api/examples/v201209/misc/use_oauth2.rb

For the configuration file, it should look like:

  :oauth2_token:
    :refresh_token: your_refresh_token

(authentication[:oauth2_token] is a hash).


-Danial, AdWords API Team.

On Tuesday, October 23, 2012 10:43:47 PM UTC+4, Jennifer Miles wrote:
>
> I'm moving my PHP client files v201109 to Ruby v201209.  I have everything 
> working in Sandbox while I'm using ClientLogin; however, I've been unable 
> to get OAuth2 in offline mode w/ refresh tokens working in the Ruby Client 
> like I was able to in the PHP client.  Has anyone had success using offline 
> mode with the Ruby Client.  Here are the OAuth2 config items I have in the 
> adwords_api.yml file:
>   :oauth2_client_id: MY CLIENT ID
>   :oauth2_client_secret: MY CLIENT SECRET
>   # Optional, see: 
> https://developers.google.com/accounts/docs/OAuth2WebServer
>   #:oauth2_callback: INSERT_OAUTH2_CALLBACK_URL_HERE
>   #:oauth2_state: INSERT_OAUTH2_STATE_HERE
>   :oauth2_access_type: offline
>   :oauth2_grant_type: refresh_token
>   #:oauth2_approval_prompt: INSERT_OAUTH2_APPROVAL_PROMPT_HERE
>   :oauth2_refresh_token: MY REFRESH TOKEN
>
> These are the same items I needed to have in the PHP client so I'm not 
> sure what else I need to do.  Any advice would be appreciated?
>

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

Reply via email to