UNPKG

ironsource-mediation

Version:

IronSource ad mediation React-Native plugin. Monetize apps with rewarded video, interstitial, banner, and native ads.

65 lines (64 loc) 2.16 kB
import type { LevelPlayAdError } from "../LevelPlayAdError"; import type { LevelPlayAdInfo } from "../LevelPlayAdInfo"; /** * Interface for handling LevelPlayInterstitialAd events */ export interface LevelPlayInterstitialAdListener { /** * Invoked each time a interstitial was loaded. * [adInfo] includes information about the loaded ad * * Android: onAdLoaded * iOS: didLoadAdWithAdInfo */ onAdLoaded: (adInfo: LevelPlayAdInfo) => void; /** * Invoked when the intertstitial loading process has failed. * [error] includes information about the error * * Android: onAdLoadFailed * iOS: didFailToLoadAdWithAdUnitId */ onAdLoadFailed: (error: LevelPlayAdError) => void; /** * Triggered when ad was reloaded and ad info updated. * [adInfo] includes information about the loaded ad * * Android: onAdInfoChanged * iOS: didChangeAdInfo */ onAdInfoChanged?: (adInfo: LevelPlayAdInfo) => void; /** * Triggered when an interstitial ad is displayed. * [adInfo] includes information about the loaded ad * * Android: onAdDisplayed * iOS: didDisplayAdWithAdInfo */ onAdDisplayed: (adInfo: LevelPlayAdInfo) => void; /** * Triggered when an interstitial ad fails to show. * [adInfo] includes information about the loaded ad * [error] includes information about the error * * Android: onAdDisplayFailed * iOS: didFailToDisplayAdWithAdInfo */ onAdDisplayFailed?: (error: LevelPlayAdError, adInfo: LevelPlayAdInfo) => void; /** * Invoked when end user clicks on the interstitial ad. * [adInfo] includes information about the loaded ad * * Android: onAdClicked * iOS: didClickWithAdInfo */ onAdClicked?: (adInfo: LevelPlayAdInfo) => void; /** * Triggered when an interstitial ad is closed. * [adInfo] includes information about the loaded ad * * Android: onAdClosed * iOS: didCloseAdWithAdInfo */ onAdClosed?: (adInfo: LevelPlayAdInfo) => void; }