AdImpression.fromString constructor

AdImpression.fromString({
  1. required String adUnit,
  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 a string ad unit.

adUnit - The format of the ad (e.g., "banner", "interstitial"). 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.fromString({
  required this.adUnit,
  required this.adSdkName,
  this.adNetwork,
  this.placement,
  this.testGroup,
  this.segmentName,
  this.instanceName,
  this.bundleId,
  this.revenue,
});