public class AdHocReportDownloadHelper extends Object
Modifier and Type | Field and Description |
---|---|
static Charset |
REPORT_CHARSET
The default Charset for report request and response contents.
|
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 |
---|---|
RawReportDownloadResponse |
downloadReport(ReportRequest reportRequest)
Downloads a report and returns a ReportDownloadResponse with the results.
|
int |
getReportDownloadTimeout()
Returns the reportDownloadTimeout in milliseconds
|
void |
setReportDownloadTimeout(int reportDownloadTimeout)
Sets the reportDownloadTimeout (milliseconds).
|
public static final Charset REPORT_CHARSET
public AdHocReportDownloadHelper(AdWordsSession session, String version)
public RawReportDownloadResponse downloadReport(ReportRequest reportRequest) throws ReportException
reportRequest
- the report request.ReportException
- If there is any exceptions making HTTP request to
the server.public int getReportDownloadTimeout()
public void setReportDownloadTimeout(int reportDownloadTimeout)
Copyright © 2015. All Rights Reserved.