Deprecated RewardVideo (Companion only)

Only in Companion

RewardVideo Extension

Test Extension
image

1.About

This extension helps you to monetize your app with rewarded videos.
Successfully tested with Thunkable.

2.setting up

  • Go to your AdMob account.

  • Select your created app

image

  • Select Ad Units

image

  • Create a new rewarded ad unit.

image

  • Get your ad unit id.
    eg(ca-app-pub-26xxxxxxxxxxx/xxxxxxx3820)

  • Set it in RewardVideo Extension

image

3.Methods and Events

  • Load your ad and show

image

5.Download Extension

Note:Extension size is 1.6mb .

Download extension from below link
com.reward.aix (1.6 MB)

3 Likes

Downloaded sample apk.
App crashes.
Below is the error report.

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.t_123jerinjacob007.RewardVideo/com.t_123jerinjacob007.RewardVideo.Screen1}: java.lang.IllegalStateException: A required meta-data tag in your app's AndroidManifest.xml does not exist.  You must have the following declaration within the <application> element:     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2747)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2808)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1541)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:165)
at android.app.ActivityThread.main(ActivityThread.java:6365)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:883)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)

Caused by: java.lang.IllegalStateException: A required meta-data tag in your app’s AndroidManifest.xml does not exist. You must have the following declaration within the element:
at com.google.android.gms.common.zze.zzap(Unknown Source)
at com.google.android.gms.common.zze.isGooglePlayServicesAvailable(Unknown Source)
at com.google.android.gms.common.zzc.isGooglePlayServicesAvailable(Unknown Source)
at com.google.android.gms.internal.zzpx.zzP(Unknown Source)
at com.google.android.gms.internal.zzeg.zza(Unknown Source)
at com.google.android.gms.internal.zzeg.zza(Unknown Source)
at com.google.android.gms.internal.zzfb.getRewardedVideoAdInstance(Unknown Source)
at com.google.android.gms.ads.MobileAds.getRewardedVideoAdInstance(Unknown Source)
at com.reward.RewardVideo.(RewardVideo.java:42)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at gnu.expr.PrimProcedure.apply(PrimProcedure.java:272)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:234)
at gnu.mapping.CallContext.runUntilValue(CallContext.java:298)
at gnu.kawa.reflect.Invoke.applyN(Invoke.java:209)
at gnu.mapping.ProcedureN.apply2(ProcedureN.java:39)
at com.t_123jerinjacob007.RewardVideo.Screen1.$define(Screen1.yail:10181)
at com.google.appinventor.components.runtime.Form.onCreateFinish(Form.java:369)
at com.google.appinventor.components.runtime.Form.onCreate(Form.java:310)
at android.app.Activity.performCreate(Activity.java:6852)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2700)

1 Like

Figured it out, will look into it.

That’s the problem, you can’t put meta in your manifest, as it requires server-side work within Compiler.java (in buildserver folder).

1 Like

But how it worked in companion, when live test?

The extension may work or may not, what I mean is that whether it does work with meta or without it, if you need to add a meta-tag still, at the moment that is not possible.