FullScreenContentCallback

public abstract class FullScreenContentCallback


Callback to be invoked when ads show and dismiss full screen content, such as a fullscreen ad experience or an in-app browser.

Summary

Constants

static final int

Error code that indicates the ad has already been shown.

static final int

Error code that indicates the ad can not be shown when app is not in the foreground.

static final int

Error code that indicates something unexpected happened internally.

static final int

Error code that indicates a mediation adapter failed to show the ad.

static final int

Error code that indicates the ad is not ready.

Public constructors

Public methods

void

Called when a click is recorded for an ad.

void

Called when the ad dismissed full screen content.

void

Called when the ad failed to show full screen content.

void

Called when an impression is recorded for an ad.

void

Called when the ad showed the full screen content.

Constants

ERROR_CODE_AD_REUSED

public static final int ERROR_CODE_AD_REUSED = 1

Error code that indicates the ad has already been shown.

ERROR_CODE_APP_NOT_FOREGROUND

public static final int ERROR_CODE_APP_NOT_FOREGROUND = 3

Error code that indicates the ad can not be shown when app is not in the foreground.

ERROR_CODE_INTERNAL_ERROR

public static final int ERROR_CODE_INTERNAL_ERROR = 0

Error code that indicates something unexpected happened internally.

ERROR_CODE_MEDIATION_SHOW_ERROR

public static final int ERROR_CODE_MEDIATION_SHOW_ERROR = 4

Error code that indicates a mediation adapter failed to show the ad. If this error is returned from getCode, check getCause for the underlying cause.

ERROR_CODE_NOT_READY

public static final int ERROR_CODE_NOT_READY = 2

Error code that indicates the ad is not ready.

Public constructors

FullScreenContentCallback

public FullScreenContentCallback()

Public methods

onAdClicked

public void onAdClicked()

Called when a click is recorded for an ad.

onAdDismissedFullScreenContent

public void onAdDismissedFullScreenContent()

Called when the ad dismissed full screen content.

onAdFailedToShowFullScreenContent

public void onAdFailedToShowFullScreenContent(AdError adError)

Called when the ad failed to show full screen content.

onAdImpression

public void onAdImpression()

Called when an impression is recorded for an ad.

onAdShowedFullScreenContent

public void onAdShowedFullScreenContent()

Called when the ad showed the full screen content.