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

Branch is a certified Google Mobile Measurement Partner (MMP) and App Attribution Partner (AAP). This guide outlines how to integrate the UniConsent Consent Management Platform (CMP) with the Branch SDK to ensure proper consent signal transmission for mobile app attribution.

Android Integration

UniConsent CMP automatically detects the presence of the Branch SDK and passes user consent signals using Branch’s official API.

Step 1: Initialize the Branch SDK and UniConsent CMP SDK

Follow the Branch Android SDK Integration Guide for complete setup instructions.

Step 2: Use the Branch API

You do not need to manually call setDMAParamsForEEA to pass consent signals for Google DMA compliance.

The UniConsent CMP handles this automatically.

What to Expect

  • Once integrated correctly, you will see debug log entries such as:
  Sending consent signal to Branch
  • When filtering logs from com.uniconsent.sdk.aap, you should observe confirmation messages like:
  Successfully set consent signal to Branch: {AD_USER_DATA=GRANTED, AD_STORAGE=GRANTED, AD_PERSONALIZATION=GRANTED, ANALYTICS_STORAGE=GRANTED}

These logs indicate that UniConsent CMP has successfully passed consent information to the Branch SDK, enabling privacy-compliant 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: