I've been fighting this error for some time now. I've managed to connect and authenticate using oauth2 but even the simplest of requests results in XML_STREAM_EXC. Gems are loaded through Gemfile and my code is as follows:
require 'adwords_api' # These all have values CLIENT_ID CLIENT_SECRET DEVELOPER_TOKEN CLIENT_CUSTOMER_ID TOKEN adwords = AdwordsApi::Api.new({ :authentication => { :method => 'OAuth2', :oauth2_client_id => CLIENT_ID, :oauth2_client_secret => CLIENT_SECRET, :developer_token => DEVELOPER_TOKEN, :client_customer_id => CLIENT_CUSTOMER_ID }, :service => { :environment => 'PRODUCTION' } }) adwords.authorize({:oauth2_token => TOKEN}) service = adwords.service(:AdGroupCriterionService, :v201209) selector = { :fields => ['Id', 'Name', 'Status'], :ordering => [ {:field => 'Name', :sort_order => 'ASCENDING'} ], :paging => { :start_index => 0, :number_results => 100 } } result = service.get(selector) What am I doing wrong? Shouldn't this be working? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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