GoogleImaAdDescription

@objc(THEOplayerGoogleImaAdDescription)
open class GoogleImaAdDescription : NSObject, AdDescription, AdDescription_Objc, Codable

An AdDescription object that will be added to the player when using the Google Ima ad integration.

  • The ad Integration.

    Declaration

    Swift

    public var integration: AdIntegration?
  • The ad Integration.

    Declaration

    Swift

    @objc(integration)
    public var integration_Objc: AdIntegration { get set }
  • src

    Represents the source of the ad. The player will download the content available at the URL and will schedule the specified advertisement(s).

    Remark

    The Google IMA ad integration supports VAST, VMAP and VPAID files.

    Declaration

    Swift

    @objc
    public var src: URL
  • Specifies the time when an ad should be played in the content video.

    The following offset formats are supported:

    • Timecode in HH:MM:SS.mmm: e.g. "01:32:54.78"
    • Total number of seconds: e.g. "5574.78"
    • Markers: "start", "end"
    • Percentages: e.g. "10%".

      Important

      Only use this property for VAST-files. THEOplayer will ignore this value for VMAP-files, because they already have their own offset.

    Declaration

    Swift

    @objc
    public var timeOffset: String?
  • Constructs a GoogleImaAdDescription.

    Declaration

    Swift

    @objc
    public init(src: String, timeOffset: String? = nil)

    Parameters

    src

    the source of the ad.

    timeOffset

    the optional time offset, defaults to nil.