Google is committed to advancing racial equity for Black communities. See how.

FullScreenContentCallback

public abstract class FullScreenContentCallback extends Object

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

Constant Summary

int ERROR_CODE_AD_REUSED Error code that indicates the ad has already been shown.
int ERROR_CODE_APP_NOT_FOREGROUND Error code that indicates the ad can not be shown when app is not in the foreground.
int ERROR_CODE_INTERNAL_ERROR Error code that indicates something unexpected happened internally.
int ERROR_CODE_MEDIATION_SHOW_ERROR Error code that indicates a mediation adapter failed to show the ad.
int ERROR_CODE_NOT_READY Error code that indicates the ad is not ready.

Public Constructor Summary

Public Method Summary

void
onAdClicked()
Called when a click is recorded for an ad.
void
onAdDismissedFullScreenContent()
Called when the ad dismissed full screen content.
void
onAdFailedToShowFullScreenContent(AdError adError)
Called when the ad failed to show full screen content.
void
onAdImpression()
Called when an impression is recorded for an ad.
void
onAdShowedFullScreenContent()
Called when the ad showed the full screen content.

Inherited Method Summary

Constants

public static final int ERROR_CODE_AD_REUSED

Error code that indicates the ad has already been shown.

Constant Value: 1

public static final int ERROR_CODE_APP_NOT_FOREGROUND

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

Constant Value: 3

public static final int ERROR_CODE_INTERNAL_ERROR

Error code that indicates something unexpected happened internally.

Constant Value: 0

public static final int ERROR_CODE_MEDIATION_SHOW_ERROR

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

Constant Value: 4

public static final int ERROR_CODE_NOT_READY

Error code that indicates the ad is not ready.

Constant Value: 2

Public Constructors

public FullScreenContentCallback ()

Public Methods

public void onAdClicked ()

Called when a click is recorded for an ad.

public void onAdDismissedFullScreenContent ()

Called when the ad dismissed full screen content.

public void onAdFailedToShowFullScreenContent (AdError adError)

Called when the ad failed to show full screen content.

public void onAdImpression ()

Called when an impression is recorded for an ad.

public void onAdShowedFullScreenContent ()

Called when the ad showed the full screen content.