public class AdConversionReport extends Report
Modifier and Type | Class | Description |
---|---|---|
static class |
AdConversionReport.Section |
Sub class for AdConversionReport.
|
Constructor | Description |
---|---|
AdConversionReport(com.apptus.util.xml.XmlTree asXml,
List<AdConversionReport.Section> sections,
TimeInterval interval,
Duration resolution,
TimeZone tz) |
Creates an AdConversionReport.
|
Modifier and Type | Method | Description |
---|---|---|
void |
exportToExcel(File file) |
Writes the report to a file.
|
static AdConversionReport |
parse(com.apptus.util.xml.XmlScanner scanner,
TimeZone tz) |
Creates an AdConversionReport from an XML document.
|
Duration |
resolution() |
|
List<AdConversionReport.Section> |
sections() |
exportToXml, exportToXml, isoDateTimeFormat, timeInterval
public AdConversionReport(com.apptus.util.xml.XmlTree asXml, List<AdConversionReport.Section> sections, TimeInterval interval, Duration resolution, TimeZone tz)
asXml
- An XmlTree to be used if the Report.exportToXml(java.io.File)
method is called.sections
- A list of AdConversionReport.Section
elements. One for each ad
in the report.interval
- The time interval for the data in this report.resolution
- The resolution for the data in this report.tz
- The time zone to use when presenting this report.public static AdConversionReport parse(com.apptus.util.xml.XmlScanner scanner, TimeZone tz) throws com.apptus.util.xml.FormatException, com.apptus.util.xml.SourceException
scanner
- A scanner for the XML document to parse.tz
- The time zone to use when presenting this report.AdConversionReport
.com.apptus.util.xml.FormatException
- if the XML document does not match the expected format.com.apptus.util.xml.SourceException
- if the XML document contains errors like invalid XML or if the source is unreadable.public Duration resolution()
public List<AdConversionReport.Section> sections()
public void exportToExcel(File file) throws FileNotFoundException
Report
exportToExcel
in class Report
file
- The file to write the report to.FileNotFoundException
- if the file does not exists or if the file is inaccessible.Copyright © 2021 Apptus Technologies AB. All rights reserved.