Android Question Ad initializations in relation to user consent retrieval

_marek

Member
Licensed User
Longtime User
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:
B4X:
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):

B4X:
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
 
Top