Stay organized with collections Save and categorize content based on your preferences.
Utility methods for managing consent information from users.
Summary
Properties
Public static functions
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."],[[["GoogleMobileAds.Ump.Api.ConsentInformation provides utility methods for managing user consent information, including status and privacy options requirements."],["Developers can use this API to check if ads can be requested (CanRequestAds) and if a consent form is available (IsConsentFormAvailable)."],["The API allows resetting consent status (Reset) and updating consent information based on request parameters (Update)."],["ConsentStatus and PrivacyOptionsRequirementStatus properties offer insight into the current user's consent state."],["The Update method utilizes a callback to handle consent information updates or potential FormErrors during the process."]]],["This document details methods for managing user consent. Key actions include checking if ads can be requested (`CanRequestAds`), verifying the availability of a consent form (`IsConsentFormAvailable`), and clearing stored consent data (`Reset`). Developers can update consent information via a request (`Update`), receiving feedback through a callback. Consent status (`ConsentStatus`) and privacy option status (`PrivacyOptionsRequirementStatus`) are accessible properties, providing insights into the user's consent-related choices.\n"]]