Android Question FirebaseAdMob / errors descriptions

victormedranop

Well-Known Member
Licensed User
Longtime User
Hi starting to work with this library. but got error 1.
I made successfully the tutorial.

and I cant find what is means.

Victor
 

DonManfred

Expert
Licensed User
Longtime User
Post the full Error
 
Upvote 0

victormedranop

Well-Known Member
Licensed User
Longtime User
Using exact example from Erel. just changed my data from admod

B4X:
'Erel -> BannerAd.Initialize2("BannerAd", "ca-app-pub-3940256099942544/6300978111", BannerAd.SIZE_SMART_BANNER)
 BannerAd.Initialize2("BannerAd", "ca-app-pub-1469396064706271~8656181070", 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
'Erel -> IAd.Initialize("iad", "ca-app-pub-3940256099942544/1033173712")
 IAd.Initialize("iad", "ca-app-pub-1469396064706271/9174237587")
 IAd.LoadAd
 
Upvote 0

victormedranop

Well-Known Member
Licensed User
Longtime User
my mistake.
working code

B4X:
 BannerAd.Initialize2("BannerAd", "ca-app-pub-1469396064706271/9174237587", 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-1469396064706271~8656181070")
 IAd.LoadAd
 
Upvote 0
Top