AdsConfiguration
@objc(THEOplayerAdsConfiguration)
public class AdsConfiguration : NSObject, EncodableThe advertisement configuration of the player.
- 
                  
                  Whether an advertisement duration countdown will be shown in the UI. Remark - Defaults to true.
 DeclarationSwift @objc public private(set) var showCountdown: Bool { get }
- 
                  
                  The preload type of the ad, whether media files of mid- and postrolls are preloaded. Remark - Defaults to MIDROLL_AND_POSTROLL.
 DeclarationSwift @objc public private(set) var preload: AdPreloadType { get }
- 
                  
                  The configuration of the Google Interactive Media Ads. DeclarationSwift @available(*, deprecated, renamed: "googleIma") @objc public var googleImaConfiguration: GoogleIMAAdsConfiguration { get }
- 
                  
                  The configuration of the Google Interactive Media Ads. DeclarationSwift @objc public var googleIma: GoogleIMAAdsConfiguration { get }
- 
                  
                  The configuration of Google Dynamic Ad Insertion. DeclarationSwift @objc public let googleDai: GoogleDAIAdsConfiguration?
- 
                  
                  Constructs an AdsConfiguration object. DeclarationSwift @objc public init(showCountdown: Bool, preload: AdPreloadType, googleIma: GoogleIMAAdsConfiguration? = nil, googleDai: GoogleDAIAdsConfiguration? = nil)ParametersshowCountdownWhether an advertisement duration countdown will be shown in the UI, defaults to true. preloadThe preload type of the ad, whether media files of mid- and postrolls are preloaded, defaults to MIDROLL_AND_POSTROLL. googleImaThe configuration of the Google Interactive Media Ads, defaults to nil. googleDaiThe configuration of Google Dynamic Ad Insertion, defaults to nil. 
- 
                  
                  Constructs an AdsConfiguration object. DeclarationSwift @available(*, deprecated, message: "This init method will be removed in future versions because of a deprecated property `googleImaConfiguration`. Please use the init method with `googleIma` parameter instead.") @objc public init(showCountdown: Bool, preload: AdPreloadType, googleImaConfiguration: GoogleIMAAdsConfiguration?)ParametersshowCountdownWhether an advertisement duration countdown will be shown in the UI, defaults to true. preloadThe preload type of the ad, whether media files of mid- and postrolls are preloaded, defaults to MIDROLL_AND_POSTROLL. googleImaConfigurationThe configuration of the Google Interactive Media Ads, defaults to nil. 
- 
                  
                  
 AdsConfiguration Class Reference
      AdsConfiguration Class Reference