I was finally able to get it working. I had to merge my stored token values with the loaded config params from the adwords_api.yml file. Trying to figure out how to set the token after the api object was created was causing issues. I used the setup_oauth2.rb example to write the values to my config and removed the token information. I'm storing that data in the db and load when I need to use it.:
config = File.join( Rails.root, 'config', 'adwords_api.yml' ) config_data = YAML::load_file( config ) config_data[:authentication].merge!({ :oauth2_token => { :chunking => true, :access_token => self.access_token, :refresh_token => self.refresh_token, :issued_at => self.expires_at - 3600, :expires_in => 3600 } }) @api = AdwordsApi::Api.new( config_data ) -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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.