logAdImpression static method

Future<void> logAdImpression({
  1. String? provider,
  2. String? format,
})

This event signifies when a user sees an ad impression

format: The ad format. (e.g Banner, Native, Rewarded)

provider: The ad provider. (e. g. MoPub, AdMob)

Implementation

static Future<void> logAdImpression({
  String? provider,
  String? format,
}) {
  return logEvent(name: 'ad_impression', params: {
    'format': format,
    'provider': provider,
  });
}