Android Question RewardedVideoAd - abstract method not implemented

Discussion in 'Android Questions' started by arastoo, Jun 7, 2018.

  1. arastoo

    arastoo Active Member Licensed User

    Hey guys :)

    I've implemented google video ads in the app.

    When the program is run, this text is written in the Reports LOG section

    Code:
    ===Ad received. Now wait for the right moment to show the RewardedVideoAd_1.==
    This message will be displayed after clicking on the button and requesting a video

    Code:
    RewardedVideoAd_1.Ready => true
    ** 
    Activity (masteractivity) Pause, UserClosed = false **
    sending message 
    to waiting queue (rewardedvideoad_1_adopened)
    Then video is displayed without any problem :):):)

    ----------------------------------------------------------------------------

    After the full video is displayed, the program exits the following error :( :( :(

    Code:
    Exception caught
    java.lang.AbstractMethodError: abstract method 
    not implemented
        at anywheresoftware.b4a.admobwrapper.AdViewWrapper$RewardedVideoAdWrapper$
    1.onRewardedVideoCompleted(AdViewWrapper.java)
        at com.google.android.gms.internal.ads.zzahj.onRewardedVideoCompleted(Unknown Source)
        at com.google.android.gms.internal.ads.zzahf.dispatchTransaction(Unknown Source)
        at com.google.android.gms.internal.ads.zzek.onTransact(Unknown Source)
        at android.os.Binder.transact(Binder.java:
    361)
        at 
    or.b(:com.google.android.gms.dynamite_dynamitemodulesa@12685000@12.6.85 (000300-197041431):20)
        at com.google.android.gms.ads.internal.reward.client.l.f(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):27)
        at com.google.android.gms.ads.internal.a.u(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):471)
        at com.google.android.gms.ads.internal.reward.d.k_(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):88)
        at com.google.android.gms.ads.internal.reward.mediation.h.h(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):37)
        at com.google.android.gms.ads.internal.reward.client.n.f(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):96)
        at com.google.android.gms.ads.internal.a.u(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):471)
        at com.google.android.gms.ads.internal.ak.Z(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):261)
        at com.google.android.gms.ads.internal.gmsg.am.a(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):27)
        at com.google.android.gms.ads.internal.webview.j.b(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):346)
        at com.google.android.gms.ads.internal.webview.ab.run(Unknown Source)
        at android.os.Handler.handleCallback(Handler.java:
    733)
        at android.os.Handler.dispatchMessage(Handler.java:
    95)
        at com.google.android.gms.ads.internal.util.f.dispatchMessage(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):9)
        at android.os.Looper.loop(Looper.java:
    146)
        at android.app.ActivityThread.main(ActivityThread.java:
    5593)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:
    515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:
    1283)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
    1099)
        at dalvik.system.NativeStart.main(Native Method)
    java.lang.AbstractMethodError: abstract method 
    not implemented
        at anywheresoftware.b4a.admobwrapper.AdViewWrapper$RewardedVideoAdWrapper$
    1.onRewardedVideoCompleted(AdViewWrapper.java)
        at com.google.android.gms.internal.ads.zzahj.onRewardedVideoCompleted(Unknown Source)
        at com.google.android.gms.internal.ads.zzahf.dispatchTransaction(Unknown Source)
        at com.google.android.gms.internal.ads.zzek.onTransact(Unknown Source)
        at android.os.Binder.transact(Binder.java:
    361)
        at 
    or.b(:com.google.android.gms.dynamite_dynamitemodulesa@12685000@12.6.85 (000300-197041431):20)
        at com.google.android.gms.ads.internal.reward.client.l.f(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):27)
        at com.google.android.gms.ads.internal.a.u(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):471)
        at com.google.android.gms.ads.internal.reward.d.k_(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):88)
        at com.google.android.gms.ads.internal.reward.mediation.h.h(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):37)
        at com.google.android.gms.ads.internal.reward.client.n.f(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):96)
        at com.google.android.gms.ads.internal.a.u(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):471)
        at com.google.android.gms.ads.internal.ak.Z(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):261)
        at com.google.android.gms.ads.internal.gmsg.am.a(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):27)
        at com.google.android.gms.ads.internal.webview.j.b(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):346)
        at com.google.android.gms.ads.internal.webview.ab.run(Unknown Source)
        at android.os.Handler.handleCallback(Handler.java:
    733)
        at android.os.Handler.dispatchMessage(Handler.java:
    95)
        at com.google.android.gms.ads.internal.util.f.dispatchMessage(:com.google.android.gms.dynamite_dynamitemodulesa@
    12685000@12.6.85 (000300-197041431):9)
        at android.os.Looper.loop(Looper.java:
    146)
        at android.app.ActivityThread.main(ActivityThread.java:
    5593)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:
    515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:
    1283)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
    1099)
        at dalvik.system.NativeStart.main(Native Method)
    LIB -------------
    firebaseadmob 1.5
    b4a 8.30 beta
    -------------------
    my sub

    Code:
    Sub RewardedVideoAd_1_AdLeftApplication
        LogColor(
    "RewardedVideoAd_1_AdLeftApplication",Colors.Green)
    End Sub

    Sub RewardedVideoAd_1_ReceiveAd
        LogColor(
    "===Ad received. Now wait for the right moment to show the RewardedVideoAd_1.==",Colors.green)
    End Sub

    Sub RewardedVideoAd_1_Rewarded (Item As Object)
        
    'Item is currently not used
        LogColor("======Ad_Rewarded Item ==> "&Item,Colors.green)
        number_video_wach    =    number_video_wach+
    20
        lbl_star_counter.Text = number_video_wach
        CodeModule.AriaSharedPreferences_1.Saveint(
    "video_counter",number_video_wach)
        CodeModule.special_Toast( 
    "You are rewarded!!!")
    End Sub

    Sub RewardedVideoAd_1_FailedToReceiveAd (ErrorCode As String)
        
    ''''''    https://developers.google.com/android/reference/com/google/android/gms/ads/AdRequest#ERROR_CODE_NO_FILL
        LogColor("====Ad_FailedToReceiveAd Failed:==== "& ErrorCode,Colors.Green)
    End Sub

    Sub RewardedVideoAd_1_AdClosed
        LogColor(
    "====AdClosed Opened====",Colors.Green)
    End Sub

    Sub RewardedVideoAd_1_AdOpened
        LogColor(
    "====AdOpened Opened====",Colors.Green)
    End Sub
    thank you
     
  2. arastoo

    arastoo Active Member Licensed User

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