com.google.ads.mediation.customevent
Interface CustomEventBannerListener

All Superinterfaces:
CustomEventListener

public interface CustomEventBannerListener
extends CustomEventListener

A 'listener' object implementing this interface is passed to the 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) 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 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.
 
Methods inherited from interface com.google.ads.mediation.customevent.CustomEventListener
onDismissScreen, onFailedToReceiveAd, onLeaveApplication, onPresentScreen
 

Method Detail

onReceivedAd

void onReceivedAd(View view)
Calling this method signals the mediation framework that execution of the custom event has completed successfully. The mediation framework will stop mediation and present the passed 'view' argument in the corresponding 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) 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()

onClick

void onClick()
Calling this method signals the mediation framework to report a click to the mediation server, associated with this custom event.

This method must not be called before onReceivedAd(android.view.View).