MediationInterstitialAdCallback

interface MediationInterstitialAdCallback : MediationAdCallback


Interstitial ad callbacks for a mediation adapter to communicate back to the Google Mobile Ads SDK. Mediation adapters must send these callbacks so that they can be forwarded to the publisher.

Summary

Public functions

Unit

Notifies the Google Mobile Ads SDK that the interstitial ad failed to show.

Unit
onAdFailedToShow(errorDescription: String!)

This function is deprecated.

Use onAdFailedToShow instead.

Unit

Notifies the Google Mobile Ads SDK that the ad has caused the user to leave the application (for example, opened a browser).

Inherited functions

From com.google.android.gms.ads.mediation.MediationAdCallback
Unit

Notifies the Google Mobile Ads SDK that the ad closed.

Unit

Notifies the Google Mobile Ads SDK that the ad opened.

Unit

Notifies the Google Mobile Ads SDK that the ad has been clicked.

Unit

Notifies the Google Mobile Ads SDK that an impression occurred on the ad.

Public functions

onAdFailedToShow

fun onAdFailedToShow(adError: AdError): Unit

Notifies the Google Mobile Ads SDK that the interstitial ad failed to show.

Parameters
adError: AdError

AdError detailing the cause of the failure.

onAdFailedToShow

fun onAdFailedToShow(errorDescription: String!): Unit

Notifies the Google Mobile Ads SDK that the interstitial ad failed to show.

Parameters
errorDescription: String!

An error message that describes the failure reason.

onAdLeftApplication

fun onAdLeftApplication(): Unit

Notifies the Google Mobile Ads SDK that the ad has caused the user to leave the application (for example, opened a browser).