CustomEventInterstitialListener

interface CustomEventInterstitialListener : CustomEventListener


A custom event interstitial listener. Custom events that implement should use this listener to send callbacks to the mediation library to properly manage ad flow.

Summary

Public functions

Unit

Indicates that an interstitial has been requested and successfully received.

Inherited functions

From com.google.android.gms.ads.mediation.customevent.CustomEventListener
Unit

Indicates that the user has clicked on this custom event.

Unit

Indicates that the custom event rendered something in full screen and is now transferring control back to the application.

Unit

Indicates that a custom event request has failed along with the underlying cause.

Unit
onAdFailedToLoad(errorCode: Int)

This function is deprecated.

Use onAdFailedToLoad instead.

Unit

Indicates that user interaction with the custom event is causing the device to switch to a different application (such as a web browser).

Unit

Indicates that the custom event is rendering something that is full screen.

Public functions

onAdLoaded

fun onAdLoaded(): Unit

Indicates that an interstitial has been requested and successfully received. Interstitials must wait for a showInterstitial call.

Once an interstitial is requested, the custom event must report either success or failure. If no response is received within a time limit, the mediation library may move on to another adapter, resulting in a potentially successful interstitial not being shown.

From the point when this method is called until the adapter is destroyed, showInterstitial should open the interstitial.