Hi,
Our company has a policy that we cannot directly call adwords urls instead we need to call different url that url will intern call adwords apis and give result back to us. Is there any place that we can change this to make it work.
For example, like below.
Direct url: https://accounts.google.com/o/oauth2/token
Url we will call : https://dpuatvip.ace.aaaclubnet.com:56000/accounts.google.com/o/oauth2/token (This is what you application will call in dev and testing)
Thanks Josh,
We want to replace all adwords request URL to our own URL. Since we are using below code, I need some more information on this.
1) If I use api.adwords.endpoint propery then it will be applicable to below code also.
2) Can you please let us know what are the request URL go out from below code so that we will prepare our own URL for those?
public AdWordsSession generateAdwordsSession() {
// Generate a refreshable OAuth2 credential.
Credential oAuth2Credential;
try {
oAuth2Credential = new OfflineCredentials.Builder().forApi(Api.ADWORDS).fromFile().build()
.generateCredential();
// Construct an AdWordsSession.
return new AdWordsSession.Builder().fromFile().withOAuth2Credential(oAuth2Credential).build();
} catch (OAuthException | ValidationException | ConfigurationLoadException e) {
LOGGER.error("Error in getting AdwordsSession with given credentials", e);
return null;
}
}
Thanks!
Hari.