public interface CustomEventListener
CustomEventBannerListener
and CustomEventInterstitialListener
interfaces.Modifier and Type | Method and Description |
---|---|
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.
|
void onFailedToReceiveAd()
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, java.lang.Object)
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, java.lang.Object)
),
the mediation framework will assume the custom event failed and will move on to the next
ad network (or custom event).
onFailedToReceiveAd()
void onPresentScreen()
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.
void onDismissScreen()
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.
void onLeaveApplication()
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.