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:Consent Result
TherequestConsentInfoUpdate callback returns an AdropConsentResult object with the following properties:
Additional Methods
You can also query the consent status and ad request availability independently:Debug Settings (Test Mode)
Test GDPR/CCPA consent flows during development:Debug Geographies
Complete Example
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.
Related Documentation
Targeting
Set up user and context targeting
Getting Started
SDK installation and setup guide
Reference
Types, methods, and error codes