Android SDK - Custom parameters
All ad units support a customParameters property for passing key-value pairs to demand partners. Set it before load(). It applies to all later loads until you change it.
Parameters are grouped by namespace. Unknown namespaces are ignored. Network parameters are passed through unchanged, so keys and values must follow that network SDK's documentation.
| Namespace | Forwarded to |
|---|---|
"google_ad_manager" |
Google Ad Manager as custom targeting |
"applovin" |
AppLovin MAX as local extra parameters |
"aurion11" |
MDN11 SDK. See Floor price. |
val banner = A11.getBannerAd("adUnitID")
banner.customParameters = mapOf(
"google_ad_manager" to mapOf("hb_pb" to "1.50"),
"applovin" to mapOf("uid2_token" to "test-token-123"),
"aurion11" to mapOf("floor_price" to BigDecimal("2.50")),
)
banner.load(this)
Floor price
Pass "floor_price" (BigDecimal) before each load() inside the "aurion11" namespace to set a minimum floor price for the ad request.
Caution
Floor prices only work with dynamic ad units. Don't release your app using floor_price for a fixed ad unit.
Publisher-provided user ID
You can optionally supply the SDK with a publisher-defined user identifier. When set, it is passed alongside ad requests and can be used for use cases such as user-level reporting or targeting.
Info
Set the user ID before initializing MDN11 SDK, so it's included in the entire event lifecycle.