MediationNativeAdCallback

interface MediationNativeAdCallback : MediationAdCallback


Native 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 ad has caused the user to leave the application (for example, opened a browser).

Unit

Notifies the Google Mobile Ads SDK that a video ad has completed playing.

Unit

Notifies the Google Mobile Ads SDK that a video ad is muted.

Unit

Notifies the Google Mobile Ads SDK that a video ad is paused.

Unit

Notifies the Google Mobile Ads SDK that a video ad is playing.

Unit

Notifies the Google Mobile Ads SDK that a video ad is unmuted.

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

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).

onVideoComplete

fun onVideoComplete(): Unit

Notifies the Google Mobile Ads SDK that a video ad has completed playing.

onVideoMute

fun onVideoMute(): Unit

Notifies the Google Mobile Ads SDK that a video ad is muted.

onVideoPause

fun onVideoPause(): Unit

Notifies the Google Mobile Ads SDK that a video ad is paused.

onVideoPlay

fun onVideoPlay(): Unit

Notifies the Google Mobile Ads SDK that a video ad is playing.

onVideoUnmute

fun onVideoUnmute(): Unit

Notifies the Google Mobile Ads SDK that a video ad is unmuted.