NimbusAd
struct NimbusAd
extension NimbusAd : Decodable, Encodable, Equatable
Ad sent back by Nimbus
-
Position of the ad
Declaration
Swift
let position: String -
The type of creative returned
Declaration
Swift
let auctionType: NimbusAuctionType -
The winning auction’s precise winning bid
Declaration
Swift
let bidRaw: Double -
This winning auction’s bid in cents
Declaration
Swift
let bidInCents: Int -
The content type of this creative. “text/html” for static or a mime type for video ads
Declaration
Swift
let contentType: String -
This unique auction id. Represented as a GUID
Declaration
Swift
let auctionId: String -
The network that won this auction
Declaration
Swift
let network: String -
The markup returned by Nimbus. Will be in the format of html for static or xml VAST for video
Declaration
Swift
let markup: String -
Whether the original request was for an interstitial ad
Declaration
Swift
let isInterstitial: Bool -
The winning placement id if the creative returned is Facebook or maps to a line item
Declaration
Swift
let placementId: String? -
The ad dimensions for the creative. These will not be present for Video or Facebook ads
Declaration
Swift
let adDimensions: NimbusAdDimensions? -
Trackers containing additional urls for measurement
Declaration
Swift
let trackers: NimbusAdTrackers? -
Whether Nimbus has determined the creative returned requests MRAID in the top level markup
Declaration
Swift
let isMraid: Bool -
Duration of the ad (only used for video ads)
Declaration
Swift
let duration: Int? -
The number of seconds a bidder can wait before rendering the impression
Declaration
Swift
let exp: Int? -
Win/loss notifications for Nimbus
Declaration
Swift
let externalNotifications: NimbusAdExternalNotifications? -
Custom extensions (includes info about SKAdNetwork)
Declaration
Swift
let extensions: NimbusAdExtensions? -
init(position:auctionType:bidRaw:bidInCents:contentType:auctionId:network:markup:isInterstitial:placementId:duration:exp:adDimensions:trackers:isMraid:externalNotifications:extensions:)Initializes a NimbusAd
Declaration
Swift
init(position: String, auctionType: NimbusAuctionType, bidRaw: Double, bidInCents: Int, contentType: String, auctionId: String, network: String, markup: String, isInterstitial: Bool, placementId: String?, duration: Int?, exp: Int? = nil, adDimensions: NimbusAdDimensions?, trackers: NimbusAdTrackers?, isMraid: Bool, externalNotifications: NimbusAdExternalNotifications? = nil, extensions: NimbusAdExtensions?) -
Undocumented
Declaration
Swift
static func != (lhs: Self, rhs: Self) -> Bool -
Add keywords for custom targeting from Nimbus ad to GAMRequest
Declaration
Swift
func applyDynamicPrice(into request: GAMRequest, mapping: NimbusGAMLinearPriceMapping = .banner())Parameters
mappingA mapping composed of multiple LinearPriceGranularities in ascending order. Default: NimbusGAMLinearPriceMapping.banner()
NimbusAd Structure Reference