Re: ruby setup_oauth2.rb error

2018-02-08 Thread Arjun Rajkumar
I'm trying to generate keyword ideas, but the oauth is failing. When I run the ' adwords.service(:TargetingIdeaService, API_VERSION).get(selector)' - I get an error ' AdsCommon::Errors::OAuth2VerificationRequired excluded from capture: DSN not set ' So, I need to re-authorise the oauth

Re: ruby setup_oauth2.rb error

2018-02-08 Thread Arjun Rajkumar
Hi Dhanya, Thanks for your reply. Yes, I had done this last year and already have the OAuth tokens from another account. But this is a new project and wanted new tokens. Can you please confirm which lines to comment out - before doing your three steps: ~~~ def setup_oauth2() adwords =

Re: ruby setup_oauth2.rb error

2018-02-08 Thread 'Dhanya Sundararaju (AdWords API Team)' via AdWords API Forum
Hi Arjun, In your adwords_api.yml file, if you already have the OAuth tokens (access and refresh), the system will not ask you to reauthorize. Looks like that is happening in your case. To confirm this,

ruby setup_oauth2.rb error

2018-02-08 Thread Arjun Rajkumar
Hi, I am installing the adwords api via this official doc: https://github.com/googleads/google-api-ads-ruby/wiki/API-access-using-own-credentials-(installed-application-flow) In step 2, when I run 'setup_oauth2.rb' I am getting this response : 'OAuth2 token is now saved to ~/adwords_api.yml and