com.google.api.ads.adwords.lib.utils
Class AdHocReportDownloadHelper
java.lang.Object
com.google.api.ads.adwords.lib.utils.AdHocReportDownloadHelper
public class AdHocReportDownloadHelper
- extends Object
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.
- Author:
- Kevin Winter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdHocReportDownloadHelper
public AdHocReportDownloadHelper(AdWordsSession session,
String version)
- Constructor that stores the session for authentication and uses the provided version to
determine the report endpoint.
downloadReport
public ReportDownloadResponse downloadReport(String reportDefinitionXml)
throws ReportException
- Downloads a report and returns a ReportDownloadResponse with the results.
- Parameters:
reportDefinitionXml - to download a report for.
- Returns:
ReportDownloadResponse When HTTP request completes. On
success, the outputStream will be flushed and closed.
- Throws:
ReportException - If there is any issue making HTTP request with
server.
Copyright © 2012. All Rights Reserved.