public class AdHocReportDownloadHelper extends Object
| Constructor and Description |
|---|
AdHocReportDownloadHelper(AdWordsSession session,
String version)
Constructor that stores the session for authentication and uses the provided version to
determine the report endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
protected RawReportDownloadResponse |
downloadReport(com.google.api.ads.adwords.lib.utils.ReportBodyProvider reportBodyProvider)
Downloads a report and returns a ReportDownloadResponse with the results.
|
RawReportDownloadResponse |
downloadReport(String reportDefinitionXml)
Downloads a report and returns a ReportDownloadResponse with the results.
|
RawReportDownloadResponse |
downloadReport(String reportQuery,
String format)
Downloads a report query and returns a ReportDownloadResponse with the results.
|
int |
getReportDownloadTimeout()
Returns the reportDownloadTimeout in milliseconds
|
void |
setReportDownloadTimeout(int reportDownloadTimeout)
Sets the reportDownloadTimeout (milliseconds).
|
public AdHocReportDownloadHelper(AdWordsSession session, String version)
public RawReportDownloadResponse downloadReport(String reportDefinitionXml) throws ReportException
reportDefinitionXml - to download a report for.ReportDownloadResponse When HTTP request completes. On
success, the outputStream will be flushed and closed.ReportException - If there is any issue making HTTP request with
server.public RawReportDownloadResponse downloadReport(String reportQuery, String format) throws ReportException
reportQuery - to download a report for.ReportDownloadResponse When HTTP request completes. On
success, the outputStream will be flushed and closed.ReportException - If there is any issue making HTTP request with
server.protected RawReportDownloadResponse downloadReport(com.google.api.ads.adwords.lib.utils.ReportBodyProvider reportBodyProvider) throws ReportException
reportBodyProvider - with HttpContent to send to the server.ReportException - If there is any exceptions making HTTP request to
the server.public int getReportDownloadTimeout()
public void setReportDownloadTimeout(int reportDownloadTimeout)
Copyright © 2014. All Rights Reserved.