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 AdListener
ad
- the ad controlerror
- the errorpublic void onAdLoaded(Ad ad)
onAdLoaded
in interface AdListener
ad
- the ad controlpublic void onAdClicked(Ad ad)
onAdClicked
in interface AdListener
ad
- the ad controlpublic void onInterstitialDisplayed(Ad ad)
onInterstitialDisplayed
in interface InterstitialAdListener
ad
- the ad controlpublic void onInterstitialDismissed(Ad ad)
onInterstitialDismissed
in interface InterstitialAdListener
ad
- the ad controlpublic void onRewardedVideoCompleted()
RewardedVideoAdListener
onRewardedVideoCompleted
in interface RewardedVideoAdListener
public void onRewardedInterstitialCompleted()
RewardedInterstitialAdListener
onRewardedInterstitialCompleted
in interface RewardedInterstitialAdListener
public void onRewardedInterstitialClosed()
RewardedInterstitialAdListener
onRewardedInterstitialClosed
in interface RewardedInterstitialAdListener
public void onRewardedInterstitialActivityDestroyed()
RewardedInterstitialAdExtendedListener
onRewardedInterstitialActivityDestroyed
in interface RewardedInterstitialAdExtendedListener
public void onLoggingImpression(Ad ad)
onLoggingImpression
in interface AdListener
ad
- the ad controlpublic void onRewardedVideoClosed()
RewardedVideoAdListener
onRewardedVideoClosed
in interface RewardedVideoAdListener
public void onInterstitialActivityDestroyed()
InterstitialAdExtendedListener
onInterstitialActivityDestroyed
in interface InterstitialAdExtendedListener
public void onRewardedAdCompleted()
RewardedAdListener
onRewardedAdCompleted
in interface RewardedAdListener
public void onRewardedAdServerSucceeded()
RewardedAdListener
onRewardedAdServerSucceeded
in interface RewardedAdListener
public void onRewardedAdServerFailed()
RewardedAdListener
onRewardedAdServerFailed
in interface RewardedAdListener
public void onRewardedVideoActivityDestroyed()
RewardedVideoAdExtendedListener
onRewardedVideoActivityDestroyed
in interface RewardedVideoAdExtendedListener