CompanionAd_Objc

@objc(THEOplayerCompanionAd)
public protocol CompanionAd_Objc

Represents a companion ad which is displayed besides the player.

Remark

It doesn’t extend the properties of Ad.
  • An identifier of the element in which the companion ad should be appended, if available.

    Declaration

    Swift

    var adSlotId: String? { get }
  • An alternative description for the companion ad.

    Declaration

    Swift

    var altText: String? { get }
  • The website of the advertisement.

    Declaration

    Swift

    var clickThrough: String? { get }
  • The height of the companion ad, in pixels.

    Remark

    • Supports integer format.

    Declaration

    Swift

    @objc(height)
    var height_Objc: NSNumber? { get }
  • The URI of the ad content.

    Declaration

    Swift

    var resourceURI: String? { get }
  • The width of the companion ad, in pixels.

    Remark

    • Supports integer format.

    Declaration

    Swift

    @objc(width)
    var width_Objc: NSNumber? { get }
  • The type of the companion ad.

    Declaration

    Swift

    var type: String { get }