_marek Member Licensed User Longtime User Apr 2, 2019 #1 Have question about following warning from Google AdMob > Mobile Ads SDK (Android) > Get started Warning: Ads may be preloaded by the Mobile Ads SDK or mediation partner SDKs upon calling MobileAds.initialize(). If you need to obtain consent from users in the European Economic Area (EEA), set any request-specific flags (such astagForChildDirectedTreatment or tag_for_under_age_of_consent), or otherwise take action before loading ads, ensure you do so before initializing the Mobile Ads SDK. Full text: https://developers.google.com/admob/android/quick-start?hl=en-GB#import_the_mobile_ads_sdk I call: Code: rewardedVideoAd.LoadAdWithBuilder("ca-app-pub-xxxxxxxxxxxxxx", builder) only after successful consent retrieval, but I initialize RewardedVideoAd in Activity_Create (based on tutorial https://www.b4x.com/android/forum/threads/firebaseadmob-rewarded-video-ads.71430/#content): Code: Sub Activity_Create(FirstTime As Boolean) rewardedVideoAd.Initialize("rewardedVideoAd") ... End Sub Q:Am I violating the warning? Should I move ad initialization after user consent was obtained? Thanks, Marek
Have question about following warning from Google AdMob > Mobile Ads SDK (Android) > Get started Warning: Ads may be preloaded by the Mobile Ads SDK or mediation partner SDKs upon calling MobileAds.initialize(). If you need to obtain consent from users in the European Economic Area (EEA), set any request-specific flags (such astagForChildDirectedTreatment or tag_for_under_age_of_consent), or otherwise take action before loading ads, ensure you do so before initializing the Mobile Ads SDK. Full text: https://developers.google.com/admob/android/quick-start?hl=en-GB#import_the_mobile_ads_sdk I call: Code: rewardedVideoAd.LoadAdWithBuilder("ca-app-pub-xxxxxxxxxxxxxx", builder) only after successful consent retrieval, but I initialize RewardedVideoAd in Activity_Create (based on tutorial https://www.b4x.com/android/forum/threads/firebaseadmob-rewarded-video-ads.71430/#content): Code: Sub Activity_Create(FirstTime As Boolean) rewardedVideoAd.Initialize("rewardedVideoAd") ... End Sub Q:Am I violating the warning? Should I move ad initialization after user consent was obtained? Thanks, Marek
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2019 #2 It is probably better to initialize the ad just before you call LoadAdWithBuilder. Upvote 0