AdImpression constructor
AdImpression({})
Creates an AdImpression with an AdUnit enum value.
unit - The ad unit type.
adSdkName - The SDK name (e.g., "admob", "ironsource").
adNetwork - The name of the ad network which provided the ad.
placement - The placement of the ad.
testGroup - The test group of the user if A/B testing.
segmentName - The name of the segment of the ad.
instanceName - The name of the instance of the ad.
bundleId - The bundle ID of the advertised app.
revenue - The amount of revenue this ad generated.
Implementation
AdImpression({
required AdUnit unit,
required this.adSdkName,
this.adNetwork,
this.placement,
this.testGroup,
this.segmentName,
this.instanceName,
this.bundleId,
this.revenue,
}) : adUnit = unit.value;