Overview
The User Messaging Platform (UMP) SDK helps you manage user consent for personalized advertising in compliance with GDPR (General Data Protection Regulation) and CCPA (California Consumer Privacy Act).UMP integration requires the
adrop-ads-backfill module. Make sure you have completed the Getting Started installation guide first.Basic Usage
Use the Consent Manager to request user consent after initializing Adrop.Consent Status
The consent manager returns one of the following statuses:| Status | Description |
|---|---|
UNKNOWN | Consent status not yet determined |
REQUIRED | Consent required (popup will be shown) |
NOT_REQUIRED | Consent not required (non-GDPR region) |
OBTAINED | Consent already obtained |
Debug Settings (Test Mode)
Test GDPR/CCPA consent flows during development:Debug Geographies
| Geography | Description |
|---|---|
DISABLED | Use actual device location |
EEA | Test GDPR (European Economic Area) |
REGULATED_US_STATE | Test CCPA (California, etc.) |
OTHER | Test non-regulated regions |
Best Practices
Request Early
Request consent as early as possible in your app lifecycle, ideally right after SDK initialization.
Handle Errors
Always handle consent errors gracefully and provide fallback behavior.
Test All Scenarios
Use debug settings to test all consent scenarios (required, not required, obtained) before release.
Respect User Choice
Once consent is obtained or declined, respect the user’s choice and don’t repeatedly ask.