Android Question FireBase AdMob App ID vs Ad ID

abhishek007p

Active Member
Licensed User
Longtime User
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.
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:

Computersmith64

Well-Known Member
Licensed User
Longtime User
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.
You only need the Ad unit ID.

- Colin.
 
Upvote 0
Top