SwipeableInterstitialAdRequest

@ExperimentalApi
public final class SwipeableInterstitialAdRequest extends AdRequest implements SwipeableInterstitialRequest


An AdRequest for Swipeable Interstitial ads. See Builder for how to construct a SwipeableInterstitialAdRequest.

Summary

Nested types

A builder for a swipeable interstitial ad request.

Public methods

AdSize

The ad size requested.

final Bundle

Gets the extras bundle associated with an ad source's adapter, if present.

final @NonNull Set<@NonNull String>

The slot-level ad category exclusion labels.

final String

The content URL targeting information.

boolean
NativeAd.SwipeGestureDirection

The direction of the custom click swipe gesture.

boolean

Whether taps should still be allowed as clicks when a custom click swipe gesture is enabled.

final @NonNull Map<@NonNull String, @NonNull String>

The custom targeting parameters.

final @NonNull Bundle

The extra parameters to pass to Google ad network

final @NonNull Set<@NonNull String>

The targeting information keywords.

int

The maximum screen hold duration in seconds.

final @NonNull Set<@NonNull String>

The list of neighboring content URLs or an empty List if no URLs were set.

final long

An identifier for a placement in reporting.

final String

A publisher-provided identifier used for frequency capping, audience segmentation and targeting, sequential ad rotation, and other audience-based ad delivery controls across devices.

final String

The request agent string to identify the ad request's origin.

Public methods

getAdSize

public AdSize getAdSize()

The ad size requested.

getAdSourceExtrasBundle

public final Bundle getAdSourceExtrasBundle(
    @NonNull Class<@NonNull MediationExtrasReceiver> adapterClass
)

Gets the extras bundle associated with an ad source's adapter, if present.

getCategoryExclusions

public final @NonNull Set<@NonNull StringgetCategoryExclusions()

The slot-level ad category exclusion labels. Default to an empty Set if not set.

getContentUrl

public final String getContentUrl()

The content URL targeting information. Default to null if not set.

getCustomClickGestureEnabled

public boolean getCustomClickGestureEnabled()

getCustomClickSwipeGestureDirection

public NativeAd.SwipeGestureDirection getCustomClickSwipeGestureDirection()

The direction of the custom click swipe gesture.

getCustomClickSwipeGestureTapsAllowed

public boolean getCustomClickSwipeGestureTapsAllowed()

Whether taps should still be allowed as clicks when a custom click swipe gesture is enabled.

getCustomTargeting

public final @NonNull Map<@NonNull String, @NonNull StringgetCustomTargeting()

The custom targeting parameters. Default to an empty Map if not set.

getGoogleExtrasBundle

public final @NonNull Bundle getGoogleExtrasBundle()

The extra parameters to pass to Google ad network

getKeywords

public final @NonNull Set<@NonNull StringgetKeywords()

The targeting information keywords.

getMaxScreenHoldDurationSeconds

public int getMaxScreenHoldDurationSeconds()

The maximum screen hold duration in seconds.

getNeighboringContentUrls

public final @NonNull Set<@NonNull StringgetNeighboringContentUrls()

The list of neighboring content URLs or an empty List if no URLs were set.

getPlacementId

public final long getPlacementId()

An identifier for a placement in reporting. A value set here will be set onto any ad returned by this request.

getPublisherProvidedId

public final String getPublisherProvidedId()

A publisher-provided identifier used for frequency capping, audience segmentation and targeting, sequential ad rotation, and other audience-based ad delivery controls across devices.

getRequestAgent

public final String getRequestAgent()

The request agent string to identify the ad request's origin.