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 Result
TherequestConsentInfoUpdate callback returns an AdropConsentResult object with the following properties:
Consent Status
The consent manager returns one of the following statuses:Privacy Options
Users must be able to change their consent after the first prompt. When UMP reports that a privacy options entry point is required, add one to your app — typically a Privacy settings item in your settings screen — and open the privacy options form from it.Requires the iOS SDK (
adrop-ads) and backfill (adrop-ads-backfill) 1.15.0 or later. Keep both on the same version — with an older backfill the status always returns unknown and the form is not shown. These two methods are available in Swift only.Check whether an entry point is required
Show the privacy options form
AdropConsentResult. The form opens only while an entry point is required; otherwise the stored consent is left unchanged and the result carries the current state with an error.
Pass
nil instead of a view controller to let UMP present the form on the topmost screen — useful when your settings screen is presented modally.Debug Settings (Test Mode)
Test GDPR/CCPA consent flows during development:Debug Geographies
Additional Methods
Best Practices
Request Early
Request consent as early as possible in your app lifecycle, ideally right after SDK initialization, and call it on every app launch.
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.
Offer Privacy Settings
When the privacy options status is required, show an entry point in your settings screen so users can change their consent at any time.
Related Documentation
Targeting
Set up user and context targeting
Getting Started
SDK installation and setup guide
Reference
Classes, delegates, and error codes