This interface is used to interact with individual overlay video ads received from a OO.Pulse.Session.
You must notify this object of the following events:
- The ad is displayed: OO.Pulse.OverlayAd#adDisplayed
- The ad was clicked: OO.Pulse.OverlayAd#adClicked
- The ad was closed by the user: OO.Pulse.OverlayAd#adClosed
- The ad was collapsed: OO.Pulse.OverlayAd#adCollapsed
- The ad failed to display: OO.Pulse.OverlayAd#adFailedWithError(error
Methods
-
adClickThroughTriggered()
-
Notify the SDK that the overlay ad was clicked.
-
adClosed()
-
Notify the SDK that the overlay ad was closed via a close button.
-
adDisplayed()
-
Call this method when the ad is displayed.
-
adFailedWithError(error)
-
Notify the SDK that there was an error displaying the overlay ad.
Parameters:
Name Type Description error
OO.PulseAdError The OO.PulseAdError that best describes the problem.
-
adFinished()
-
Call this method when the ad is done displaying and was displayed for its intended duration.
-
getClickthroughURL()
-
Get the ad's clickthrough URL.
Returns:
the URL to open when the ad is clicked.
- Type
- string
-
getCoreAd()
-
Returns the underlying low-level core Ad object. Advanced use only! In most cases, you do not need this.
Returns:
The underlying core Ad object.
-
getDuration()
-
Get the ad's duration
Returns:
The duration (in seconds) of the ad.
- Type
- number
-
getHeight()
-
Get the ad's height
Returns:
The ad's height in pixels
- Type
- number
-
getResourceMimeType()
-
Get the ad resource mime type. Images or swf files can be used as overlay ads.
Returns:
The resource's mime type.
- Type
- string
-
getResourceURL()
-
Get the overlay ad's resource URL.
Returns:
The URL of the resource to display.
- Type
- string
-
getWidth()
-
Get the ad's width
Returns:
The ad's width in pixels.
- Type
- number