CustomEventInterstitialListener | Android Developers

Quicknav Quicknav
Links

- Google Play Developer Console
- Android Developers Blog
- About Android

Android Sites

- Android.com
- Android Developers
- Android Open Source Project

Language
close

- - About
  - Wear
  - TV
  - Auto
- - Get Started
  - Devices
  - Style
  - Patterns
  - Building Blocks
  - Downloads
  - Videos
- - Training
  - API Guides
  - Reference
  - Tools
  - Google Services
  - Samples
- - Google Play
  - Essentials
  - Get Users
  - Engage & Retain
  - Monetize
  - Tools & Reference
  - Developer Stories

## Results

Loading...
Summary: Methods | Inherited Methods | [Expand All]
public interface

# CustomEventInterstitialListener

implements CustomEventListener

com.google.android.gms.ads.mediation.customevent.CustomEventInterstitialListener

## Class Overview

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.

## Summary

Public Methods
abstract void | onAdLoaded() Indicates that an interstitial has been requested and successfully received.

[Expand] Inherited Methods
From interface com.google.android.gms.ads.mediation.customevent.CustomEventListener
abstract void | onAdClicked() Indicates that the user has clicked on this custom event.
abstract void | onAdClosed() Indicates that the custom event rendered something in full screen and is now transferring control back to the application.
abstract void | onAdFailedToLoad(int errorCode) Indicates that an custom event request has failed along with the underlying cause.
abstract void | onAdLeftApplication() Indicates that user interaction with the custom event is causing the device to switch to a different application (such as a web browser).
abstract void | onAdOpened() Indicates that the custom event is rendering something that is full screen.

## Public Methods

#### public abstract void onAdLoaded ()

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.