JWAdImpression
@objcMembers
public class JWAdImpression : NSObject
Ad impression information for an ad.
-
Position of the ad within the video.
Declaration
Swift
public internal(set) var position: JWAdPosition { get }
-
AdSystem referenced inside of the VAST XML.
Declaration
Swift
public internal(set) var system: String! { get }
-
AdTitle referenced inside of the VAST XML.
Declaration
Swift
public internal(set) var title: String! { get }
-
URL which will be opened when the ad is clicked.
Declaration
Swift
public internal(set) var clickThroughURL: URL? { get }
-
The type of ad, linear or non-linear.
Declaration
Swift
public internal(set) var type: JWAdType { get }
-
The current ad’s position in the ad pod.
Declaration
Swift
public internal(set) var sequence: Int? { get }
-
The number of ads in the pod.
Declaration
Swift
public internal(set) var podCount: Int? { get }
-
The ad identifier within the VAST XML.
Declaration
Swift
public internal(set) var adId: String! { get }
-
The creative ad identifier within the VAST XML.
Declaration
Swift
public internal(set) var creativeAdId: String! { get }
-
The creative ad identifier within the VAST XML.
Declaration
Swift
public internal(set) var creativeId: String! { get }
-
The duration of the ad, expressed in seconds.
Note
This is only available in impression from JWPlayer VAST ads.Declaration
Swift
public internal(set) var duration: TimeInterval? { get }