MediationAdCallback

interface MediationAdCallback

Known direct subclasses
MediationAppOpenAdCallback

App Open ad callbacks for a mediation adapter to communicate back to the Google Mobile Ads SDK.

MediationBannerAdCallback

Banner ad callbacks for a mediation adapter to communicate back to the Google Mobile Ads SDK.

MediationInterstitialAdCallback

Interstitial ad callbacks for a mediation adapter to communicate back to the Google Mobile Ads SDK.

MediationNativeAdCallback

Native ad callbacks for a mediation adapter to communicate back to the Google Mobile Ads SDK.

MediationRewardedAdCallback

Rewarded ad callbacks for a mediation adapter to communicate back to the Google Mobile Ads SDK.


Ad callback 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 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

onAdClosed

fun onAdClosed(): Unit

Notifies the Google Mobile Ads SDK that the ad closed.

onAdOpened

fun onAdOpened(): Unit

Notifies the Google Mobile Ads SDK that the ad opened.

reportAdClicked

fun reportAdClicked(): Unit

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

reportAdImpression

fun reportAdImpression(): Unit

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