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-09-07 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-09-07 UTC."],[[["`ConsentDebugSettings` allows publishers to test the User Messaging Platform (UMP) with debug geography and specific test devices."],["`DebugGeography` enables testing the UMP behavior as if the device were located in a specific region, aiding in compliance with regional regulations."],["`TestDeviceHashedIds` allows registering individual devices for testing purposes, ensuring debug settings are not accidentally applied to all users."],["To obtain the `hashedDeviceId`, call `ConsentInformation` within your app and retrieve the ID from the console logs, then add it to `TestDeviceHashedIds` for targeted testing."]]],[]]