googleads / google-api-ads-ruby

Ad Manager SOAP API Client Libraries for Ruby
297 stars 227 forks source link

Infinite execution of setup_oauth2.rb #131

Closed chrismahcpc closed 7 years ago

chrismahcpc commented 7 years ago

I've set up the .yml file in my home directory according to the README, but when I attempt to run setup_oauth2.rb to acquire tokens, the script just hangs indefinitely and nothing happens

mcloonan commented 7 years ago

Can you let me know which version of the gem you're using, and also provide a copy of the yml file (removing any private information)?

Is there any output to the console from the execution?

chrismahcpc commented 7 years ago

Right now the console has no output. After running ruby setup_oauth2.rb, for all versions, the execution hangs infinitely

Here are my GEM versions:

google-ads-common (0.13.0) google-ads-savon (1.0.2) google-adwords-api (0.24.0)

Here is the .yml contents:


This is an example configuration file for the AdWords API client library.

Please fill in the required fields, and copy it over to your home

directory. :authentication:

Authentication method, methods currently supported:

OAUTH2, OAUTH2_SERVICE_ACCOUNT.

:method: OAuth2

:oauth2_client_id: (MY_ID) :oauth2_client_secret: (MY_SECRET)

Other parameters.

:developer_token: (MY_TOKEN) :client_customer_id: (MY_ID) :user_agent: PGx :service:

Only production environment is available now, see: http://goo.gl/Plu3o

:environment: PRODUCTION :connection:

Enable to request all responses to be compressed.

:enable_gzip: false

:library:

Optional: set the log level.

:log_level: INFO

On Tue, May 23, 2017 at 11:31 AM, mcloonan notifications@github.com wrote:

Can you let me know which version of the gem you're using, and also provide a copy of the yml file (removing any private information)?

Is there any output to the console from the execution?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/googleads/google-api-ads-ruby/issues/131#issuecomment-303491185, or mute the thread https://github.com/notifications/unsubscribe-auth/AX57r_qnTWloePz7t7Si1BEnxrKMPx0Eks5r8yX1gaJpZM4NkF3y .

-- Chris Mah Intern, Technology cmah@cpcstrategy.com

http://www.cpcstrategy.com/

mcloonan commented 7 years ago

What version of Ruby are you using? Can you try adding some logging statements of your own to the example early on to see how far it gets before it starts hanging?

mcloonan commented 7 years ago

Closing this as it's not reproducible for me without more information.