Hi, 

Please refere this 
example<https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/auth/GetRefreshToken.java>to
 generate refresh_token. 

Best,
- Takeshi, AdWords API Team

On Monday, July 22, 2013 9:14:13 PM UTC+9, mcn.a...@gmail.com wrote:
>
> Hi,
> I'm writing the autentication code for work with adwords api.
> I read the official guide: 
>
> https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/README
>
>
> // Get an OAuth2 credential.
> Credential credential = new OfflineCredentials.Builder()
> .forApi(OfflineCredentials.Api.AdWords)
> .withClientSecrets(clientId, clientSecret)
> .withRefreshToken(refreshToken)
> .build()
> .generateCredential();
>
> // Construct an AdWordsSession.
> AdWordsSession session = new AdWordsSession.Builder()
> .withDeveloperToken(developerToken)
> // ...
> .withOAuth2Credential(credential)
> .build();
> I generated clientId and clientSecret, but refreshToken? How calculate it?
>
> Thanks for your help
>

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

--- 
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/groups/opt_out.


Reply via email to