Hello Kapil,

In that example, you don't have to modify SCOPE, and the CALLBACK_URL.

You should simply create Client ID for an installed application from the 
URL you supplied <https://code.google.com/apis/console#access>. 
Then copy the Client ID and Client secret to the sample 
code<https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201209/misc/OAuth2Example.java>(variables
 called CLIENT_ID and CLIENT_SECRET).

Running that example, the program asks you to paste an url to the browser.
like this (https://accounts.google.com/o/oauth2/auth?access_type=offline&; 
... ) 

After that, paste the authorization code to the console, then you should 
get the results.

Please also refer this document
https://developers.google.com/adwords/api/docs/authentication#oauth

Best,
- Takeshi, AdWords API Team

On Friday, December 14, 2012 7:37:39 PM UTC+9, Kapil wrote:
>
> I am new to adwords api and I want to run this program-
>
>
> https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201209/misc/OAuth2Example.java
>
> I generated some parameters from this link-
> https://code.google.com/apis/console#access
>
> But I don't know what are these parameters and how can I get these 
> parameters mention in the program:-
>
> SCOPE        
> CALLBACK_URL 
> CLIENT_ID   
> CLIENT_SECRET
>
> Also, if you will look at the main function in this program there is a 
> part of code:-
>
> if (CLIENT_ID.equals("INSERT_CLIENT_ID_HERE")
>         || CLIENT_SECRET.equals("INSERT_CLIENT_SECRET_HERE")) {
>       throw new IllegalArgumentException("Please input your client IDs or 
> secret"+ "See https://code.google.com/apis/console#access";);}
>
> What do I have to insert in "INSERT_CLIENT_ID_HERE" and 
> "INSERT_CLIENT_SECRET_HERE"
>
> Please help me finding the solution.
>
> Kabir
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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



Reply via email to