AdImpression constructor

AdImpression({
  1. required AdUnit unit,
  2. required String adSdkName,
  3. String? adNetwork,
  4. String? placement,
  5. String? testGroup,
  6. String? segmentName,
  7. String? instanceName,
  8. String? bundleId,
  9. Money? revenue,
})

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;