BidInfo
@objcMembers
@objc(PBMBidInfo)
public class BidInfo : NSObject
Contains information about bid.
-
Key to get Prebid win event from
eventsDeclaration
Swift
public static let EVENT_WIN: String -
Key to get Prebid imp event from
eventsDeclaration
Swift
public static let EVENT_IMP: String -
The result code of the bid request
Declaration
Swift
public private(set) var resultCode: ResultCode { get } -
Targeting keywords associated with the bid
Declaration
Swift
public private(set) var targetingKeywords: [String : String]? { get } -
The expiration time of the bid
Declaration
Swift
public private(set) var exp: Double? { get } -
The cache ID for native ads
Declaration
Swift
public private(set) var nativeAdCacheId: String? { get } -
Events related to the bid
Declaration
Swift
public private(set) var events: [String : String] { get } -
Initializes a new
BidInfoinstance with the specified parameters.Declaration
Swift
public init(resultCode: ResultCode, targetingKeywords: [String : String]? = nil, exp: Double? = nil, nativeAdCacheId: String? = nil, events: [String: String] = [:])Parameters
resultCodeThe result code of the bid request.
targetingKeywordsOptional targeting keywords associated with the bid.
expOptional expiration time of the bid.
nativeAdCacheIdOptional cache ID for native ads.
eventsOptional dictionary of events related to the bid.
-
Retrieves the expiration time of the bid as an
NSNumber.Declaration
Swift
public func getExp() -> NSNumber?