From ab7cc031d1c22e5c8b2fedf3184f79e47545fa83 Mon Sep 17 00:00:00 2001 From: Justin Malandruccolo Date: Mon, 25 Nov 2024 11:46:31 -0800 Subject: [PATCH] Internal change PiperOrigin-RevId: 700054431 --- .../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.