How to set proxy to the ReportDownloader

76 views
Skip to first unread message

Liqun Chen

unread,
Apr 28, 2015, 9:10:01 AM4/28/15
to adwor...@googlegroups.com
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.

Anash P. Oommen (AdWords API Team)

unread,
Apr 28, 2015, 4:19:58 PM4/28/15
to adwor...@googlegroups.com
Hi,

I don't think this is supported today, could you file a feature request on https://github.com/googleads/googleads-java-lib/issues? I'll ask the Java library maintainer to follow up with you.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Liqun Chen

unread,
Apr 29, 2015, 4:35:15 PM4/29/15
to adwor...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages