SwipeableInterstitialAd

@ExperimentalApi
public interface SwipeableInterstitialAd extends Ad


A swipeable interstitial ad.

Summary

Nested types

Public methods

abstract SwipeableInterstitialAdEventCallback

Optional callback for ad events during the lifecycle of this SwipeableInterstitialAd.

abstract @NonNull AdSize

Returns the AdSize of this SwipeableInterstitialAd.

abstract int

Returns the required screen hold duration for the ad in seconds.

abstract VideoController.VideoLifecycleCallbacks

Optional callback for receiving video lifecycle events.

abstract @NonNull View

Returns the swipeable interstitial View rendered by the Google Mobile Ads SDK.

default static final void

Loads a swipeable interstitial ad, providing the result via adLoadCallback.

abstract void

Optional callback for ad events during the lifecycle of this SwipeableInterstitialAd.

abstract void

Optional callback for receiving video lifecycle events.

Inherited methods

From com.google.android.libraries.ads.mobile.sdk.common.Ad
abstract void

Destroys the ad, stopping any extra processing and destroying resources associated with the ad.

abstract long

An identifier for a placement in reporting.

abstract @NonNull ResponseInfo

Gets information about the ad response for this ad.

abstract void
setPlacementId(long placementId)

An identifier for a placement in reporting.

Public methods

getAdEventCallback

abstract SwipeableInterstitialAdEventCallback getAdEventCallback()

Optional callback for ad events during the lifecycle of this SwipeableInterstitialAd.

getAdSize

abstract @NonNull AdSize getAdSize()

Returns the AdSize of this SwipeableInterstitialAd.

getScreenHoldDuration

abstract int getScreenHoldDuration()

Returns the required screen hold duration for the ad in seconds.

getVideoLifecycleCallbacks

abstract VideoController.VideoLifecycleCallbacks getVideoLifecycleCallbacks()

Optional callback for receiving video lifecycle events.

getView

abstract @NonNull View getView(@NonNull Activity activity)

Returns the swipeable interstitial View rendered by the Google Mobile Ads SDK.

Parameters
@NonNull Activity activity

The Activity that will host the View.

load

default static final void load(
    @NonNull SwipeableInterstitialAdRequest adRequest,
    @NonNull AdLoadCallback<@NonNull SwipeableInterstitialAd> adLoadCallback
)

Loads a swipeable interstitial ad, providing the result via adLoadCallback.

setAdEventCallback

abstract void setAdEventCallback(
    SwipeableInterstitialAdEventCallback adEventCallback
)

Optional callback for ad events during the lifecycle of this SwipeableInterstitialAd.

setVideoLifecycleCallbacks

abstract void setVideoLifecycleCallbacks(
    VideoController.VideoLifecycleCallbacks videoLifecycleCallbacks
)

Optional callback for receiving video lifecycle events.