|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelper
public class AdHocReportDownloadHelper
Helper class that handles AdHoc report downloads. Requests will be logged (header and payload) to INFO. Successful reports will be logged (headers and response code) to INFO. Failed reports will be logged in their entirety to WARN.
| Constructor Summary | |
|---|---|
AdHocReportDownloadHelper(AdWordsSession session,
String version)
Constructor that stores the session for authentication and uses the provided version to determine the report endpoint. |
|
| Method Summary | |
|---|---|
protected ReportDownloadResponse |
downloadReport(com.google.api.ads.adwords.lib.utils.ReportWriter reportWriter)
Downloads a report and returns a ReportDownloadResponse with the results. |
ReportDownloadResponse |
downloadReport(String reportDefinitionXml)
Downloads a report and returns a ReportDownloadResponse with the results. |
ReportDownloadResponse |
downloadReport(String reportQuery,
String format)
Downloads a report query and returns a ReportDownloadResponse with the results. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AdHocReportDownloadHelper(AdWordsSession session,
String version)
| Method Detail |
|---|
public ReportDownloadResponse 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 ReportDownloadResponse 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 ReportDownloadResponse downloadReport(com.google.api.ads.adwords.lib.utils.ReportWriter reportWriter)
throws ReportException
reportWriter - Encapsulated class that will write this report to the output stream.
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||