- google.ima.CompanionAdSelectionSettings.SizeCriteria
- CompanionsConfigObject
- CompanionAdObject
- google.ima.AdsRenderingSettings
- google.ima.ImaSdkSettings.VpaidMode
- ImaConfigObject
- AccessMode
- OmidAccessModesConfig
- ImaAdsController
- ImaEngineDecorator
- Ima
- State
google.ima.CompanionAdSelectionSettings.SizeCriteria
Type: Object
ads
Object Companion ads. Represented as a key-value object where the key is the ad id (string) and the value is the companion ad object (CompanionAdObject).sizeCriteria
google.ima.CompanionAdSelectionSettings.SizeCriteria Available choices for size selection criteria. The user can specify any of these choices for selecting companion ads. (optional, default'SELECT_EXACT_MATCH'
)
{
sizeCriteria: 'SELECT_EXACT_MATCH',
ads: {
testCompanionSquare: {
width: 300,
height: 250
},
testCompanionLong: {
width: 728,
height: 90
}
}
}
Type: Object
google.ima.AdsRenderingSettings
google.ima.ImaSdkSettings.VpaidMode
Type: Object
-
adTagUrl
string Specifies the ad tag url that is requested from the ad server. -
adsResponse
string? Specifies a VAST 2.0 document to be used as the ads response instead of making a request via an ad tag url (ifadTagUrl
is not set). -
debug
boolean If set to true, loads IMA SDK in debug mode. (optional, defaultfalse
) -
disableMediaPreload
boolean Whether to disable media pre loading while ad is playing. If set totrue
, the player will start loading the content media just after the ad break will end (incase of preroll ad). This will also overridesconfig.adsRenderingSettings.restoreCustomPlaybackStateOnAdBreakComplete
no matters its value and sets it tofalse
. (optional, defaultfalse
) -
forceReloadMediaAfterAds
boolean force reload our media after ads finish. (optional, defaultfalse
) -
delayInitUntilSourceSelected
boolean wait until the video tag loaded and then load Ima. (optional, defaultfalse
) -
vpaidMode
google.ima.ImaSdkSettings.VpaidMode Sets VPAID playback mode See usage also in Handling VPAID Modes. (optional, default'ENABLED'
) -
numRedirects
google.ima.ImaSdkSettings.numRedirects Specifies the maximum number of redirects before the subsequent redirects will be denied, and the ad load aborted. This applies to all VAST wrapper ads. (optional, default4
) -
adsRenderingSettings
google.ima.AdsRenderingSettings Defines parameters that control the rendering of ads. (optional, default{ restoreCustomPlaybackStateOnAdBreakComplete:true, enablePreloading:false, useStyledLinearAds:false, useStyledNonLinearAds:true bitrate:-1, autoAlign:true }
)adsRenderingSettings.useStyledLinearAds
boolean See usage also in Handling VPAID Ads (optional, defaultfalse
)
-
companions
CompanionsConfigObject? Defines the companion ads. -
locale
string? Sets the publisher provided locale. The locale specifies the language in which to display UI elements and can be any two-letter ISO 639-1 code. -
showAdBreakCuePoint
boolean? Whether to show the ad breaks cue points. -
adBreakCuePointStyle
Object? Style options for the ad breaks cue points - See the options Here. -
sessionId
string? a temporary random ID. It is used exclusively for frequency capping. A session ID must be a UUID. -
omidAccessModes
OmidAccessModesConfig? A dictionary that maps each OmidVerificationVendor to one of the access modes
different access modes for verification scripts
Type: ("FULL"
| "CREATIVE"
| "DOMAIN"
| "LIMITED"
)
A dictionary that maps each OmidVerificationVendor to one of the available access modes
{
MOAT: 'FULL'
PIXELATE: 'CREATIVE'
OTHER: 'DOMAIN'
}
Controller for ima plugin.
context
Ima The ima plugin context.
Skip on an ad.
Returns void
Play an ad on demand.
adPod
KPAdPod The ad pod to play.
Returns void
On playback ended handler.
Returns Promise<void> complete promise
Whether this ads controller is active
Type: boolean
Returns boolean is active
Whether this ads controller is done
Type: boolean
Returns boolean is done
The controller name
Type: string
Returns string The name
Engine decorator for ima plugin.
engine
IEngine The HTML5 engine.plugin
Ima The ima plugin.
Get paused state.
Type: boolean
Returns boolean The paused value of the engine.
Get the current time in seconds.
Type: number
Returns number The current playback time.
Set the current time in seconds.
Type: number
to
number The number to set in seconds.
Returns void
Get the duration in seconds.
Type: number
Returns number The playback duration.
Get ended state
Type: boolean
Returns boolean media ended
Extends BasePlugin
The ima plugin.
name
string The plugin name.player
Player The player instance.config
ImaConfigObject The plugin config.
Gets the engine decorator.
engine
IEngine The engine to decorate.
Returns IEngineDecorator The ads api.
Gets the middleware.
Returns ImaMiddleware The middleware api.
Gets the ads controller.
Returns IAdsPluginController The ads api.
Plays ad on demand
adPod
KPAdPod The ad pod to play.
Returns void
Skips on an ad.
Returns void
Resuming the ad.
Returns DeferredPromise The promise which when resolved starts the next handler in the middleware chain.
Pausing the ad.
Returns DeferredPromise The promise which when resolved starts the next handler in the middleware chain.
Gets the state machine.
Returns any The state machine.
Gets the indicator if ads playing on the main video tag
Returns boolean if ads playing on the main video tag.
Gets the indicator if ads still playing.
Returns boolean if ads still playing.
Prepare the plugin before media is loaded.
Returns void
Resets the plugin.
Returns void
Destroys the plugin.
Returns void
Initialize the ads for the first time.
Returns DeferredPromise? The promise which when resolved starts the next handler in the middleware chain.
Ended event handler.
Returns Promise<void> complete promise
The default configuration of the plugin.
Type: Object
Promise for loading the plugin. Will be resolved after:
- Ima script has been loaded in the page.
- The ads manager has been loaded and ready to start.
Type: Promise<any>
Whether the ima plugin is valid.
The ima plugin possible states.
Type: Object