Android Question RewardedVideoAd - abstract method not implemented

SMOOTSARA

Active Member
Licensed User
Longtime 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

B4X:
===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

B4X:
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 :( :( :(

B4X:
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@[email protected] (000300-197041431):20)
    at com.google.android.gms.ads.internal.reward.client.l.f(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):27)
    at com.google.android.gms.ads.internal.a.u(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):471)
    at com.google.android.gms.ads.internal.reward.d.k_(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):88)
    at com.google.android.gms.ads.internal.reward.mediation.h.h(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):37)
    at com.google.android.gms.ads.internal.reward.client.n.f(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):96)
    at com.google.android.gms.ads.internal.a.u(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):471)
    at com.google.android.gms.ads.internal.ak.Z(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):261)
    at com.google.android.gms.ads.internal.gmsg.am.a(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):27)
    at com.google.android.gms.ads.internal.webview.j.b(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (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@[email protected] (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@[email protected] (000300-197041431):20)
    at com.google.android.gms.ads.internal.reward.client.l.f(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):27)
    at com.google.android.gms.ads.internal.a.u(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):471)
    at com.google.android.gms.ads.internal.reward.d.k_(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):88)
    at com.google.android.gms.ads.internal.reward.mediation.h.h(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):37)
    at com.google.android.gms.ads.internal.reward.client.n.f(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):96)
    at com.google.android.gms.ads.internal.a.u(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):471)
    at com.google.android.gms.ads.internal.ak.Z(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):261)
    at com.google.android.gms.ads.internal.gmsg.am.a(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (000300-197041431):27)
    at com.google.android.gms.ads.internal.webview.j.b(:com.google.android.gms.dynamite_dynamitemodulesa@[email protected] (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@[email protected] (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

B4X:
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
 
Top