SVSAdPlacement

Class representing an instream ad placement

Constructors

Link copied to clipboard
constructor(siteID: Long, @Nullable pageName: String, formatId: Long)
Creates a SVSAdPlacement instance from specified parameters
constructor(siteID: Long, pageId: Long, formatId: Long)
Creates a SVSAdPlacement instance from specified parameters.

Properties

Link copied to clipboard
open val formatId: Long
The formatId of this ad placement.
Link copied to clipboard
The default targeting string of this ad placement.
Link copied to clipboard
The targeting string specific for midroll of this ad placement.
Link copied to clipboard
open val pageId: Long
The pageId of this ad placement.
Link copied to clipboard
The pageName of this ad placement.
Link copied to clipboard
The targeting string specific for postroll of this ad placement.
Link copied to clipboard
A test placement that will return one ad for preroll, midroll and postroll
Link copied to clipboard
The targeting string specific for preroll of this ad placement.
Link copied to clipboard
open val siteID: Long
The siteID of this ad placement.
Link copied to clipboard
A Supply Chain Object string representation that will be sent during ad loading to receive more relevant advertising if needed, null otherwise.

Functions

Link copied to clipboard
open fun getParameters(@NonNull parameters: HashMap<String, String>, @NonNull adBreakType: SVSAdBreakType)
Fills the passed HashMap with all relevant parameters of this SVSAdPlacement Object
Link copied to clipboard
Returns the appropriate targeting string for the given ad break type.
Link copied to clipboard
open fun usesPageName(): Boolean
Returns whether this placement relies on a page name or a page Id.