Information about the environment in which the requested ad(s) will play.

onComplete

function

A function which, if provided, will be called when the session extension completes.

preload(ready)

Load all third party ads contained in the session.

Normally, third party ads are loaded when their respective ad break starts,
provided that your account has lazy loading enabled. This method allows you
to preload third party ads before starting the session.

Note: use with caution, because impressions may be tracked by the third party as soon as they are loaded.

Parameters:

Name

Type

Description

ready

function

A function which is called when all third party ads have been loaded.

startSession(sessionListener)

Start the ad session event flow. The provided listener implementation
is notified when to play the content/ads.