Android Question NativeExpressAd failed with ErrorCode 0

Discussion in 'Android Questions' started by danijel, Jul 20, 2019.

  1. danijel

    danijel Member Licensed User

    I can't display NativeAds. I am using Erel's code

    Code:
    Sub Globals
       
    Private adview1 As NativeExpressAd
    End Sub

    Sub Activity_Create(FirstTime As Boolean)
       adview1.Initialize(
    "Ad""ca-app-pub-126757084444444/44444444"100%x200dip'change the ad unit id
       Activity.AddView(adview1, 00,  100%x200dip)
       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? o_O
     
  2. asales

    asales Well-Known Member Licensed User

    Erel and danijel like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice