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 } -
True when
Prebid.shared.filterOutUncachedBidsremoved the bid Prebid Server designated as the winner because it had no successful Prebid Cache entry, and a lower-priced cached bid was promoted in its place.The demand is still valid and its targeting is attached to the ad object, so
resultCoderemains.prebidDemandFetchSuccess. This flag exists purely so publishers can track the yield impact of the filtering.Declaration
Swift
public private(set) var topBidFiltered: Bool { 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] = [:], topBidFiltered: Bool = false)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.
topBidFilteredWhether the PBS-designated winning bid was filtered out for lacking a cache entry and a lower-priced cached bid was promoted in its place.
-
Retrieves the expiration time of the bid as an
NSNumber.Declaration
Swift
public func getExp() -> NSNumber?