com.google.ads.mediation.customevent
Interface CustomEventInterstitialListener

All Superinterfaces:
CustomEventListener

public interface CustomEventInterstitialListener
extends CustomEventListener

A 'listener' object implementing this interface is passed to the CustomEventInterstitial.requestInterstitialAd(com.google.ads.mediation.customevent.CustomEventInterstitialListener, android.app.Activity, java.lang.String, java.lang.String, com.google.ads.mediation.MediationAdRequest) method. Calling the methods of this listener object can be used to report events to the mediation framework and control mediation behavior.


Method Summary
 void onReceivedAd()
          Calling this method signals the mediation framework that execution of the custom event has completed successfully.
 
Methods inherited from interface com.google.ads.mediation.customevent.CustomEventListener
onDismissScreen, onFailedToReceiveAd, onLeaveApplication, onPresentScreen
 

Method Detail

onReceivedAd

void onReceivedAd()
Calling this method signals the mediation framework that execution of the custom event has completed successfully. The mediation framework will stop mediation. If the 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) has been called, the mediation framework will assume the custom event failed and will move on to the next ad network (or custom event).

See Also:
CustomEventListener.onFailedToReceiveAd()