AdImpression.fromString constructor
AdImpression.fromString({})
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,
});