setting up oauth2 client

39 views
Skip to first unread message

Ryan

unread,
Mar 14, 2018, 3:36:45 PM3/14/18
to AdWords API Forum
I'm following the instructions for setting up the adwords_api.yml configuration file. I've added the client id and secret to it. I run setup_oauth2.rb, get the access code, so far so good. I enter the access code, the utility asks me if I want to save the token to the config file, and I say yes. But when I look in the file that's generated, all it has is an empty object {}.

Any ideas would be much appreciated. Thanks!

Ryan

unread,
Mar 14, 2018, 4:01:08 PM3/14/18
to AdWords API Forum
Perhaps a clue is the response I get from running the utility: "Hit Auth error, please navigate to URL"

Why is it talking about an error while it's otherwise happily providing me with the link?

Ryan

unread,
Mar 14, 2018, 6:47:32 PM3/14/18
to AdWords API Forum
Solution: I needed to move my adwords_api.yml file to my home directory. I had provided a local path to AdwordsApi::Api.new, and the file was reading correctly, so it seems kinda odd that writing to a different place would result in failure, but that appears to be what happened.
Reply all
Reply to author
Forward
0 new messages