特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-07-22 UTC。
[null,null,["最終更新日 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."]]],[]]