public interface CustomEventInterstitialListener extends CustomEventListener
CustomEventInterstitial.requestInterstitialAd(com.google.ads.mediation.customevent.CustomEventInterstitialListener, android.app.Activity, java.lang.String, java.lang.String, com.google.ads.mediation.MediationAdRequest, java.lang.Object)
method. Calling the methods of this
listener object can be used to report events to the mediation framework and control mediation
behavior.Modifier and Type | Method and Description |
---|---|
void |
onReceivedAd()
Calling this method signals the mediation framework that execution of the custom event has
completed successfully.
|
onDismissScreen, onFailedToReceiveAd, onLeaveApplication, onPresentScreen
void onReceivedAd()
InterstitialAd
has an associated listener object, its
AdListener.onReceiveAd(com.google.ads.Ad)
will be called as well. Afterwards, calling the
InterstitialAd.show()
method would cause the mediation framework to call
The custom event CustomEventInterstitial.showInterstitial()
method.
If neither this nor CustomEventListener.onFailedToReceiveAd()
is called within a certain time interval
after CustomEventInterstitial.requestInterstitialAd(com.google.ads.mediation.customevent.CustomEventInterstitialListener, android.app.Activity, java.lang.String, java.lang.String, com.google.ads.mediation.MediationAdRequest, java.lang.Object)
has been called, the mediation
framework will assume the custom event failed and will move on to the next ad network (or
custom event).