logAdImpression static method
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,
});
}