Hello everyone,
We’ve recently started to use adwords api and now we are trying to automate few tasks. We’re using OAuth2 authentication and ruby. We’ve followed the example here https://code.google.com/p/google-api-ads-ruby/source/browse/adwords_api/examples/v201209/misc/use_oauth2_jwt.rb<https://code.google.com/p/google-api-ads-ruby/source/browse/adwords_api/examples/v201209/misc/use_oauth2.rb>to authenticate, the only difference is how we initialize the adwords api: adwords = AdwordsApi::Api.new({ :library => { :log_level => "DEBUG" }}) # option 1 and option 2 not modified from the example campaign_srv = adwords.service(:CampaignService, API_VERSION) We’ve downloaded the private key file and the path is set correctly and we’ve tried both options. This is the error we get: /path/.rvm/gems/ruby-1.9.3-p327/gems/google-ads-common-0.9.0/lib/ads_common/credential_handler.rb:65:in `set_credential': undefined method `[]=' for nil:NilClass (NoMethodError) from /path/.rvm/gems/ruby-1.9.3-p327/gems/google-ads-common-0.9.0/lib/ads_common/api.rb:103:in `block in authorize' from /path/.rvm/gems/ruby-1.9.3-p327/gems/google-ads-common-0.9.0/lib/ads_common/api.rb:102:in `each_pair' from /path/.rvm/gems/ruby-1.9.3-p327/gems/google-ads-common-0.9.0/lib/ads_common/api.rb:102:in `authorize' Let me know if you need further information, i would like to find out the possible reason for that error or if there is any error in our configuration or code? Thank you in advance for your time, Georgi -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
