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]++USD',
         'useragent' => 'Sample User Agent',
         'password' => 'password',
         'email' => '[email protected]',
         'clientEmail' => '[email protected]',
         '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.


Reply via email to