|
||||||||||
| 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.v201206.ReportDownloader
public class ReportDownloader
Reports are fetched synchronously like in the following code:
new ReportDownloader(adWordsSession).downloadReport(reportDefinition);
The adWordsSession is used to authenticate the request against the
reportDownloadUrl.
| Constructor Summary | |
|---|---|
ReportDownloader(AdWordsSession session)
Constructs a ReportDownloader. |
|
| Method Summary | |
|---|---|
ReportDownloadResponse |
downloadReport(ReportDefinition reportDefinition)
Downloads a report and returns a ReportDownloadResponse with the results. |
ReportDownloadResponse |
downloadReport(String reportQuery,
DownloadFormat format)
Downloads a report query (AWQL) 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 ReportDownloader(AdWordsSession session)
ReportDownloader.
session - AdWordsSession to use to make report download requests.| Method Detail |
|---|
public ReportDownloadResponse downloadReport(ReportDefinition reportDefinition)
throws ReportException
reportDefinition - 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,
DownloadFormat format)
throws ReportException
reportQuery - to download a report for.format - Format to download the report as. CSV,
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 | |||||||||