if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
if (getProcessName().equals(getPackageName())) {
MobileAds.initialize(this,getString(R.string.ad_mob_app_id));
}else {
WebView.setDataDirectorySuffix("ads_dir");
}
}else {
MobileAds.initialize(this,getString(R.string.ad_mob_app_id));
}
My Question is: 1) Do i need to call MobileAds.initialize(this,getString(R.string.ad_mob_app_id)); in both process? 2) In Andoid P Should i call MobileAds.initialize(this,getString(R.string.ad_mob_app_id)); after WebView.setDataDirectorySuffix("ads_dir"); or before?
Hi Ali,
Thank you for reaching out to us.
I would first recommend checking out this thread, and seeing if it would suffice in answering your questions and/or fixing the issue. If the issue persists, could you then kindly provide the details below (via Reply privately to author) so that I can further investigate?
Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team
Hi Ali,
My apologies on the link I gave not being sufficient for your purposes. I'll be discussing your concern with the rest of the team in order to gather our insights on this. Rest assured that we'll get back to you shortly.