I configured ad in firebase and got id from Admob account. The sample ad is showing but the actual one is not showing up.
Is there any reason. In the code below
B4X:
'Admob
BannerAd.Initialize2("BannerAd", "ca-app-pub-xxxxxxx/xxxxxx", BannerAd.SIZE_SMART_BANNER)
Dim height As Int
If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
'phones
If 100%x > 100%y Then height = 32dip Else height = 50dip
Else
'tablets
height = 90dip
End If
Activity.AddView(BannerAd, 0dip, 100%y - height, 100%x, height)
BannerAd.LoadAd
IAd.Initialize("iad", "ca-app-pub-xxxx/xxxxx")
IAd.LoadAd
If IAd.Ready Then IAd.Show
Check this other excellent example from @Jack Cole. To help the new members to make money with B4A, I tried to compile all the relevant Admob code (except mediation) of the forum in this example and put comments and links. This is a work in progress. Any code and sample to improve this example...