---
updatedAt: 2026-10-20T13:11:10.000Z
agentTools:
  siteIndex: https://developer.bitmovin.com/llms.txt
  projectIndex: https://developer.bitmovin.com/playback/llms.txt
---

# Advertising - Bitmovin Module

Bitmovin-specific advertising module configuration

## BitmovinAdBreak

> Interface

## Extends

* [`AdBreak`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreak).[`AdBreakConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreakconfig)

## Properties

### ads?

> `optional` **ads?**: [`Ad`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#ad)\[]

The ads scheduled for this `AdBreak`.

#### Inherited from

[`AdBreak`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreak).[`ads`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#ads)

***

### discardAfterPlayback?

> `optional` **discardAfterPlayback?**: `boolean`

Specifies whether ad breaks are discarded after they are played back, played over or tried to be played back but
failed due to some condition.
When set to `false`, ad breaks are played again when seeking back to a previous ad break position and never
discarded in any of the above cases.

The flag will be ignored when [ImaAdTagConfig.passthroughMode](https://developer.bitmovin.com/playback/reference/web-sdk-advertising-ima#passthroughmode)
is set to [ImaPassthroughMode.VastAndVmap](https://developer.bitmovin.com/playback/reference/web-sdk-advertising-ima#vastandvmap)

Default is `true`.

#### Inherited from

[`AdBreakConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreakconfig).[`discardAfterPlayback`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#discardafterplayback)

***

### fallbackTags?

> `optional` **fallbackTags?**: [`AdTag`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adtag)\[]

Defines a list of fallback ad tags which will be tried one after the other if the original ad tag does not
provide a valid response. The fallback ad tags need to have the same [AdTagType](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adtagtype) as the main tag.

#### Inherited from

[`AdBreakConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreakconfig).[`fallbackTags`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#fallbacktags)

***

### id

> **id**: `string`

A unique identifier for the ad break.

The value is either inherited from the corresponding `AdBreakConfig` [id](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#id) or
extracted from a VMAP or interstitial tag. If no ID is present in a VMAP tag, one is generated.

#### Inherited from

[`AdBreak`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreak).[`id`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#id)

***

### linearAdUiConfig?

> `optional` **linearAdUiConfig?**: [`LinearAdUiConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#linearaduiconfig)

Holds relevant information for the advertising UI.

#### Inherited from

[`AdBreakConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreakconfig).[`linearAdUiConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#linearaduiconfig)

***

### persistent?

> `optional` **persistent?**: `boolean`

If set, the ad tag will be processed and rescheduled automatically when a new source is loaded.

#### Inherited from

[`AdBreakConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreakconfig).[`persistent`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#persistent)

***

### position

> **position**: `string`

Describes the position of the ad break relative to the main content.

The value is either inherited from the corresponding `AdBreakConfig` [position](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#position)
or, for SGAI ad breaks, inferred from the interstitial tag (e.g. `'pre'`, `'mid'`, `'post'`).

#### Inherited from

[`AdBreak`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreak).[`position`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#position)

***

### preloadOffset?

> `optional` **preloadOffset?**: `number`

Specifies how many seconds before the ad break would start playing should the ad tag (and if possible the media
files of the resulting ad response) start pre-loading.
Default is `0`.

#### Inherited from

[`AdBreakConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreakconfig).[`preloadOffset`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#preloadoffset)

***

### replaceContentDuration?

> `optional` **replaceContentDuration?**: `number`

Specifies how many seconds the ad break(s) should replace of the main video content.

#### Inherited from

[`AdBreak`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreak).[`replaceContentDuration`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#replacecontentduration)

***

### scheduleTime

> **scheduleTime**: `number`

The time in seconds in the media timeline the `AdBreak` is scheduled for. This is `NaN` for pause-position ad
breaks, which do not have a fixed position in the media timeline.

#### Inherited from

[`AdBreak`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreak).[`scheduleTime`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#scheduletime)

***

### tag

> **tag**: [`AdTag`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adtag)

Defines the url and type of the ad manifest. If the tag is a VAST or VPAID manifest, then more specific
scheduling options can be defined in the [AdBreakConfig](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreakconfig).

#### Inherited from

[`AdBreakConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreakconfig).[`tag`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#tag)

***

## BitmovinAdData

> Interface

Holds various additional ad data. Refer to [ImaAdData](https://developer.bitmovin.com/playback/reference/web-sdk-advertising-ima#imaaddata) or
BitmovinAdData for more information on what
additional data is available when using our Google IMA SDK implementation or our native VAST implementation.

## Extends

* [`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata)

## Properties

### adDescription?

> `optional` **adDescription?**: `string`

A longer description of the ad. Specified in `InLine.Description` in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`adDescription`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#addescription)

***

### adSystem?

> `optional` **adSystem?**: [`AdSystem`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adsystem)

The ad system that returned the ad. Specified in `InLine.AdSystem` in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`adSystem`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adsystem)

***

### adTitle?

> `optional` **adTitle?**: `string`

A common name for the ad. Specified in `InLine.AdTitle` in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`adTitle`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adtitle)

***

### advertiser?

> `optional` **advertiser?**: [`Advertiser`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#advertiser)

The advertiser as defined by the ad serving party. Specified in `InLine.Advertiser` in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`advertiser`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#advertiser)

***

### apiFramework?

> `optional` **apiFramework?**: `string`

Identifies the API needed to execute an interactive media file or communicate with the creative. Specified in
`MediaFile.apiFramework` for linear ads or `NonLinear.apiFramework` for non-linear ads in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`apiFramework`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#apiframework)

***

### bitrate?

> `optional` **bitrate?**: `number`

The average bitrate of the progressive media file as defined in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`bitrate`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#bitrate)

***

### codec?

> `optional` **codec?**: `string`

The codec used to encode the file which can take values as specified by <https://tools.ietf.org/html/rfc4281>.
Specified in `MediaFile.codec` in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`codec`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#codec)

***

### creative?

> `optional` **creative?**: [`Creative`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#creative)

Contains various data about the `Creative`. Specified in `InLine.Creative` or `Wrapper.Creative` in the
VAST Response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`creative`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#creative)

***

### delivery?

> `optional` **delivery?**: `string`

Either 'progressive' for progressive download protocols or 'streaming' for streaming protocols. Specified in
`MediaFile.delivery` in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`delivery`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#delivery)

***

### maxBitrate?

> `optional` **maxBitrate?**: `number`

The maximum bitrate of the streaming media file as defined in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`maxBitrate`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#maxbitrate)

***

### mediaFileId?

> `optional` **mediaFileId?**: `string`

The media file ID. Specified in `MediaFile.id` in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`mediaFileId`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#mediafileid)

***

### mimeType?

> `optional` **mimeType?**: `string`

The MIME type of the media file or creative as defined in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`mimeType`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#mimetype)

***

### minBitrate?

> `optional` **minBitrate?**: `number`

The minimum bitrate of the streaming media file as defined in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`minBitrate`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#minbitrate)

***

### minSuggestedDuration?

> `optional` **minSuggestedDuration?**: `number`

The minimum suggested duration that the creative should be displayed. Specified in `NonLinear.minSuggestedDuration`
in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`minSuggestedDuration`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#minsuggestedduration)

***

### pricing?

> `optional` **pricing?**: [`AdPricing`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adpricing)

Used to provide a value that represents a price that can be used by real-time bidding (RTB) systems. Specified
in `Inline.Pricing` in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`pricing`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#pricing)

***

### survey?

> `optional` **survey?**: [`AdSurvey`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adsurvey)

URI to any resource relating to an integrated survey. Specified in `InLine.Survey` in the VAST response.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`survey`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#survey)

***

### wrapperAdIds?

> `optional` **wrapperAdIds?**: `string`\[]

The IDs of the `Wrapper` ads, starting at the `InLine` ad and ending at the outermost `Wrapper` ad. Contains an
empty array if there are no `Wrapper` ads.

#### Inherited from

[`VastAdData`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vastaddata).[`wrapperAdIds`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#wrapperadids)

***

## BitmovinAdvertisingConfig

> Interface

Configuration used when the BitmovinModule is used for Advertising

## Extends

* [`AdvertisingConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#advertisingconfig)

## Properties

### adBreaks?

> `optional` **adBreaks?**: [`AdConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adconfig)\[]

Defines a collection of ad breaks which will be played at the specified position in each [AdBreakConfig](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreakconfig).

#### Inherited from

[`AdvertisingConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#advertisingconfig).[`adBreaks`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adbreaks)

***

### adContainer?

> `optional` **adContainer?**: () => `HTMLElement`

Defines a function which returns a container that is used for displaying ads.

#### Returns

`HTMLElement`

#### Inherited from

[`AdvertisingConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#advertisingconfig).[`adContainer`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adcontainer)

***

### companionAdContainers?

> `optional` **companionAdContainers?**: () => `HTMLElement`\[]

Defines a function which returns an array of containers for the ad module to fill with companion ads.

#### Returns

`HTMLElement`\[]

#### Inherited from

[`AdvertisingConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#advertisingconfig).[`companionAdContainers`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#companionadcontainers)

***

### disableStorageApi?

> `optional` **disableStorageApi?**: `boolean`

When set to true, the ad module will be prohibited from using the browser's `localStorage`.

Defaults to [disableStorageApi](https://developer.bitmovin.com/playback/reference/web-sdk-player-config#disablestorageapi), if present, and falls back to `false`.

**Since:** v8.91.0

#### Inherited from

[`AdvertisingConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#advertisingconfig).[`disableStorageApi`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#disablestorageapi)

***

### onSelectAdQuality?

> `optional` **onSelectAdQuality?**: (`suggested`, `available`) => [`AdMediaFileQuality`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#admediafilequality)

Receives quality that would be picked by player and list of all available
qualities and returns selected quality.

#### Parameters

##### suggested

[`AdMediaFileQuality`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#admediafilequality)

##### available

[`AdMediaFileQuality`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#admediafilequality)\[]

#### Returns

[`AdMediaFileQuality`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#admediafilequality)

***

### placeholders?

> `optional` **placeholders?**: [`AdTagPlaceholders`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#adtagplaceholders)

List of placeholder strings that will be replaced in the ad manifest URL with the corresponding values.

**Since:** 8.1.0

#### Inherited from

[`AdvertisingConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#advertisingconfig).[`placeholders`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#placeholders)

***

### strategy?

> `optional` **strategy?**: [`RestrictStrategy`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#restrictstrategy)

Defines optional callbacks for loading, playing, and seeking over ad breaks.

#### Inherited from

[`AdvertisingConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#advertisingconfig).[`strategy`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#strategy)

***

### trackers?

> `optional` **trackers?**: [`Trackers`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#trackers)

Defines tracker configurations for the relevant packages such
as the Open measurement which will be loaded to provide
additional tracking information for ads.

#### Inherited from

[`AdvertisingConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#advertisingconfig).[`trackers`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#trackers)

***

### videoLoadTimeout?

> `optional` **videoLoadTimeout?**: `number`

Specifies the amount of milliseconds before the loading of an ad from a given ad manifest times out.
Default is 8000.

#### Inherited from

[`AdvertisingConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#advertisingconfig).[`videoLoadTimeout`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#videoloadtimeout)

***

### withCredentials?

> `optional` **withCredentials?**: `boolean`

Specifies whether to send credentials such as cookies or authorization headers along with the ad requests. The
server needs to explicitly accept them for CORS requests, otherwise the request will fail.
Default is `true`.

#### Inherited from

[`AdvertisingConfig`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#advertisingconfig).[`withCredentials`](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#withcredentials)

***

## BitmovinModuleErrorCode

> Enum

Bitmovin advertising module error codes. These are in addition to the error codes found in
[AdvertisingModuleErrorCode](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#advertisingmoduleerrorcode) and [VastErrorCode](https://developer.bitmovin.com/playback/reference/web-sdk-advertising#vasterrorcode).