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 AdSource
s as a waterfalling option.
-
The
AdSourceType
of 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
AdSource
is of typeAdSourceType.ima
, this is equivalent toAdsRequest.setVastLoadTimeout
in the IMA library. - Has no effect for
AdSource
s of typeAdSourceType.progressive
.
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