File reportFile = null;
ReportDownloader reportDownloader = new ReportDownloader(adWordsSession);
ReportDownloadResponse reportDownloadResponse =
reportDownloader.downloadReport(this.reportDefinition);
if (reportDownloadResponse.getHttpStatus() == HttpURLConnection.HTTP_OK) {
File tempFile = this.createTempFile(this.cid, this.reportDefinition.getReportType().value());
BufferedOutputStream output = new BufferedOutputStream(new FileOutputStream(tempFile));
copy(reportDownloadResponse.getInputStream(), output);