Package-level declarations

Utilities to generate key-value pairs for Dynamic Price integrations.

Types

Link copied to clipboard
class LinearPriceGranularity @JvmOverloads constructor(val min: Int, val max: Int, val step: Int = 20) : Mapping

A mapping using a linear step function to generate the target dynamic price value

Link copied to clipboard

A mapping composed of multiple LinearPriceGranularities in ascending order.

Link copied to clipboard
fun interface Mapping

Provides a mapping from a Nimbus response to Dynamic Price target

Properties

Link copied to clipboard
const val BID_KEY: String
Link copied to clipboard

Default Mapping for Banner ad units

Link copied to clipboard

Default Mapping for Fullscreen (Interstitial) ad units

Link copied to clipboard

Returns the default Dynamic Price Mappings for a NimbusResponse

Link copied to clipboard
const val DURATION_KEY: String
Link copied to clipboard
const val ID_KEY: String
Link copied to clipboard
const val NETWORK_KEY: String
Link copied to clipboard
const val SIZE_KEY: String
Link copied to clipboard
const val TYPE_KEY: String
Link copied to clipboard

Functions

Link copied to clipboard
fun NimbusResponse.targetingMap(mapping: Mapping = defaultMapping): Map<String, String>

Returns a targeting map that must be applied for Dynamic Price to function properly