NativeSignalRequest

class NativeSignalRequest : SignalRequest


A native signal request. See Builder for how to construct a NativeSignalRequest.

Summary

Nested types

A builder class for creating NativeSignalRequest.

Public functions

Bundle?

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

Public properties

open AdChoicesPlacement

The AdChoices placement.

open AdSize?
open List<AdSize>
open String?

The ad unit ID.

Set<String>

The slot-level ad category exclusion labels.

String?

The content URL targeting information.

open Boolean

Whether tap to click is enabled with custom click gesture.

open NativeAd.SwipeGestureDirection?

The requested custom click gesture direction.

open List<String>

A list of custom native ad format IDs defined in the Ad Manager UI.

open Boolean

Whether custom mute this ad is requested.

Map<StringString>

The custom targeting parameters.

Bundle

The extra parameters to pass to Google ad network

open Boolean

Whether image downloading is disabled.

Set<String>

The targeting information keywords.

open Boolean
open NativeAd.NativeMediaAspectRatio

The aspect ratio of the media to be returned.

open List<NativeAd.NativeAdType>

A list of native ad types for the request.

Set<String>

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

Long

An identifier for a placement in reporting.

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.

String?

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

open VideoOptions?

The VideoOptions for the request.

Inherited properties

From com.google.android.libraries.ads.mobile.sdk.signal.SignalRequest
String

The signal type associated with the request.

Public functions

getAdSourceExtrasBundle

fun getAdSourceExtrasBundle(adapterClass: Class<MediationExtrasReceiver>): Bundle?

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

Public properties

adChoicesPlacement

open val adChoicesPlacementAdChoicesPlacement

The AdChoices placement.

adSize

open val adSizeAdSize?

adSizes

open val adSizesList<AdSize>

adUnitId

open val adUnitIdString?

The ad unit ID.

categoryExclusions

val categoryExclusionsSet<String>

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

contentUrl

val contentUrlString?

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

customClickGestureAllowTaps

open val customClickGestureAllowTapsBoolean

Whether tap to click is enabled with custom click gesture.

customClickGestureDirection

open val customClickGestureDirectionNativeAd.SwipeGestureDirection?

The requested custom click gesture direction.

customFormatIds

open val customFormatIdsList<String>

A list of custom native ad format IDs defined in the Ad Manager UI. Used to load native ads of type NativeAdType.CUSTOM_NATIVE.

customMuteThisAdRequested

open val customMuteThisAdRequestedBoolean

Whether custom mute this ad is requested.

customTargeting

val customTargetingMap<StringString>

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

googleExtrasBundle

val googleExtrasBundleBundle

The extra parameters to pass to Google ad network

isImageLoadingDisabled

open val isImageLoadingDisabledBoolean

Whether image downloading is disabled.

keywords

val keywordsSet<String>

The targeting information keywords.

manualImpressionRequested

open val manualImpressionRequestedBoolean

mediaAspectRatio

open val mediaAspectRatioNativeAd.NativeMediaAspectRatio

The aspect ratio of the media to be returned.

nativeAdTypes

open val nativeAdTypesList<NativeAd.NativeAdType>

A list of native ad types for the request.

neighboringContentUrls

val neighboringContentUrlsSet<String>

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

placementId

val placementIdLong

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

publisherProvidedId

val publisherProvidedIdString?

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

requestAgent

val requestAgentString?

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

videoOptions

open val videoOptionsVideoOptions?

The VideoOptions for the request.