Skip to content

Consent Mediation

BETA

This feature is currently in beta, and only available starting v2.7.0. Please make sure that consent is being passed correctly before pushing this feature to production. Currently it works for Native SDKs (written in Java/Kotlin or Objc/Swift), meaning that if you're using a SDK/Plugin written in C# purely, our solution won't work.

To simplify the process of applying consent, we are adding a mediation feature, that is aware of the Consent API of selected SDKs, and will apply/update consent whenever needed.

Enable Mediation

Consent Mediation

Done 🚀

That's it, the Usercentrics SDK will now apply consent automatically to all supported SDKs. Make sure you apply consent to not supported SDKs as well.

Debugging

Debug Mode

To see debug messages, please set the SDK's loggerLevel to DEBUG.

When running your application with Consent Mediation enabled, you should expect the following events:

Enable Confirmation

Immediately after initialization, you will get a confirmation that Consent Mediation is Enabled:

[USERCENTRICS] Consent Mediation is Enabled

Scan

After your configuration has been loaded, the SDK will provide an overview of the supported services:

[USERCENTRICS][Mediation] 2/6 Services are supported: Unity Ads | Google Analytics for Firebase
Mediation

Whenever a user provides consent or the SDK has been initialized, the SDK will apply the latest user choices to each supported SDK:

[USERCENTRICS][Mediation] ✅ Google Analytics for Firebase: TRUE
[USERCENTRICS][Mediation] ✅ Unity Ads: FALSE

Default Consent

On first launch, you will see consent is applied immediately after initialization, even when a user still has not given consent. This happens because the default consent provided in your configuration is being applied.

Supported SDKs

SDK Template ID Added in version Source
Google Analytics for Firebase diWdt4yLB 2.7.0 Google's Consent Mode
Unity Ads hpb62D82I 2.7.0 Privacy consent and data APIs
AppLovin fHczTMzX8 2.7.0 Privacy-Consent and Data API for iOS and Android
ironSource 9dchbL797 2.7.0 Regulation Advanced Settings for iOS and Android