THEOplayer > SpotXAdDescription
Inherits from AdDescription . See parent page for inherited properties and methods.
Describes a SpotX ad break request.
Signature:
export interface SpotXAdDescription extends AdDescription
- Available since v2.13.0.
{
integration: 'spotx',
id: 123456,
cacheBuster: true,
app: {
bundle: 'com.exampleapps.example',
name: 'My CTV App'
},
device: {
ifa: '38400000-8cf0-11bd-b23e-10b96e40000d',
ua: 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1',
geo: {
lat: -24.378528,
lon: -128.325119
},
dnt: 1,
lmt: 1,
},
custom: {
category: ['category1', 'category2'],
somekey: 'somevalue'
}
user: {
yob: 1984,
gender: 'm'
}
}
Property |
Type |
Description |
---|---|---|
app (optional) |
Application specific SpotX data. |
|
cacheBuster (optional) |
|
Whether the ad break request should contain a cache buster. |
contentPageUrl (optional) |
|
The URL of the content page. |
custom (optional) |
Custom SpotX data. |
|
device (optional) |
Device specific SpotX data. |
|
|
The identifier of the ad break requested from SpotX. |
|
ipAddress (optional) |
|
The IP address of the viewer. |
maximumAdDuration (optional) |
|
The maximum duration of the ad, in seconds. |
queryParameters (optional) |
A record of query string parameters added to the SpotX ad break request. Each entry contains the parameter name with associated value. |
|
sources (optional) |
|
A source URL which contains the location of ad resources to be scheduled. |
user (optional) |
User specific SpotX data. |
Warning: This API is deprecated.
Superseded by queryParameters.app.
Application specific SpotX data.
Signature:
app?: SpotxData;
Whether the ad break request should contain a cache buster.
Signature:
cacheBuster?: boolean;
- A cache buster adds a query parameter 'cb' with a random value to circumvent browser caching mechanisms.
The URL of the content page.
Signature:
contentPageUrl?: string;
Warning: This API is deprecated.
Superseded by queryParameters.custom.
Custom SpotX data.
Signature:
custom?: SpotxData;
Warning: This API is deprecated.
Superseded by queryParameters.device.
Device specific SpotX data.
Signature:
device?: SpotxData;
The identifier of the ad break requested from SpotX.
Signature:
id: number | string;
The IP address of the viewer.
Signature:
ipAddress?: string;
The maximum duration of the ad, in seconds.
Signature:
maximumAdDuration?: number | string;
A record of query string parameters added to the SpotX ad break request. Each entry contains the parameter name with associated value.
Signature:
queryParameters?: SpotxQueryParameter;
- Available since v2.38.0.
A source URL which contains the location of ad resources to be scheduled.
Signature:
sources?: string;
- This will override the generated URL.
Warning: This API is deprecated.
Superseded by queryParameters.user.
User specific SpotX data.
Signature:
user?: SpotxData;