NimbusGAMLinearPriceGranularity
public struct NimbusGAMLinearPriceGranularity : NimbusDynamicPriceMapping, Comparable, Equatable
A mapping using a linear step function to generate the keywords By default, this class will map to a keyword of “nimbus{width}_{height}:{bucket}” i.e nimbus320_50:500 for a bid at 5 dollars.
-
The minimum bid in cents
Declaration
Swift
public let min: Int
-
The maximum bid in cents
Declaration
Swift
public let max: Int
-
The step size for each line item mapping. Default: 20
Declaration
Swift
public let step: Int
-
Constructs a new
NimbusGAMLinearPriceGranularity
- min: The minimum bid in cents
- max: The maximum bid in cents
- step: The step size for each line item mapping. Default: 20
Declaration
Swift
public init(min: Int, max: Int, step: Int = 20)
-
Constructs a new
NimbusGAMLinearPriceGranularity
- min: The minimum bid in cents
- max: The maximum bid in cents
Declaration
Swift
public init(min: Int, max: Int)
-
Returns the keywords to be inserted in the MoPub ad
ad: An ad from Nimbus
Declaration
Swift
public func getKeywords(ad: NimbusAd) -> String?
Return Value
The keywords to set on the MoPubView