Android SDK Version
  • java.lang.Object
    • com.facebook.ads.AbstractAdListener
All Implemented Interfaces:

public abstract class AbstractAdListener
extends java.lang.Object
implements AdListener, InterstitialAdListener
AbstractAdListener implements AdListener and InterstitialAdListener. 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
Constructor Summary
Constructor and Description
AbstractAdListener() 
Method Summary
Modifier and TypeMethod and Description
voidonAdClicked(Ad ad)
Called when the ad control is clicked and user is redirected to the link in the ad.
voidonAdLoaded(Ad ad)
Called when the ad control has loaded an ad.
voidonError(Ad ad, AdError error)
Called when an error happened while the ad control is attempting to load an ad.
voidonInterstitialDismissed(Ad ad)
Called when the interstitial ad control is dismissed.
voidonInterstitialDisplayed(Ad ad)
Called when the interstitial ad control is displayed.
voidonLoggingImpression(Ad ad)
Called immediately before an impression is logged.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

AbstractAdListener

public AbstractAdListener()
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 control
error - the error
Since:
4.6

onAdLoaded

public void onAdLoaded(Ad ad)
Called when the ad control has loaded an ad.
Specified by:
onAdLoaded in interface AdListener
Parameters:
ad - the ad control
Since:
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.
Specified by:
onAdClicked in interface AdListener
Parameters:
ad - the ad control
Since:
4.6

onInterstitialDisplayed

public void onInterstitialDisplayed(Ad ad)
Called when the interstitial ad control is displayed.
Specified by:
Parameters:
ad - the ad control
Since:
4.6

onInterstitialDismissed

public void onInterstitialDismissed(Ad ad)
Called when the interstitial ad control is dismissed.
Specified by:
Parameters:
ad - the ad control
Since:
4.6

onLoggingImpression

public void onLoggingImpression(Ad ad)
Called immediately before an impression is logged.
Specified by:
Parameters:
ad - the ad control
Since:
4.6