SpotXAdDescription

public class SpotXAdDescription : NSObject, AdDescription

A SpotXAdDescription object contains a description of a SpotX advertisement that will be added to the player using the SpotX integration.

  • id

    Your SpotX id

    Declaration

    Swift

    public var id: String
  • Add the VMaxd parameter with a duration to the SpotX tag

    Declaration

    Swift

    public var maximumAdDuration: String?
  • Add a IP address

    Declaration

    Swift

    public var ipAddress: String?
  • Add the cb parameter with a random number to the SpotX tag

    Declaration

    Swift

    public var cacheBuster: Bool?
  • app

    Add app related data to the SpotX tag

    Declaration

    Swift

    public var app: SpotXData?
  • Add device related data to the SpotX tag

    Declaration

    Swift

    public var device: SpotXData
  • Add user related data to the SpotX tag

    Declaration

    Swift

    public var user: SpotXData?
  • Add custom data to the SpotX tag

    Declaration

    Swift

    public var custom: SpotXData?
  • Add custom query parameters to the SpotX tag

    Declaration

    Swift

    public var queryParameters: [String : SpotXQueryParameter]?
  • Construct a SpotXAdDescription

    Declaration

    Swift

    public init(id: String, maximumAdDuration: String? = nil, ipAddress: String? = nil, cacheBuster: Bool? = nil, app: SpotXData? = nil, device: SpotXData? = nil, user: SpotXData? = nil, custom: SpotXData? = nil, queryParameters: [String : SpotXQueryParameter]? = nil)

    Parameters

    id

    the SpotX id

    maximumAdDuration

    the VMaxd parameter with a duration

    ipAddress

    a IP address

    cacheBuster

    the cb parameter with a random number

    app

    app related data

    device

    device related data

    user

    user related data

    custom

    custom data