除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-07-22 (世界標準時間)。
[null,null,["上次更新時間:2024-07-22 (世界標準時間)。"],[[["The Google User Messaging Platform (UMP) SDK helps manage user privacy choices and display relevant privacy messages within your app."],["You need to integrate the UMP SDK by adding your Ad Manager Application ID and requesting consent information at each app launch."],["To display privacy messages and gather consent, use the `LoadAndShowConsentFormIfRequired()` function after updating consent information."],["For users in regions requiring privacy options, implement a UI element that triggers the `ShowPrivacyOptionsForm()` function."],["Before requesting ads, ensure user consent is obtained by calling `CanRequestAds()` and handle potential consent gathering errors gracefully."]]],[]]