public interface MediationInterstitialListener
Modifier and Type | Method and Description |
---|---|
void |
onDismissScreen(MediationInterstitialAdapter<?,?> adapter)
Indicates that the ad control rendered something in full screen and is now transferring
control back to the application.
|
void |
onFailedToReceiveAd(MediationInterstitialAdapter<?,?> adapter,
AdRequest.ErrorCode error)
Indicates that an ad request has failed along with the underlying cause.
|
void |
onLeaveApplication(MediationInterstitialAdapter<?,?> adapter)
Indicates that the ad is causing the device to switch to a different application (such as a
web browser).
|
void |
onPresentScreen(MediationInterstitialAdapter<?,?> adapter)
Indicates that the ad control is rendering something that is full screen.
|
void |
onReceivedAd(MediationInterstitialAdapter<?,?> adapter)
Indicates that an ad has been requested and successfully received.
|
void onReceivedAd(MediationInterstitialAdapter<?,?> adapter)
InterstitialAd.show()
call.
Once an ad is requested, the adapter must report either success or failure. If no response is heard within a time limit, the mediation library may move on to another adapter, resulting in a potentially successful ad not being shown.
From the point when this method is called until the adapter is destroyed,
MediationInterstitialAdapter.showInterstitial()
should open the interstitial.
adapter
- The mediation adapter which raised the event.onFailedToReceiveAd(MediationInterstitialAdapter, AdRequest.ErrorCode)
void onFailedToReceiveAd(MediationInterstitialAdapter<?,?> adapter, AdRequest.ErrorCode error)
Once an ad is requested, the adapter must report either success or failure. If no response is heard within a time limit, the mediation library may move on to another adapter, resulting in a potentially successful ad not being shown.
adapter
- The mediation adapter which raised the event.error
- An error code detailing the cause of the failure.onReceivedAd(MediationInterstitialAdapter)
void onPresentScreen(MediationInterstitialAdapter<?,?> adapter)
Activity
, or it may be a precursor to switching to a different application.
Once this screen is dismissed, onDismissScreen(MediationInterstitialAdapter)
must
be called.
adapter
- The mediation adapter which raised the event.void onDismissScreen(MediationInterstitialAdapter<?,?> adapter)
adapter
- The mediation adapter which raised the event.onPresentScreen(MediationInterstitialAdapter)
void onLeaveApplication(MediationInterstitialAdapter<?,?> adapter)
adapter
- The mediation adapter which raised the event.