Update: I try to play around with the API again this morning. I have no idea what has changed, but I can't even start up the server now. While trying to fix my initial bug, I wanted to do a fresh start. So I logged out on the app and now I get a
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. On Tuesday, July 14, 2015 at 3:07:36 AM UTC-7, Jeffrey Lee wrote: > > 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. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/19bb74a6-5bd9-4eb6-8cba-0f2968b5486c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.