LinearAd

public protocol LinearAd : Ad

A LinearAd is a concrete implementation of an Ad which represents a linear ad. It extends the properties of the Ad object.

  • The duration of the LinearAd, as provided by the VAST file. This numeric value represents seconds.

    Declaration

    Swift

    var duration: Int? { get }
  • An array of mediafiles, which provides some meta data retrieved from the VAST file.

    Declaration

    Swift

    var mediaFiles: [MediaFile] { get }