Thanks Josh,

We want to replace all adwords urls which we are calling  from code. I just 
need some more information on below code from java client library example. 

1) Can you please let us know whether below code also uses 
api.adwords.endpoint property host when calling adwords apis.

2) Can you please let us know what are the apis below code will call so 
that we will prepare our own urls for these. 

public AdWordsSession generateAdwordsSession() {

// Generate a refreshable OAuth2 credential.
Credential oAuth2Credential;
try {
//oAuth2Credential = new 
OfflineCredentials.Builder().forApi(Api.ADWORDS).withTokenUrlServer("https://dpuatvip.ace.aaaclubnet.com:56000/accounts.google.com/o/oauth2/token";).fromFile().build()
// .generateCredential();
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.



On Thursday, September 28, 2017 at 10:17:02 PM UTC+5:30, Josh Radcliff 
(AdWords API Team) wrote:
>
> Hi Hari,
>
> Is the server that you want to pass your requests through a proxy server? 
> If so, I'd recommend simply setting the proxy system properties as 
> described in the client library's README file here 
> <https://github.com/googleads/googleads-java-lib#using-a-proxy>.
>
> Thanks,
> Josh, AdWords API Team
>
> On Thursday, September 28, 2017 at 2:49:09 AM UTC-4, hari krishna wrote:
>>
>> Thanks Sreelakshmi, 
>>
>> May i know what is the significance of below property. My intention is 
>> not appending my server url, I am trying to call a different url when ever 
>> google client library call google url. is there any place i can setup this. 
>> Instead of https://adwords.google.com 
>> <https://adwords.google.com/api/adwords/cm/v201708/CampaignCriterionService>,
>>  i 
>> will give my own host like https://xxxxxxxxxxxxx.com, so that google 
>> client library take my url as host.As I said above my host will call to 
>> google apis and give result back to java client library.  Please let me 
>> know is there any possibility in setup. 
>>
>> # Change the AdWords API endpoint. Optional.
>> #api.adwords.endpoint=https://xxxxxxxxxxxxx.com
>>
>> Thanks!
>> Hari. 
>>
>>
>> On Wednesday, September 27, 2017 at 11:38:11 PM UTC+5:30, Sreelakshmi 
>> Sasidharan (AdWords API Team) wrote:
>>>
>>> Hi Hari, 
>>>
>>> Appending the AdWords API URL to your server URL might not work as the 
>>> resultant URL will not be a valid one. Your application will have to have 
>>> the logic to internally redirect calls from the application to the 
>>> corresponding AdWords API service/reports. If you are interested in using 
>>> proxy, you could check this 
>>> <https://github.com/googleads/googleads-java-lib#using-a-proxy> guide 
>>> to understand how to do that using Java client library. 
>>>
>>> Thanks,
>>> Sreelakshmi, AdWords API Team
>>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cccfed23-9da7-4bba-b52b-09952f4db519%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Need to ... hari krishna
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
      • ... hari krishna
        • ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
          • ... hari krishna
          • ... hari krishna
          • ... hari krishna
            • ... hari krishna

Reply via email to