LinearAd

public protocol LinearAd : Ad

Represents a linear ad in the VAST specification. It extends the properties of the Ad object.

  • The duration of the LinearAd, as provided by the VAST file, in seconds.

    Declaration

    Swift

    @available(*, deprecated, message: "With the next major version, the return type will no longer be optional.")
    var duration: Int? { get }
  • An array of mediafiles, which provides some meta data retrieved from the VAST file.

    Declaration

    Swift

    var mediaFiles: [MediaFile] { get }