MediationReportSpec class

The specification for generating an AdMob Mediation report.

For example, the specification to get observed ECPM sliced by ad source and app for the 'US' and 'CN' countries can look like the following example: { "date_range": { "start_date": {"year": 2021, "month": 9, "day": 1}, "end_date": {"year": 2021, "month": 9, "day": 30} }, "dimensions": ["AD_SOURCE", "APP", "COUNTRY"], "metrics": ["OBSERVED_ECPM"], "dimension_filters": [ { "dimension": "COUNTRY", "matches_any": {"values": [{"value": "US", "value": "CN"}]} } ], "sort_conditions": [ {"dimension":"APP", order: "ASCENDING"} ], "localization_settings": { "currency_code": "USD", "language_code": "en-US" } } For a better understanding, you can treat the preceding specification like the following pseudo SQL: SELECT AD_SOURCE, APP, COUNTRY, OBSERVED_ECPM FROM MEDIATION_REPORT WHERE DATE >= '2021-09-01' AND DATE <= '2021-09-30' AND COUNTRY IN ('US', 'CN') GROUP BY AD_SOURCE, APP, COUNTRY ORDER BY APP ASC;

Constructors

MediationReportSpec({DateRange? dateRange, List<MediationReportSpecDimensionFilter>? dimensionFilters, List<String>? dimensions, LocalizationSettings? localizationSettings, int? maxReportRows, List<String>? metrics, List<MediationReportSpecSortCondition>? sortConditions, String? timeZone})
MediationReportSpec.fromJson(Map json_)

Properties

dateRange DateRange?
The date range for which the report is generated.
getter/setter pair
dimensionFilters List<MediationReportSpecDimensionFilter>?
Describes which report rows to match based on their dimension values.
getter/setter pair
dimensions List<String>?
List of dimensions of the report.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
localizationSettings LocalizationSettings?
Localization settings of the report.
getter/setter pair
maxReportRows int?
Maximum number of report data rows to return.
getter/setter pair
metrics List<String>?
List of metrics of the report.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sortConditions List<MediationReportSpecSortCondition>?
Describes the sorting of report rows.
getter/setter pair
timeZone String?
A report time zone.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited