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
Constant for format id property key string
Link copied to clipboard
open val formatId: Long
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Constant for page id property key string
Link copied to clipboard
val PAGE_NAME_PARAMETER: String = "pgname"
Constant for page name property key string
Link copied to clipboard
open val pageId: Long
Link copied to clipboard
Link copied to clipboard
A test placement that will return one ad for preroll, midroll and postroll
Link copied to clipboard
Link copied to clipboard
val SCO_PARAMETER: String = "schain"
Constant for supply chain object property key string
Link copied to clipboard
val SITE_ID_PARAMETER: String = "siteid"
Constant for site id property key string
Link copied to clipboard
open val siteID: Long
Link copied to clipboard
Constant for target property key string

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.