public class AbstractAdListener extends java.lang.Object implements InterstitialAdExtendedListener, RewardedVideoAdExtendedListener, RewardedInterstitialAdExtendedListener
AdListener, InterstitialAdExtendedListener, RewardedVideoAdExtendedListener and RewardedInterstitialAdExtendedListener. The default implementation is to do
nothing.
Instead of implementing all methods in those interfaces, client only overrides the methods handling desired events.
| Constructor and Description |
|---|
AbstractAdListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAdClicked(Ad ad)
Called when the ad control is clicked and user is redirected to the link in the ad.
|
void |
onAdLoaded(Ad ad)
Called when the ad control has loaded an ad.
|
void |
onError(Ad ad,
AdError error)
Called when an error happened while the ad control is attempting to load an ad.
|
void |
onInterstitialActivityDestroyed()
Called when the Interstitial activity is destroyed.
|
void |
onInterstitialDismissed(Ad ad)
Called when the interstitial ad control is dismissed.
|
void |
onInterstitialDisplayed(Ad ad)
Called when the interstitial ad control is displayed.
|
void |
onLoggingImpression(Ad ad)
Called immediately before an impression is logged.
|
void |
onRewardedAdCompleted()
Called when the reward criteria for any ad is satisfied on client.
|
void |
onRewardedAdServerFailed()
Called when the reward criteria for any ad fails from server url, if used.
|
void |
onRewardedAdServerSucceeded()
Called when the reward criteria for any ad is satisfied from server url, if used.
|
void |
onRewardedInterstitialActivityDestroyed()
Called when the Rewarded Interstitial activity is destroyed.
|
void |
onRewardedInterstitialClosed()
Called immediately after the user clicks the close button.
|
void |
onRewardedInterstitialCompleted()
Called immediately after the rewarded interstitial was completed.
|
void |
onRewardedVideoActivityDestroyed()
Called when the Rewarded Video activity is destroyed.
|
void |
onRewardedVideoClosed()
Called immediately after the user click the close button.
|
void |
onRewardedVideoCompleted()
Called immediately after the rewarded video was completed.
|
public void onError(Ad ad, AdError error)
onError in interface AdListenerad - the ad controlerror - the errorpublic void onAdLoaded(Ad ad)
onAdLoaded in interface AdListenerad - the ad controlpublic void onAdClicked(Ad ad)
onAdClicked in interface AdListenerad - the ad controlpublic void onInterstitialDisplayed(Ad ad)
onInterstitialDisplayed in interface InterstitialAdListenerad - the ad controlpublic void onInterstitialDismissed(Ad ad)
onInterstitialDismissed in interface InterstitialAdListenerad - the ad controlpublic void onRewardedVideoCompleted()
RewardedVideoAdListeneronRewardedVideoCompleted in interface RewardedVideoAdListenerpublic void onRewardedInterstitialCompleted()
RewardedInterstitialAdListeneronRewardedInterstitialCompleted in interface RewardedInterstitialAdListenerpublic void onRewardedInterstitialClosed()
RewardedInterstitialAdListeneronRewardedInterstitialClosed in interface RewardedInterstitialAdListenerpublic void onRewardedInterstitialActivityDestroyed()
RewardedInterstitialAdExtendedListeneronRewardedInterstitialActivityDestroyed in interface RewardedInterstitialAdExtendedListenerpublic void onLoggingImpression(Ad ad)
onLoggingImpression in interface AdListenerad - the ad controlpublic void onRewardedVideoClosed()
RewardedVideoAdListeneronRewardedVideoClosed in interface RewardedVideoAdListenerpublic void onInterstitialActivityDestroyed()
InterstitialAdExtendedListeneronInterstitialActivityDestroyed in interface InterstitialAdExtendedListenerpublic void onRewardedAdCompleted()
RewardedAdListeneronRewardedAdCompleted in interface RewardedAdListenerpublic void onRewardedAdServerSucceeded()
RewardedAdListeneronRewardedAdServerSucceeded in interface RewardedAdListenerpublic void onRewardedAdServerFailed()
RewardedAdListeneronRewardedAdServerFailed in interface RewardedAdListenerpublic void onRewardedVideoActivityDestroyed()
RewardedVideoAdExtendedListeneronRewardedVideoActivityDestroyed in interface RewardedVideoAdExtendedListener