Hello Sumit,
First of all, you need to use a test account, instead of the deprecated sandbox, see: https://developers.google.com/adwords/api/docs/test-accounts As per Ruby, see the following wiki page: http://code.google.com/p/google-api-ads-ruby/wiki/OAuth2 and the code example: http://code.google.com/p/google-api-ads-ruby/source/browse/adwords_api/examples/v201306/misc/setup_oauth2.rb -Danial, AdWords API Team. On Tuesday, July 16, 2013 2:52:49 PM UTC+4, Sumit Bisht wrote: > > I am trying to develop a ruby script that uses AdWords API. However, the > adwords_api.yml that is present in examples/documentation require the > following: > :oauth2_client_id: INSERT_OAUTH2_CLIENT_ID_HERE > :oauth2_client_secret: INSERT_OAUTH2_CLIENT_SECRET_HERE > :developer_token: INSERT_YOUR_DEVELOPER_TOKEN_HERE > :client_customer_id: INSERT_YOUR_CLIENT_CUSTOMER_ID_HERE > :user_agent: INSERT_YOUR_USER_AGENT_HERE > > If I want to use user credentials object directly, then following is > required: > > creds = { > 'developerToken' => '[email protected] <javascript:>++USD', > 'useragent' => 'Sample User Agent', > 'password' => 'password', > 'email' => '[email protected] <javascript:>', > 'clientEmail' => '[email protected] <javascript:>', > 'applicationToken' => 'IGNORED', > 'environment' => 'SANDBOX', > } > > However, when I register an app at the API console ( > https://code.google.com/apis/console), I only get the following: > Client ID > Email address > Public key fingerprints > API key > > I am confused about OAuth2 as I am trying to do this via a script rather > than a web app. > Can someone point me out where to get proper user credentials(or am I > assuming wrong terms for login details) for a script application or would I > have to create a sinatra application atleast for OAuth which will further > call the script with credentials? > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
