adwordsCredential = new OfflineCredentials.Builder().
forApi(OfflineCredentials.Api.ADWORDS)
.withRefreshToken(refreshToken)
.withClientSecrets(clientId, clientSecret)
.build().
generateCredential();
adWordsSession = new AdWordsSession.Builder()
.withClientCustomerId(clientCustomerId)
.withDeveloperToken(developerToken)
.withOAuth2Credential(adwordsCredential).
build();
I am trying to find out the best practices to manage the sessions.
- What happens to the sessions we create ? Do they expire ?
- Is there a limit on the number of active sessions ?
Thanks!
K