Credentials credentials =
UserCredentials.newBuilder()
.setClientId("INSERT_CLIENT_ID")
.setClientSecret("INSERT_CLIENT_SECRET")
.setRefreshToken("INSERT_REFRESH_TOKEN")
.build();
GoogleAdsClient googleAdsClient =
GoogleAdsClient.newBuilder()
.setCredentials(credentials)
.setDeveloperToken("INSERT_DEVELOPER_TOKEN_HERE")
.setLoginCustomerId("INSERT_LOGIN_CUSTOMER_ID_HERE") // Manager accounts only.
.build();
Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/