S samannnn Member Jul 23, 2025 #1 hello friends, after upgrade b4a version 12.80. to 13.40, video advertisement doesn't work, B4X: After MobileAds_Ready onConsentInfoUpdateSuccess consent form dismissed Consent: OBTAINED adshelper$ResumableSub_FetchOpenAdresume (java line: 245) java.lang.RuntimeException: Field: APP_OPEN_AD_ORIENTATION_PORTRAIT not found in: com.google.android.gms.ads.appopen.AppOpenAd at anywheresoftware.b4j.object.JavaObject$FieldCache.getField(JavaObject.java:307) at anywheresoftware.b4j.object.JavaObject.GetField(JavaObject.java:182) at ir.homaware.car.adshelper$ResumableSub_FetchOpenAd.resume(adshelper.java:245) at ir.homaware.car.adshelper._fetchopenad(adshelper.java:180) at ir.homaware.car.groupland._loadadmobads(groupland.java:1029) at ir.homaware.car.groupland$ResumableSub_CheckConsentAndAddAds.resume(groupland.java:875) at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:275) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:215) at anywheresoftware.b4a.BA.raiseEvent(BA.java:201) at anywheresoftware.b4a.keywords.Common$15.run(Common.java:1857) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) i use adshelper V1.00. after looking for newest version i found V1.01. but it doesn't support video ads. my project is not b4xpage
hello friends, after upgrade b4a version 12.80. to 13.40, video advertisement doesn't work, B4X: After MobileAds_Ready onConsentInfoUpdateSuccess consent form dismissed Consent: OBTAINED adshelper$ResumableSub_FetchOpenAdresume (java line: 245) java.lang.RuntimeException: Field: APP_OPEN_AD_ORIENTATION_PORTRAIT not found in: com.google.android.gms.ads.appopen.AppOpenAd at anywheresoftware.b4j.object.JavaObject$FieldCache.getField(JavaObject.java:307) at anywheresoftware.b4j.object.JavaObject.GetField(JavaObject.java:182) at ir.homaware.car.adshelper$ResumableSub_FetchOpenAd.resume(adshelper.java:245) at ir.homaware.car.adshelper._fetchopenad(adshelper.java:180) at ir.homaware.car.groupland._loadadmobads(groupland.java:1029) at ir.homaware.car.groupland$ResumableSub_CheckConsentAndAddAds.resume(groupland.java:875) at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:275) at anywheresoftware.b4a.BA.raiseEvent2(BA.java:215) at anywheresoftware.b4a.BA.raiseEvent(BA.java:201) at anywheresoftware.b4a.keywords.Common$15.run(Common.java:1857) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:6669) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858) i use adshelper V1.00. after looking for newest version i found V1.01. but it doesn't support video ads. my project is not b4xpage
asales Expert Licensed User Longtime User Jul 23, 2025 #2 Check this post and change this line in the AdsHelper class that you use: B4A v13.40 BETA - with a shiny new SDK I'm happy to release a new beta version of B4A. The prepackaged Android SDK has been updated and is based on the current latest versions of all resources and Android SDK 36. The handling of SDK resources was improved. The built-in themes were updated with the new edge-to-edge feature disabled... www.b4x.com B4X: AppOpenAd.RunMethod("load", Array(ctxt, AppOpenAdUnit, GetAdRequest, AppOpenAdCallback)) Check this updated exemple too: [B4XPages] Admob Example Check this other excellent example from @Jack Cole. To help the new members to make money with B4A, I tried to compile all the relevant Admob code (except mediation) of the forum in this example and put comments and links. This is a work in progress. Any code and sample to improve this example... www.b4x.com Upvote 0
Check this post and change this line in the AdsHelper class that you use: B4A v13.40 BETA - with a shiny new SDK I'm happy to release a new beta version of B4A. The prepackaged Android SDK has been updated and is based on the current latest versions of all resources and Android SDK 36. The handling of SDK resources was improved. The built-in themes were updated with the new edge-to-edge feature disabled... www.b4x.com B4X: AppOpenAd.RunMethod("load", Array(ctxt, AppOpenAdUnit, GetAdRequest, AppOpenAdCallback)) Check this updated exemple too: [B4XPages] Admob Example Check this other excellent example from @Jack Cole. To help the new members to make money with B4A, I tried to compile all the relevant Admob code (except mediation) of the forum in this example and put comments and links. This is a work in progress. Any code and sample to improve this example... www.b4x.com
S samannnn Member Jul 24, 2025 #3 asales said: Check this post and change this line in the AdsHelper class that you use: B4A v13.40 BETA - with a shiny new SDK I'm happy to release a new beta version of B4A. The prepackaged Android SDK has been updated and is based on the current latest versions of all resources and Android SDK 36. The handling of SDK resources was improved. The built-in themes were updated with the new edge-to-edge feature disabled... www.b4x.com B4X: AppOpenAd.RunMethod("load", Array(ctxt, AppOpenAdUnit, GetAdRequest, AppOpenAdCallback)) Check this updated exemple too: [B4XPages] Admob Example Check this other excellent example from @Jack Cole. To help the new members to make money with B4A, I tried to compile all the relevant Admob code (except mediation) of the forum in this example and put comments and links. This is a work in progress. Any code and sample to improve this example... www.b4x.com Click to expand... thanksssssssssssssssssssssssss The problem is solved by changing the following line in AdsHelper: B4X: AppOpenAd.RunMethod("load", Array(ctxt, AppOpenAdUnit, GetAdRequest, AppOpenAd.GetField("APP_OPEN_AD_ORIENTATION_PORTRAIT"), AppOpenAdCallback)) to : B4X: AppOpenAd.RunMethod("load", Array(ctxt, AppOpenAdUnit, GetAdRequest, AppOpenAdCallback)) Upvote 0
asales said: Check this post and change this line in the AdsHelper class that you use: B4A v13.40 BETA - with a shiny new SDK I'm happy to release a new beta version of B4A. The prepackaged Android SDK has been updated and is based on the current latest versions of all resources and Android SDK 36. The handling of SDK resources was improved. The built-in themes were updated with the new edge-to-edge feature disabled... www.b4x.com B4X: AppOpenAd.RunMethod("load", Array(ctxt, AppOpenAdUnit, GetAdRequest, AppOpenAdCallback)) Check this updated exemple too: [B4XPages] Admob Example Check this other excellent example from @Jack Cole. To help the new members to make money with B4A, I tried to compile all the relevant Admob code (except mediation) of the forum in this example and put comments and links. This is a work in progress. Any code and sample to improve this example... www.b4x.com Click to expand... thanksssssssssssssssssssssssss The problem is solved by changing the following line in AdsHelper: B4X: AppOpenAd.RunMethod("load", Array(ctxt, AppOpenAdUnit, GetAdRequest, AppOpenAd.GetField("APP_OPEN_AD_ORIENTATION_PORTRAIT"), AppOpenAdCallback)) to : B4X: AppOpenAd.RunMethod("load", Array(ctxt, AppOpenAdUnit, GetAdRequest, AppOpenAdCallback))