Hi Michael,

We are able to generate the access token.

Your help is really very appreciated.

Thanks,
*Archit Agarwal*  *I * Software Developer  *I  *Astrea IT Services  *I * 
www.astreait.com*  l *


On Wednesday, July 9, 2014 12:27:28 AM UTC+5:30, Michael Cloonan (AdWords 
API Team) wrote:
>
> Hello Archit,
>
> You can find information on how to set up the Java library in the README 
> <https://github.com/googleads/googleads-java-lib/blob/master/README.md>. 
> Of particular importance is making sure that you have the ads.properties 
> <https://github.com/googleads/googleads-java-lib/blob/f1b45af73df843cbe2c0c50b505eb40a7c9ea91a/examples/adwords_axis/src/main/resources/ads.properties>
>  
> file in your home directory, filled out with relevant information (refresh 
> token, client ID, client secret, client customer ID, and developer token 
> (Please *DO NOT* share these pieces of information publicly)).
>
> Once you have this file in place and you've gone through the setup in the 
> README file, then running any of our examples (or writing your own code 
> that uses the client library) will automatically fetch an access token 
> using the refresh token. This is one of the many advantages of using a 
> client library rather than trying to write your own SOAP code.
>
> Regards,
> Mike, AdWords API Team
>
> On Tuesday, July 8, 2014 3:05:02 AM UTC-4, Archit Agarwal wrote:
>>
>> Hi Michael,
>>
>> Can you please help us to configure the libraries properly. As we have 
>> found the library on the link 
>> https://github.com/googleads/googleads-java-lib/tree/master/examples/adwords_axis/src/main/java/adwords/axis
>>  .And 
>> we didn't find the way to fetch the access token using the code in the link 
>> above.
>>
>> Thanks,
>> Archit Agarwal
>>
>> On Monday, July 7, 2014 6:55:16 PM UTC+5:30, Michael Cloonan (AdWords API 
>> Team) wrote:
>>>
>>> Hello Archit,
>>>
>>> If you use one of our client libraries, then fetching the access token 
>>> is handled for you once the library is configured properly with the refresh 
>>> token.
>>>
>>> If you would like to manually fetch an access token, you can follow the 
>>> instructions on our guide for how to form the request 
>>> <https://developers.google.com/accounts/docs/OAuth2InstalledApp#refresh>
>>> .
>>>
>>> Regards,
>>> Mike, AdWords API Team
>>>
>>> On Monday, July 7, 2014 6:00:46 AM UTC-4, Archit Agarwal wrote:
>>>>
>>>> Hi Michael,
>>>>
>>>> We are able to generate the refresh token using oauth playground and 
>>>> also using the libraries. The link of the code that we are using is 
>>>> https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/auth/GetRefreshToken.java
>>>>  
>>>> . Now we are facing difficulty in generating the access token as we didn't 
>>>> find any library to generate the access token. The link to the adwords 
>>>> library is 
>>>> https://github.com/googleads/googleads-java-lib/tree/master/examples/adwords_axis/src/main/java/adwords/axis
>>>>  
>>>> .
>>>>
>>>> Please provide some directions to generate the access token 
>>>> programmatically. As we need to get this done urgently. Your suggestions 
>>>> are valuable to us. 
>>>>
>>>> Thanks,
>>>> Archit Agarwal
>>>>
>>>>
>>>> On Tuesday, June 10, 2014 6:20:47 PM UTC+5:30, Michael Cloonan (AdWords 
>>>> API Team) wrote:
>>>>>
>>>>> Hello Archit,
>>>>>
>>>>> There are two different tokens that serve different purposes. First is 
>>>>> the refresh token, which must be generated one time and then stored in a 
>>>>> safe location. The second is access tokens, which is generated using the 
>>>>> refresh token, and is good for a short period of time. These access 
>>>>> tokens 
>>>>> go into the Authorization header when using OAuth 2.0.
>>>>>
>>>>> Generating the refresh token does involve some manual steps, but we 
>>>>> have tools to aid you in generating this token. If you go to our OAuth 
>>>>> 2.0 guide 
>>>>> <https://developers.google.com/adwords/api/docs/guides/authentication#configure_and_use_a_client_library>,
>>>>>  
>>>>> we have a section where you can pick any of the languages supported by 
>>>>> our 
>>>>> client libraries and use a tool in that language to help generate the 
>>>>> refresh token. Even if your app is in a different language, you can still 
>>>>> do this step in any language you choose, since once the refresh token is 
>>>>> acquired you don't need to do this step again.
>>>>>
>>>>> Then, if you are using one of our client libraries 
>>>>> <https://developers.google.com/adwords/api/docs/clientlibraries>, 
>>>>> they will automatically handle using your refresh token to fetch the 
>>>>> proper 
>>>>> authorization token and putting it into the HTTP headers so that your 
>>>>> request will properly authenticate.
>>>>>
>>>>> Regards,
>>>>> Mike, AdWords API Team
>>>>>
>>>>> On Tuesday, June 10, 2014 2:14:43 AM UTC-4, Archit Agarwal wrote:
>>>>>>
>>>>>> I want to integrate Adwords API with Klipfolio dashboards. 
>>>>>> As the version of the Adwords API has changed and also the 
>>>>>> Authorization parameter value has also changed therefore the old 
>>>>>> libraries 
>>>>>> are not working correctly. So it is possible to generate the 
>>>>>> authorization token using some program for the new version.
>>>>>>
>>>>>> Please help, your suggestions are valuable to us.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Archit Agarwal 
>>>>>>
>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to