Hi i'm trying to implement FirebaseAdMob.
I create PublisherId
Next i use code from https://www.b4x.com/android/forum/t...tegrated-with-firebase-backend.67710/#content
but receive failed: 1 when i use my PublisherId
This 1 is error code but what is wrong?
I create PublisherId
Next i use code from https://www.b4x.com/android/forum/t...tegrated-with-firebase-backend.67710/#content
B4X:
Sub Process_Globals
End Sub
Sub Globals
Private BannerAd As AdView
Private IAd As InterstitialAd
End Sub
Sub Activity_Create(FirstTime As Boolean)
BannerAd.Initialize2("BannerAd", "ca-app-pub-3940256099942544/6300978111", 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
End Sub
Sub BannerAd_FailedToReceiveAd (ErrorCode As String)
Log("failed: " & ErrorCode)
End Sub
Sub BannerAd_ReceiveAd
Log("received")
End Sub
This 1 is error code but what is wrong?
Last edited: