FastAdmobNativeAdService class

This class provides functionality to request native ads from AdMob.

Constructors

FastAdmobNativeAdService.new()
Get the singleton instance of FastAdmobNativeAdService.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

handleAdClicked(Ad ad) → void
Handles the ad click action.
handleAdImpression(dynamic ad) → void
Handles the ad impression action.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestAd(String adUnitID, {List<String>? keywords, String? country, List<String>? countryWhiteList}) Future<AdWithView?>
Requests a native ad with the specified parameters.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

countryWhiteList List<String>
A list of countries that are allowed for ad requests.
final

Constants

hardRequestLimit → const int
The hard limit (in milliseconds) after which a new ad request is allowed. default: 30 minutes.
maxCtrRatio → const double
The maximum click-through rate (CTR) ratio allowed (0.1 = 10% of clicks). default: 10%.
softRequestLimit → const int
The soft limit (in milliseconds) after which a new ad request is allowed. default: 300 milliseconds.
startWatchingClickThreshold → const int
The minimum number of impressions required before starting to watch clicks.