Skip to content

Unity Plugin - Custom parameters

Use SetCustomParameters to pass key-value pairs to demand partners for an ad unit. Call 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. Supported value types are string, bool, int, long, float, double and decimal.

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.
A11MediationSDK.SetCustomParameters("your_banner_ad_unit", new Dictionary<string, Dictionary<string, object>>
{
    { "google_ad_manager", new Dictionary<string, object> { { "hb_pb", "1.50" } } },
    { "applovin",          new Dictionary<string, object> { { "uid2_token", "test-token-123" } } },
    { "aurion11",          new Dictionary<string, object> { { "floor_price", 2.50m } } },
});

Floor price

Pass "floor_price" (decimal) inside the "aurion11" namespace before Load* to set a minimum floor price for the ad request. It applies to all later loads of the ad unit until you change it.

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.

A11MediationSDK.SetUserId("your-publisher-user-id");