Millennial Media Android Ad SDK Public Documentation  6.3.1
Public Member Functions | List of all members
InterstitialAd.InterstitialListener Interface Reference

Public Member Functions

void onLoaded (InterstitialAd interstitialAd)
 
void onLoadFailed (InterstitialAd interstitialAd, InterstitialErrorStatus errorStatus)
 
void onShown (InterstitialAd interstitialAd)
 
void onShowFailed (InterstitialAd interstitialAd, InterstitialErrorStatus errorStatus)
 
void onClosed (InterstitialAd interstitialAd)
 
void onClicked (InterstitialAd interstitialAd)
 
void onAdLeftApplication (InterstitialAd interstitialAd)
 
void onExpired (InterstitialAd interstitialAd)
 

Detailed Description

Interface that defines the callbacks to be invoked when InterstitialAd events occur.

Member Function Documentation

void onAdLeftApplication ( InterstitialAd  interstitialAd)

Called when the InterstitialAd causes the active context to leave the application. For example clicking on a link and launching a browser.

Parameters
interstitialAdthe InterstitialAd that caused the context switch
void onClicked ( InterstitialAd  interstitialAd)

Called when the InterstitialAd has been clicked.

Parameters
interstitialAdthe InterstitialAd that the click event occurred on
void onClosed ( InterstitialAd  interstitialAd)

Called when the InterstitialAd has been closed.

Parameters
interstitialAdthe InterstitialAd that the close event occurred on
void onExpired ( InterstitialAd  interstitialAd)

Call when the InterstitialAd has expired and needs to be reloaded.

Parameters
interstitialAdthe InterstitialAd that the expire event occurred on
void onLoaded ( InterstitialAd  interstitialAd)

Called when the InterstitialAd has successfully loaded new ad content and is ready to be shown.

Parameters
interstitialAdthe InterstitialAd that the successful load event occurred on
void onLoadFailed ( InterstitialAd  interstitialAd,
InterstitialErrorStatus  errorStatus 
)

Called when the InterstitialAd has failed to load new ad content.

An InterstitialErrorStatus instance provides detail about the error.

Parameters
interstitialAdthe InterstitialAd that the failure event occurred on
errorStatusthe InterstitialErrorStatus that describes the cause of the failure
void onShowFailed ( InterstitialAd  interstitialAd,
InterstitialErrorStatus  errorStatus 
)

Called when the InterstitialAd could not be shown.

Parameters
interstitialAdthe InterstitialAd that the show failure event occurred on
errorStatusthe InterstitialErrorStatus that describes the cause of the failure
void onShown ( InterstitialAd  interstitialAd)

Called when the InterstitialAd has been displayed.

Parameters
interstitialAdthe InterstitialAd that show event occurred on