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.
| abstract Bundle |
getAdMetadata()
Gets all available ad metadata for this
RewardedInterstitialAd.
|
| abstract String |
getAdUnitId()
Returns the ad unit ID.
|
| abstract FullScreenContentCallback |
getFullScreenContentCallback()
Gets the
FullScreenContentCallback
for this
RewardedInterstitialAd.
|
| abstract OnAdMetadataChangedListener |
getOnAdMetadataChangedListener()
Gets the
OnAdMetadataChangedListener for this
RewardedInterstitialAd.
|
| abstract OnPaidEventListener |
getOnPaidEventListener()
Gets the
OnPaidEventListener
for this
RewardedInterstitialAd.
|
| abstract ResponseInfo |
getResponseInfo()
Returns information about the loaded ad.
|
| abstract RewardItem |
getRewardItem()
Gets reward item for the loaded rewarded interstitial ad.
|
| static void |
load(Context
context, String adUnitId,
AdRequest
adRequest,
RewardedInterstitialAdLoadCallback loadCallback)
Loads a
RewardedInterstitialAd.
|
| static void |
load(Context
context, String adUnitId,
AdManagerAdRequest adManagerAdRequest,
RewardedInterstitialAdLoadCallback loadCallback)
Loads a
RewardedInterstitialAd.
|
| abstract void |
setFullScreenContentCallback(FullScreenContentCallback
fullScreenContentCallback)
Registers a callback to be invoked when ads show and dismiss full screen
content.
|
| abstract void |
setImmersiveMode(boolean immersiveModeEnabled)
Sets a flag that controls if this rewarded interstitial ad object will be
displayed in immersive mode.
|
| abstract void |
setOnAdMetadataChangedListener(OnAdMetadataChangedListener
listener)
Registers a callback to be invoked when the rewarded interstitial ad's metadata
changes.
|
| abstract void |
setOnPaidEventListener(OnPaidEventListener
listener)
Registers a callback to be invoked when this ad is estimated to have earned
money.
|
| abstract void |
setServerSideVerificationOptions(ServerSideVerificationOptions
options)
Sets
ServerSideVerificationOptions for this rewarded interstitial ad.
|
| abstract void |
show(Activity
activity, OnUserEarnedRewardListener
onUserEarnedRewardListener)
Shows the rewarded interstitial ad.
|
Gets all available ad metadata for this
RewardedInterstitialAd. Ad metadata is empty if the ad doesn't have
metadata. Ad metadata may update. Use
OnAdMetadataChangedListener.onAdMetadataChanged() to listen for changes.
Returns the ad unit ID.
Gets the FullScreenContentCallback
for this
RewardedInterstitialAd.
Gets the
OnAdMetadataChangedListener for this
RewardedInterstitialAd.
Gets the OnPaidEventListener
for this
RewardedInterstitialAd.
Returns information about the loaded ad.
Gets reward item for the loaded rewarded interstitial ad.
Loads a
RewardedInterstitialAd.
| context | The context. |
|---|---|
| adUnitId | The ad unit ID. |
| adRequest | An ad request with targeting information. |
| loadCallback | A callback to be invoked when a rewarded interstitial ad finishes loading. |
Loads a
RewardedInterstitialAd.
| context | The context. |
|---|---|
| adUnitId | The ad unit ID. |
| adManagerAdRequest | A Google Ad Manager ad request with targeting information. |
| loadCallback | A callback to be invoked when a rewarded interstitial ad finishes loading. |
Registers a callback to be invoked when ads show and dismiss full screen content.
Sets a flag that controls if this rewarded interstitial ad object will be displayed
in immersive mode. Call this method before
show(Activity, OnUserEarnedRewardListener). During
show(Activity, OnUserEarnedRewardListener), if this flag is on and immersive
mode is supported, SYSTEM_UI_FLAG_IMMERSIVE_STICKY & SYSTEM_UI_FLAG_HIDE_NAVIGATION
will be turned on for the rewarded ad.
Registers a callback to be invoked when the rewarded interstitial ad's metadata changes.
Registers a callback to be invoked when this ad is estimated to have earned money.
Sets
ServerSideVerificationOptions for this rewarded interstitial ad.
Shows the rewarded interstitial ad.
| activity | The activity from which the rewarded ad should be shown. |
|---|---|
| onUserEarnedRewardListener | The listener to be notified when user earns a reward. |