RewardedInterstitialAd class

Rewarded interstitials are full screen ads that reward users and can be shown without a user opt in.

This ad format is different than RewardedAd because rewarded ads require the user to opt-in to watching the video. This ad format is different than InterstitialAd because interstitial ads do not reward the user.

Because the video assets are so large, it's a good idea to start loading an ad well in advance of when it's likely to be needed.

Inheritance

Properties

adManagerRequest AdManagerAdRequest?
Targeting information used to fetch an Ad using Ad Manager.
final
adUnitId String
Identifies the source of Ads for your application.
finalinherited
fullScreenContentCallback FullScreenContentCallback<RewardedInterstitialAd>?
Callbacks to be invoked when ads show and dismiss full screen content.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onPaidEvent OnPaidEventCallback?
Callback to be invoked when an ad is estimated to have earned money. Available for allowlisted accounts only.
getter/setter pairinherited
onUserEarnedRewardCallback OnUserEarnedRewardCallback?
Callback for when the user earns a reward.
getter/setter pair
request AdRequest?
Targeting information used to fetch an Ad.
final
responseInfo ResponseInfo?
Contains information about the loaded request.
getter/setter pairinherited
rewardedInterstitialAdLoadCallback RewardedInterstitialAdLoadCallback
Callbacks for events that occur when attempting to load an ad.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Frees the plugin resources associated with this ad.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setImmersiveMode(bool immersiveModeEnabled) Future<void>
Sets whether this ad will be displayed in immersive mode (Android only).
inherited
setServerSideOptions(ServerSideVerificationOptions options) Future<void>
Set ServerSideVerificationOptions for the ad.
show({required OnUserEarnedRewardCallback onUserEarnedReward}) Future<void>
Display this on top of the application.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

load({required String adUnitId, required AdRequest request, required RewardedInterstitialAdLoadCallback rewardedInterstitialAdLoadCallback}) Future<void>
Loads a RewardedInterstitialAd using an AdRequest.
loadWithAdManagerAdRequest({required String adUnitId, required AdManagerAdRequest adManagerRequest, required RewardedInterstitialAdLoadCallback rewardedInterstitialAdLoadCallback}) Future<void>
Loads a RewardedInterstitialAd using an AdManagerAdRequest.