Android SDK Version
- AbstractAdListener
- Ad
- Ad.LoadAdConfig
- Ad.LoadConfigBuilder
- AdError
- AdExperienceType
- AdListener
- AdOptionsView
- AdOptionsView.Orientation
- AdSDKNotificationListener
- AdSDKNotificationListener.SDKEventKey
- AdSDKNotificationListener.SDKEventType
- AdSDKNotificationManager
- AdSettings
- AdSettings.IntegrationErrorMode
- AdSettings.TestAdType
- AdSize
- AdView
- AdView.AdViewLoadConfig
- AdView.AdViewLoadConfigBuilder
- AudienceNetworkActivity
- AudienceNetworkAds
- AudienceNetworkAds.AdFormat
- AudienceNetworkAds.InitListener
- AudienceNetworkAds.InitResult
- AudienceNetworkAds.InitSettingsBuilder
- AudienceNetworkContentProvider
- BidderTokenProvider
- CacheFlag
- DefaultMediaViewVideoRenderer
- ExtraHints
- ExtraHints.Builder
- ExtraHints.HintType
- ExtraHints.Keyword
- FullScreenAd
- FullScreenAd.ShowAdConfig
- FullScreenAd.ShowConfigBuilder
- InterstitialAd
- InterstitialAd.InterstitialAdLoadConfigBuilder
- InterstitialAd.InterstitialAdShowConfigBuilder
- InterstitialAd.InterstitialLoadAdConfig
- InterstitialAd.InterstitialShowAdConfig
- InterstitialAdExtendedListener
- InterstitialAdListener
- MediaView
- MediaViewListener
- MediaViewVideoRenderer
- MediaViewVideoRendererWithBackgroundPlayback
- NativeAd
- NativeAd.AdCreativeType
- NativeAdBase
- NativeAdBase.Image
- NativeAdBase.MediaCacheFlag
- NativeAdBase.NativeAdLoadConfigBuilder
- NativeAdBase.NativeComponentTag
- NativeAdBase.NativeLoadAdConfig
- NativeAdBase.Rating
- NativeAdLayout
- NativeAdListener
- NativeAdScrollView
- NativeAdScrollView.AdViewProvider
- NativeAdsManager
- NativeAdsManager.Listener
- NativeAdView
- NativeAdView.Type
- NativeAdViewAttributes
- NativeBannerAd
- NativeBannerAdView
- NativeBannerAdView.Type
- RewardData
- RewardedAdListener
- RewardedInterstitialAd
- RewardedInterstitialAd.RewardedInterstitialAdLoadConfigBuilder
- RewardedInterstitialAd.RewardedInterstitialAdShowConfigBuilder
- RewardedInterstitialAd.RewardedInterstitialLoadAdConfig
- RewardedInterstitialAd.RewardedInterstitialShowAdConfig
- RewardedInterstitialAdExtendedListener
- RewardedInterstitialAdListener
- RewardedVideoAd
- RewardedVideoAd.RewardedVideoAdLoadConfigBuilder
- RewardedVideoAd.RewardedVideoAdShowConfigBuilder
- RewardedVideoAd.RewardedVideoLoadAdConfig
- RewardedVideoAd.RewardedVideoShowAdConfig
- RewardedVideoAdExtendedListener
- RewardedVideoAdListener
- S2SRewardedInterstitialAdExtendedListener
- S2SRewardedInterstitialAdListener
- S2SRewardedVideoAdExtendedListener
- S2SRewardedVideoAdListener
- VideoAutoplayBehavior
- VideoStartReason
- java.lang.Object
- com.facebook.ads.AbstractAdListener
All Implemented Interfaces:
public class AbstractAdListener extends java.lang.Object implements InterstitialAdExtendedListener, RewardedVideoAdExtendedListener, RewardedInterstitialAdExtendedListener
AbstractAdListener implements
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.
Since:
4.6
Method Summary
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. |
Method Detail
onError
public void onError(Ad ad, AdError error)
Called when an error happened while the ad control is attempting to load an ad.
Specified by:
onError
in interface AdListener
Parameters:
ad
- the ad controlerror
- the errorSince:
4.6
onAdClicked
public void onAdClicked(Ad ad)
Called when the ad control is clicked and user is redirected to the link in the ad.
onInterstitialDisplayed
public void onInterstitialDisplayed(Ad ad)
Called when the interstitial ad control is displayed.
Specified by:
onInterstitialDisplayed
in interface InterstitialAdListener
Parameters:
ad
- the ad controlSince:
4.6
onInterstitialDismissed
public void onInterstitialDismissed(Ad ad)
Called when the interstitial ad control is dismissed.
Specified by:
onInterstitialDismissed
in interface InterstitialAdListener
Parameters:
ad
- the ad controlSince:
4.6
onRewardedVideoCompleted
public void onRewardedVideoCompleted()
Description copied from interface:
RewardedVideoAdListener
Called immediately after the rewarded video was completed.
onRewardedInterstitialCompleted
public void onRewardedInterstitialCompleted()
Description copied from interface:
RewardedInterstitialAdListener
Called immediately after the rewarded interstitial was completed.
onRewardedInterstitialClosed
public void onRewardedInterstitialClosed()
Description copied from interface:
RewardedInterstitialAdListener
Called immediately after the user clicks the close button.
onRewardedInterstitialActivityDestroyed
public void onRewardedInterstitialActivityDestroyed()
Description copied from interface:
RewardedInterstitialAdExtendedListener
Called when the Rewarded Interstitial activity is destroyed. This callback will only be called if the activity has been destroyed without being properly closed. This can happen if an app with launchMode:singleTask (such as a Unity game) goes to background and then relaunched by tapping the icon.
Specified by:
Since:
6.7
onLoggingImpression
public void onLoggingImpression(Ad ad)
Called immediately before an impression is logged.
onRewardedVideoClosed
public void onRewardedVideoClosed()
Description copied from interface:
RewardedVideoAdListener
Called immediately after the user click the close button.
onInterstitialActivityDestroyed
public void onInterstitialActivityDestroyed()
Description copied from interface:
InterstitialAdExtendedListener
Called when the Interstitial activity is destroyed. This callback will only be called if the activity has been destroyed without being properly closed. This can happen if an app with launchMode:singleTask (such as a Unity game) goes to background and then relaunched by tapping the icon.
onRewardedAdCompleted
public void onRewardedAdCompleted()
Description copied from interface:
RewardedAdListener
Called when the reward criteria for any ad is satisfied on client.
onRewardedAdServerSucceeded
public void onRewardedAdServerSucceeded()
Description copied from interface:
RewardedAdListener
Called when the reward criteria for any ad is satisfied from server url, if used.
onRewardedAdServerFailed
public void onRewardedAdServerFailed()
Description copied from interface:
RewardedAdListener
Called when the reward criteria for any ad fails from server url, if used.
onRewardedVideoActivityDestroyed
public void onRewardedVideoActivityDestroyed()
Description copied from interface:
RewardedVideoAdExtendedListener
Called when the Rewarded Video activity is destroyed. This callback will only be called if the activity has been destroyed without being properly closed. This can happen if an app with launchMode:singleTask (such as a Unity game) goes to background and then relaunched by tapping the icon.