AdSource
@objc(BMPAdSource)
@objcMembers
public class AdSource : NSObject
extension AdSource: NSCopying
Represents an ad source which can be assigned to an AdItem.
An AdItem can have multiple AdSources as a waterfalling option.
-
The
AdSourceTypeof thisAdSource.Declaration
Swift
public let type: AdSourceType -
The ad tag / url to the ad manifest.
Declaration
Swift
public let tag: URL -
The amount of seconds until the VAST loading is canceled after the download request started.
- In case this
AdSourceis of typeAdSourceType.ima, this is equivalent toAdsRequest.setVastLoadTimeoutin the IMA library. - Only supported for
AdSources of typeAdSourceType.ima.
Default value is
8.0.Declaration
Swift
public let vastLoadTimeout: TimeInterval - In case this
-
Declaration
Swift
public convenience init(tag: URL, ofType type: AdSourceType) -
Declaration
Swift
public init(tag: URL, ofType type: AdSourceType, vastLoadTimeout: TimeInterval) -
Declaration
Swift
public func copy(with zone: NSZone? = nil) -> Any
AdSource Class Reference