I don't want to set the VM/System level proxy.

So I set Axis proxy as below:

            AxisProperties.getProperties().put("proxySet", "true");
            AxisProperties.setProperty("http.proxyHost", 
Config.getStr(apiClient, "ProxyHost"));
            AxisProperties.setProperty("http.proxyPort", 
Config.getStr(apiClient, "ProxyPort"));
            AxisProperties.setProperty("https.proxyHost", 
Config.getStr(apiClient, "ProxyHost"));
            AxisProperties.setProperty("https.proxyPort", 
Config.getStr(apiClient, "ProxyPort"));

And Also I set proxy for OfficeCredentials:

        NetHttpTransport httpTransport = new 
NetHttpTransport.Builder().setProxy(proxy).build();
        Credential oAuth2Credential = new 
OfflineCredentials.Builder().forApi(OfflineCredentials.Api.ADWORDS).from(config).withHttpTransport(httpTransport).build().generateCredential();


But I have no idea how to set proxy for the ReportDownloader. Would you 
please enlighten me, or is there an easier to set proxy in one place?
ReportDownloadResponse response = new 
ReportDownloader(adWordsSession).downloadReport(reportDefinition);

Thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/07864464-e7f1-46a5-a72c-ce607bcf9f35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to