Stay organized with collections
Save and categorize content based on your preferences.
GoogleMobileAds.Ump.Api.ConsentDebugSettings
Debug settings for testing User Messaging Platform.
Summary
Public attributes
DebugGeography
DebugGeography DebugGeography = DebugGeography.Disabled
The debug geography for testing purposes.
TestDeviceHashedIds
List< string > TestDeviceHashedIds = new List()
Registers a device as a test device. Test devices respect debug geography settings to enable easier testing. Test devices must be added individually so that debug geography settings won't accidentally get released to all users.
You can access the hashedDeviceId from the console logs once your app calls ConsentInformation.
Details |
Template Parameters |
string
|
hashedId The hashed device ID that should be considered a debug device.
|
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-05-22 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-05-22 UTC."],[[["`ConsentDebugSettings` allows developers to test the User Messaging Platform (UMP) with simulated geography and designated test devices."],["The `DebugGeography` attribute helps simulate a specific geographic region for testing consent flows."],["Test devices can be registered using their hashed IDs via `TestDeviceHashedIds` to ensure debug settings are not applied to all users."],["Hashed device IDs for testing can be obtained from the console logs after calling `ConsentInformation`."]]],[]]