AI-generated Key Takeaways
-
This documentation provides details on properties and methods for configuring ad requests, including specifying ad responses, ad tag URLs, content details, and ad slot dimensions.
-
The
adsResponse
property allows for the use of a VAST 2.0 document as the ad response, whileadTagUrl
specifies the URL from the ad server, which is a required parameter. -
Properties such as
contentDuration
,contentKeywords
, andcontentTitle
provide details about the content being shown, which are utilized in AdX ad targeting. -
The dimensions for linear and non-linear ads can be set with
linearAdSlotHeight
,linearAdSlotWidth
,nonLinearAdSlotHeight
, andnonLinearAdSlotWidth
, which are required for their respective ad types. -
Methods like
setAdWillAutoPlay
,setAdWillPlayMuted
, andsetContinuousPlayback
allow for notifying the SDK about the player's behavior, including autoplay, muted playback, and continuous video playback.
Properties | |
---|---|
ads
|
Specifies a VAST 2.0 document to be used as the ads response instead of making a
request through an ad tag url.
|
ad
|
Specifies the ad tag url that is requested from the ad server. |
content
|
Specifies the duration of the content in seconds to be shown. |
content
|
Specifies the keywords used to describe the content to be shown. |
content
|
Specifies the title of the content to be shown. |
force
|
Forces non-linear AdSense ads to render as linear fullslot. |
linear
|
Specifies the height of the rectangular area within which a linear ad is displayed.
|
linear
|
Specifies the width of the rectangular area within which a linear ad is displayed.
|
live
|
Specifies the maximum amount of time to wait in seconds, after calling requestAds,
before requesting the ad tag URL.
|
non
|
Specifies the height of the rectangular area within which a non linear ad is
displayed.
|
non
|
Specifies the width of the rectangular area within which a non linear ad is
displayed.
|
omid
|
Settings object for mapping verification vendors to OMID Access Modes.
|
page
|
Specifies the full url of the page that will be included in the Google ad request
for targeting purposes.
|
vast
|
Override for default VAST load timeout in milliseconds for a single wrapper.
|
Methods | |
---|---|
set
|
Notifies the SDK whether the player intends to start the content and ad in response
to a user action or whether it will be automatically played.
|
set
|
Notifies the SDK whether the player intends to start ad while muted. |
set
|
Notifies the SDK whether the player intends to continuously play the content videos
one after another similar to TV broadcast.
|
Properties
adsResponse
adsResponse: string | Document
This parameter is optional.
adTagUrl
adTagUrl: string
This parameter is required.
contentDuration
contentDuration: number
This parameter is optional.
contentKeywords
contentKeywords: string[]
This parameter is optional.
contentTitle
contentTitle: string
This parameter is optional.
forceNonLinearFullSlot
forceNonLinearFullSlot: boolean
linearAdSlotHeight
linearAdSlotHeight: number
This parameter is required for linear ads.
linearAdSlotWidth
linearAdSlotWidth: number
This parameter is required for linear ads.
liveStreamPrefetchSeconds
liveStreamPrefetchSeconds: number
nonLinearAdSlotHeight
nonLinearAdSlotHeight: number
This parameter is required for non-linear ads.
nonLinearAdSlotWidth
nonLinearAdSlotWidth: number
This parameter is required for non-linear ads.
omidAccessModeRules
omidAccessModeRules: {
[key: string]: string;
}
Verification script URLs are internally matched against vendor provided regular expressions to resolve to an OmidVerificationVendor key. IMA then looks up the access mode for the given vendor using this object.
For script URLs that don't resolve to a known vendor, or if the resolved OmidVerificationVendor is not provided in this object, IMA will use the access mode provided for OmidVerificationVendor.OTHER. If OmidVerificationVendor.OTHER is not provided, then the LIMITED access mode will be used.
pageUrl
pageUrl: string
This parameter is optional.
vastLoadTimeout
vastLoadTimeout: number
This parameter is optional.
Methods
setAdWillAutoPlay
setAdWillAutoPlay(autoPlay: boolean): void
Parameters | |
---|---|
autoPlay: boolean
|
Whether the content and the ad will be autoplayed or whether it will be started by a user action. |
setAdWillPlayMuted
setAdWillPlayMuted(muted: boolean): void
Parameters | |
---|---|
muted: boolean
|
Whether the ad will be played while muted. |
setContinuousPlayback
setContinuousPlayback(continuousPlayback: boolean): void
Parameters | |
---|---|
continuousPlayback: boolean
|
Whether the content video is played one after another continuously. |