when google sends email instructions they also give 'App ID' does that have any use or not? or only Ad ID will work? test ads are working fine with just ad id.
And is it a good practice is use ad.resume and ad.pause methods in activity_resume and activity_pause. i have been doing it in older version.
https://developers.google.com/admob/android/quick-start
Initialize MobileAds
Before loading ads, have your app initialize the Mobile Ads SDK by calling MobileAds.initialize() with your AdMob App ID. This only needs to be done once, ideally at app launch. You can find your app's App ID in the AdMob UI.
Here's an example of how to call the initialize() method in an Activity:
And is it a good practice is use ad.resume and ad.pause methods in activity_resume and activity_pause. i have been doing it in older version.
B4X:
Sub Activity_Resume
If AdBanner.IsInitialized = True Then
AdBanner.Resume
End If
End Sub
Sub Activity_Pause (UserClosed As Boolean)
If AdBanner.IsInitialized = True Then
AdBanner.Pause
End If
End Sub
Last edited: