Table of Contents

Method EnableConsentDebugging

Namespace
Titipi.MocaLib2

EnableConsentDebugging(ConsentDebugGeography, List<TestDevice>)

Makes UMP treat this device as if it were in geography, so the consent form can be exercised from a region that would not otherwise show one. Call before RequestUmpConsentAsync(), in development builds only — remove before shipping.

public static void EnableConsentDebugging(ConsentDebugGeography geography, List<TestDevice> devices)

Parameters

geography ConsentDebugGeography

Region to simulate. EEA to get the GDPR form.

devices List<TestDevice>

Devices the override applies to — UMP ignores it on every other device. Each Id is the UMP hashed device ID, which UMP prints to the device log on first run. It is a different value from the AdMob test device ID used by AdMobModule.EnableTestAds.