How to Integrate UniConsent CMP with Adjust (AAP/MMP) SDK

Adjust is a certified Google Mobile Measurement Partner (MMP) and App Attribution Partner (AAP). This guide explains how to integrate the UniConsent Consent Management Platform (CMP) with the Adjust SDK to ensure proper consent signal handling for privacy-compliant mobile attribution.

Android Integration

UniConsent CMP automatically detects the presence of the Adjust SDK and transmits consent signals using Adjust's SDK API.

Step 1: Initialize the AdJust SDK and UniConsent CMP SDK

Refer to the AdJust Android SDK Initialization Guide for full setup details. Disable the SDK and don't send any data to Adjust’s servers.

val appToken = "{YourAppToken}"
val environment = AdjustConfig.ENVIRONMENT_SANDBOX
val config = AdjustConfig(this, appToken, environment)
config.setLogLevel(LogLevel.VERBOSE)
//...
Adjust.initSdk(config)
Adjust.disable()

Step 2: Enable AdJust in the handle(Event event) Callback

Make sure to enable AdJust within the CMP callback, once user consent is available:

@Override
public void handle(Event event) {
  Adjust.enable()
}

What to Expect

  • When the integration is successful, you should see debug log entries such as:
  Sending consent signal to Adjust
  • Additionally, when filtering logs from com.uniconsent.sdk.aap, you should observe confirmation messages like:
  Successfully set consent signal to Adjust: {AD_USER_DATA=GRANTED, AD_STORAGE=GRANTED, AD_PERSONALIZATION=GRANTED, ANALYTICS_STORAGE=GRANTED}

These logs confirm that UniConsent CMP has successfully passed user consent preferences to the Adjust SDK, ensuring your app remains compliant with privacy regulations while maintaining accurate attribution tracking.

Note

To ensure that user consent is available, make sure to call your MMP/AAP API within the override fun handle(event: Event?) (Android) or public func onDismiss() (iOS) callback of the CMP.

Learn more about the UniConsent SDK API in the following guides: