com.google.ads.mediation.customevent
Interface CustomEventListener

All Known Subinterfaces:
CustomEventBannerListener, CustomEventInterstitialListener

public interface CustomEventListener

Contains the common methods of the CustomEventBannerListener and CustomEventInterstitialListener interfaces.


Method Summary
 void onDismissScreen()
          Calling this method signals the mediation framework that a full screen has been rendered and is now being dismissed.
 void onFailedToReceiveAd()
          Calling this method signals the mediation framework that execution of the custom event completed unsuccessfully.
 void onLeaveApplication()
          Calling this method signals the mediation framework that the custom event is causing a switch to a different application (such as a web browser).
 void onPresentScreen()
          Calling this method signals the mediation framework that a full screen is about to be rendered.
 

Method Detail

onFailedToReceiveAd

void onFailedToReceiveAd()
Calling this method signals the mediation framework that execution of the custom event completed unsuccessfully. The mediation framework will move on to the next ad network (or custom event).

If neither this nor onFailedToReceiveAd() is called within a certain time interval after the relevant request-ad method has been called (either CustomEventInterstitial.requestInterstitialAd(com.google.ads.mediation.customevent.CustomEventInterstitialListener, android.app.Activity, java.lang.String, java.lang.String, com.google.ads.mediation.MediationAdRequest) or CustomEventBanner.requestBannerAd(com.google.ads.mediation.customevent.CustomEventBannerListener, android.app.Activity, java.lang.String, java.lang.String, com.google.ads.AdSize, com.google.ads.mediation.MediationAdRequest)), the mediation framework will assume the custom event failed and will move on to the next ad network (or custom event).

See Also:
onFailedToReceiveAd()

onPresentScreen

void onPresentScreen()
Calling this method signals the mediation framework that a full screen is about to be rendered. This may be a new Activity or a precursor to switching to a different application.

Calling this method is optional. The only effect calling this method has on the mediation framework is to propagate the call to the AdListener.onPresentScreen(com.google.ads.Ad) method of the listener object associated with the corresponding Ad, if such a listener exists.


onDismissScreen

void onDismissScreen()
Calling this method signals the mediation framework that a full screen has been rendered and is now being dismissed.

Calling this method is optional. The only effect calling this method has on the mediation framework is to propagate the call to the AdListener.onDismissScreen(com.google.ads.Ad) method of the listener object associated with the corresponding Ad, if such a listener exists.


onLeaveApplication

void onLeaveApplication()
Calling this method signals the mediation framework that the custom event is causing a switch to a different application (such as a web browser).

Calling this method is optional. The only effect calling this method has on the mediation framework is to propagate the call to the AdListener.onLeaveApplication(com.google.ads.Ad) method of the listener object associated with the corresponding Ad, if such a listener exists.