public interface CustomEventBannerListener extends CustomEventListener
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)
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 |
onClick()
Calling this method signals the mediation framework to report a click to the mediation server,
associated with this custom event.
|
void |
onReceivedAd(View view)
Calling this method signals the mediation framework that execution of the custom event has
completed successfully.
|
onDismissScreen, onFailedToReceiveAd, onLeaveApplication, onPresentScreen
void onReceivedAd(View view)
AdView
.
If the AdView
has an associated listener object, its
AdListener.onReceiveAd(com.google.ads.Ad)
will be called as well.
If neither this nor CustomEventListener.onFailedToReceiveAd()
is called within a certain time interval
after 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)
has been called, the mediation
framework will assume the custom event failed and will move on to the next ad network (or
custom event).
void onClick()
This method must not be called before onReceivedAd(android.view.View)
.