I can't display NativeAds. I am using Erel's code
from here: https://www.b4x.com/android/forum/t...integrated-with-firebase-backend.67710/page-3
I am only getting failed: 0
Same thing is with Test Ad Unit ID: ca-app-pub-3940256099942544/2247696110
provided here:https://developers.google.com/admob/android/test-ads
I am using real device and regular banner works fine.
Any suggestions?
B4X:
Sub Globals
Private adview1 As NativeExpressAd
End Sub
Sub Activity_Create(FirstTime As Boolean)
adview1.Initialize("Ad", "ca-app-pub-126757084444444/44444444", 100%x, 200dip) 'change the ad unit id
Activity.AddView(adview1, 0, 0, 100%x, 200dip)
adview1.LoadAd
End Sub
Sub Ad_FailedToReceiveAd (ErrorCode As String)
Log("failed: " & ErrorCode)
End Sub
Sub Ad_ReceiveAd
Log("received")
End Sub
Sub Ad_AdScreenDismissed
Log("Dismissed")
End Sub
Sub Activity_Pause (UserClosed As Boolean)
adview1.Pause
End Sub
Sub Activity_Resume
adview1.Resume
End Sub
from here: https://www.b4x.com/android/forum/t...integrated-with-firebase-backend.67710/page-3
I am only getting failed: 0
Same thing is with Test Ad Unit ID: ca-app-pub-3940256099942544/2247696110
provided here:https://developers.google.com/admob/android/test-ads
I am using real device and regular banner works fine.
Any suggestions?