From 7dd923e75d43ea71f8457457b854111cc266b150 Mon Sep 17 00:00:00 2001 From: Justin Malandruccolo Date: Mon, 25 Nov 2024 11:39:07 -0800 Subject: [PATCH] Internal change PiperOrigin-RevId: 700052158 --- .../example/bannerexample/GoogleMobileAdsConsentManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/GoogleMobileAdsConsentManager.java b/java/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/GoogleMobileAdsConsentManager.java index b6ac700b..eed7a71f 100644 --- a/java/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/GoogleMobileAdsConsentManager.java +++ b/java/admob/BannerExample/app/src/main/java/com/google/android/gms/example/bannerexample/GoogleMobileAdsConsentManager.java @@ -59,12 +59,15 @@ public boolean canRequestAds() { return consentInformation.canRequestAds(); } + // [START is_privacy_options_required] /** Helper variable to determine if the privacy options form is required. */ public boolean isPrivacyOptionsRequired() { return consentInformation.getPrivacyOptionsRequirementStatus() == PrivacyOptionsRequirementStatus.REQUIRED; } + // [END is_privacy_options_required] + /** * Helper method to call the UMP SDK methods to request consent information and load/present a * consent form if necessary.