I followed the documentation to set up google-api-ads-ruby and run examples by 
first calling get campaigns to create clients but I am getting an error when 
trying to run get_account_hierarchy.rb

#<struct Faraday::Request method=:post, 
path="https://accounts.google.com/o/oauth2/token";, params={}, 
headers={"Content-Type"=>"application/x-www-form-urlencoded"}, 
body={"grant_type"=>"authorization_code", 
"code"=>"4/f7akIdRJIYp9wkMTYfKFSLbdD.something", 
"client_id"=>"someclientid.apps.googleusercontent.com", 
"client_secret"=>"veryseceret", :redirect_uri=>"urn:ietf:wg:oauth:2.0:oob"}, 
options={:proxy=>nil}>

OAuth2::Error: invalid_grant: 
{
  "error" : "invalid_grant"
}



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

Reply via email to