Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-07-22 UTC.
[null,null,["Terakhir diperbarui pada 2024-07-22 UTC."],[[["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."]]],[]]