CustomEventInterstitialListener
This interface is deprecated.
Use Adapter
and
MediationAdLoadCallback
instead.
A custom event interstitial listener. Custom events that implement
CustomEventInterstitial
should use this listener to send callbacks to the
mediation library to properly manage ad flow.
Public Method Summary
abstract void |
onAdLoaded()
Indicates that an interstitial has been requested and successfully received.
|
Public Methods
public abstract void onAdLoaded ()
Indicates that an interstitial has been requested and successfully received.
Interstitials must wait for a
CustomEventInterstitial.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,
CustomEventInterstitial.showInterstitial()
should open the interstitial.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["`CustomEventInterstitialListener` is deprecated; use `Adapter` and `MediationAdLoadCallback` instead for interstitial ad implementations."],["This listener is used by custom events implementing `CustomEventInterstitial` to manage ad flow by sending callbacks to the mediation library."],["The `onAdLoaded()` method signals that an interstitial ad request was successful, but the ad must wait for a `showInterstitial()` call to be displayed."],["Custom events must report success or failure after an interstitial ad request; otherwise, the mediation library might switch to a different adapter."],["After `onAdLoaded()` is called, the custom event's `showInterstitial()` method should be responsible for displaying the interstitial until the adapter is destroyed."]]],["The `CustomEventInterstitialListener` interface, now deprecated, was used by custom events to manage ad flow through callbacks to the mediation library. Key actions include reporting when an interstitial ad is successfully loaded via `onAdLoaded()` and indicating ad interactions like clicks (`onAdClicked`), closures (`onAdClosed`), and failures (`onAdFailedToLoad`). It also handled events when the user switched applications (`onAdLeftApplication`) or when the ad opened in full screen (`onAdOpened`). The interface is replaced by `Adapter` and `MediationAdLoadCallback`.\n"]]