Skip to main content

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 native module. Make sure you have completed the Getting Started installation guide first.

Basic Usage

Use the AdropConsent module to request user consent after initializing Adrop.

AdropConsentResult

requestConsentInfoUpdate() returns the following result type:

AdropConsentStatus


Debug Settings (Test Mode)

Test GDPR/CCPA consent flows during development:

Debug Geographies

Debug settings should only be used during development. Remove or disable them before releasing to production.

Additional Methods

getConsentStatus

Returns the current consent status.

canRequestAds

Returns whether ad requests are currently allowed.

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.

Targeting

Set up user and context targeting

Getting Started

SDK installation and setup guide

Reference

Types, methods, and error codes