Interface AdRequest

Configuration options for a standard Google Mobile Ads (AdMob) request. Used to provide contextual targeting and network-specific parameters.
Properties
adUnitId
The ad unit ID.
categoryExclusions?
Slot-level ad category exclusion labels.
contentUrl?
The content URL for a website whose content matches the app's primary content.
customTargeting?
Custom targeting parameters.
extras?
Extra parameters to pass to AdMob or Ad Manager.
keywords?
Keywords for targeting purposes.
mediationExtras?
Extra parameters to pass to a specific ad source adapter in a mediation setup.
neighboringContentUrls?
URLs representing web content near an ad.
placementId?
A long integer provided by the AdMob UI for the configured placement.
publisherProvidedId?
An identifier for use in frequency capping, audience segmentation and targeting, sequential ad rotation, and other audience-based ad delivery controls across devices.
skipUninitializedAdapters?
Instructs the SDK to not collect bidding signals or execute waterfall elements for adapters that haven't yet successfully initialized.

Properties


Readonly adUnitId

adUnitId: string
The ad unit ID.

Optional Readonly categoryExclusions

categoryExclusions?: readonly string[]
Slot-level ad category exclusion labels.

This feature is applicable only to Ad Manager ad requests. Category exclusions are ignored on AdMob requests.

Optional Readonly contentUrl

contentUrl?: string
The content URL for a website whose content matches the app's primary content. This website content is used for targeting and brand safety purposes.

Optional Readonly customTargeting

customTargeting?: Readonly<Record<string, string | readonly string[]>>
Custom targeting parameters.

This feature is applicable only to Ad Manager ad requests. Custom targeting is ignored on AdMob requests.

Optional Readonly extras

extras?: Readonly<Record<string, unknown>>
Extra parameters to pass to AdMob or Ad Manager.

Values must be JSON-serializable types (strings, numbers, booleans, null, or arrays or objects of these types). Functions, class instances, or complex JavaScript types such as Set and Map aren't supported.

Optional Readonly keywords

keywords?: readonly string[]
Keywords for targeting purposes.

Optional Readonly mediationExtras

mediationExtras?: readonly MediationExtras[]
Extra parameters to pass to a specific ad source adapter in a mediation setup.

Optional Readonly neighboringContentUrls

neighboringContentUrls?: readonly string[]
URLs representing web content near an ad. Promotes brand safety and allows displayed ads to have an app-level rating, such as MA, T, or PG, that's more appropriate to neighboring content.

Optional Readonly placementId

placementId?: bigint
A long integer provided by the AdMob UI for the configured placement.

Optional Readonly publisherProvidedId

publisherProvidedId?: string
An identifier for use in frequency capping, audience segmentation and targeting, sequential ad rotation, and other audience-based ad delivery controls across devices.

This feature is applicable only to Ad Manager ad requests. Any ID is ignored on AdMob requests.

Optional Readonly skipUninitializedAdapters

skipUninitializedAdapters?: boolean
Instructs the SDK to not collect bidding signals or execute waterfall elements for adapters that haven't yet successfully initialized.