So I downloaded the sample rails app here: https://developers.google.com/adwords/api/docs/clientlibraries
I got it running, but when I click on the List Accounts link I get this stack trace:
NoMethodError - undefined method `[]=' for nil:NilClass:
google-ads-common (0.9.9) lib/ads_common/credential_handler.rb:65:in `set_credential'
app/controllers/application_controller.rb:50:in `create_adwords_api'
app/controllers/application_controller.rb:36:in `get_adwords_api'
app/controllers/account_controller.rb:18:in `get_accounts_graph'
app/controllers/account_controller.rb:5:in `index'
I have my developer_token, client_customer_id, oauth2_client_id, and oauth2_client_secret. I don't know why I am getting this issue. Does anyone have any ideas? Everything in my token had a value except the id_token key.
NoMethodError - undefined method `[]=' for nil:NilClass:
google-ads-common (0.9.9) lib/ads_common/credential_handler.rb:65:in `set_credential'
google-ads-common (0.9.9) lib/ads_common/api.rb:102:in `block in authorize'
google-ads-common (0.9.9) lib/ads_common/api.rb:101:in `authorize'
app/controllers/login_controller.rb:15:in `prompt'
The difference this time is that it is coming from the login_controller. It seems that "token = api.authorize({:oauth2_callback => login_callback_url})" is failing on me and I don't know why. The credentials on the adwords_api.yml file didn't change. I did refresh the credentials afterwards on the developer console and try to put the updated keys in the yml file, but that didn't solve the issue either. How the app is just simply broken for me.