実現したいこと
UMP SDKを実施したい。
前提
admobで該当アプリのGDPRメッセージを作成し、本日公開した。
公開して一時間経過している。
デバッグモードもEEAに設定しEmulatorでテストしているため、GDPR同意フォーム表示へ進むはずである。
発生している問題
consentInformation.isConsentFormAvailable()がfalseとなりloadForm()へ進まず、 elseのloadAdmob()に進む。
該当のソースコード
java
1 private void checkGDPRMessage(){ 2 3 // Set tag for under age of consent. false means users are not under 4 // age. 5 ConsentRequestParameters params = new ConsentRequestParameters 6 .Builder() 7 .setTagForUnderAgeOfConsent(false) 8 .build(); 9 10 // デバッグモード設定 11 ConsentDebugSettings debugSettings = new ConsentDebugSettings.Builder(this) 12 .setDebugGeography(ConsentDebugSettings 13 .DebugGeography 14 .DEBUG_GEOGRAPHY_EEA) 15 .build(); 16 params = new ConsentRequestParameters 17 .Builder() 18 .setTagForUnderAgeOfConsent(false) 19 .setConsentDebugSettings(debugSettings) 20 .build(); 21 22 consentInformation = UserMessagingPlatform.getConsentInformation(this); 23 24 consentInformation.requestConsentInfoUpdate( 25 this, 26 params, 27 new ConsentInformation.OnConsentInfoUpdateSuccessListener() { 28 @Override 29 public void onConsentInfoUpdateSuccess() { 30 // The consent information state was updated. 31 // You are now ready to check if a form is available. 32 if (consentInformation.isConsentFormAvailable()) { 33 //GDPR同意フォーム表示 34 loadForm(); 35 }else{ 36 //Admob読込 37 loadAdmob(); 38 } 39 } 40 }, 41 new ConsentInformation.OnConsentInfoUpdateFailureListener() { 42 @Override 43 public void onConsentInfoUpdateFailure(FormError formError) { 44 // Handle the error. 45 } 46 }); 47 }

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。