Rewards ads video not show in android lower 5.0

600 views
Skip to first unread message

nhem...@gmail.com

unread,
May 8, 2018, 8:19:05 PM5/8/18
to Google Mobile Ads SDK Developers

Hi friends! I'm From VietNam.and sorry for my english. I have a problem about Rewards ads video in android


I downloaded this example https://github.com/googleads/googleads-mobile-android-examples and debugged my genymotion. In android 6.0, 7.0, 8.0 the video ad rewards show normally. but when i debug in android 4.4 and 5.0 the video ad bonus has been loaded but it does not show the video. It only displays 1 image. and then I can not add a point to the user in the onRewarded () method because the video is not displayed
This is my log in debug
05/09 07:08:21: Launching app $ adb push C:\Users\VTACL\Downloads\googleads-mobile-android-examples-master\googleads-mobile-android-examples-master\java\admob\RewardedVideoExample\app\build\outputs\apk\debug\app-debug.apk /data/local/tmp/com.google.ads.rewardedvideoexample $ adb shell pm install -t -r "/data/local/tmp/com.google.ads.rewardedvideoexample" WARNING: linker: libhoudini.so has text relocations. This is wasting memory and prevents security hardening. Please fix. pkg: /data/local/tmp/com.google.ads.rewardedvideoexample Success $ adb shell am start -n "com.google.ads.rewardedvideoexample/com.google.ads.rewardedvideoexample.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D Waiting for application to come online: com.google.ads.rewardedvideoexample | com.google.ads.rewardedvideoexample.test Waiting for application to come online: com.google.ads.rewardedvideoexample | com.google.ads.rewardedvideoexample.test Connecting to com.google.ads.rewardedvideoexample Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/art: Debugger is active I/System.out: Debugger has connected waiting for debugger to settle... Connected to the target VM, address: 'localhost:8636', transport: 'socket' I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: debugger has settled (1491) W/ResourcesManager: Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources. Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources. W/ResourcesManager: Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources. Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources. I/art: DexFile_isDexOptNeeded failed to open oat file '/data/dalvik-cache/x86/data@data@com.google.android.gms@app_chimera@m@00000007@DynamiteModulesA_GmsCore_...@classes.dex' for file location '/data/data/com.google.android.gms/app_chimera/m/00000007/DynamiteModulesA_GmsCore_prodlmp_alldpi_release.apk': Failed to open oat filename for reading: No such file or directory D/DynamitePackage: Instantiated singleton DynamitePackage. Instantiating com.google.android.gms.ads.reward.ChimeraRewardedVideoAdCreatorImpl I/art: Background sticky concurrent mark sweep GC freed 6586(628KB) AllocSpace objects, 13(675KB) LOS objects, 28% free, 4MB/5MB, paused 5.444ms total 43.463ms I/Ads: Starting ad request. Use AdRequest.Builder.addTestDevice("C236DCDF5064DB1B9FBB99D827793D9D") to get test ads on this device. I/WebViewFactory: Loading com.android.webview version 37 (17-x86) (code 100007) I/LibraryLoader: Loading: webviewchromium I/LibraryLoader: Time to load native libraries: 48 ms (timestamps 548-596) Expected native library version number "",actual native library version number "" V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {2e9c3c9e} I/LibraryLoader: Expected native library version number "",actual native library version number "" I/chromium: [INFO:library_loader_hooks.cc(106)] Chromium logging enabled: level = 0, default verbosity = 0 I/BrowserStartupController: Initializing chromium process, renderers=0 W/art: Attempt to remove local handle scope entry from IRT, ignoring E/BluetoothAdapter: Bluetooth binder is null W/chromium: [WARNING:resource_bundle.cc(315)] locale_file_path.empty() I/chromium: [INFO:aw_browser_main_parts.cc(63)] Load from apk succesful, fd=41 off=46092 len=2953 I/chromium: [INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:42 off:228796 len:643667 D/libEGL: loaded /system/lib/egl/libEGL_emulation.so D/libEGL: loaded /system/lib/egl/libGLESv1_CM_emulation.so D/libEGL: loaded /system/lib/egl/libGLESv2_emulation.so D/: HostConnection::get() New Host Connection established 0xd9e1ca30, tid 2754 W/chromium: [WARNING:mailbox_synchronizer.cc(36)] MailboxSync not supported due to missing EGL image/fence support W/chromium: [WARNING:proxy_service.cc(901)] PAC support disabled because there is no system implementation W/chromium: [WARNING:data_reduction_proxy_settings.cc(403)] SPDY proxy OFF at startup W/art: Attempt to remove local handle scope entry from IRT, ignoring W/AwContents: onDetachedFromWindow called when already detached. Ignoring W/art: Attempt to remove local handle scope entry from IRT, ignoring W/art: Attempt to remove local handle scope entry from IRT, ignoring W/Ads: Loading already in progress, saving this object for future refreshes. W/Ads: Aborting last ad request since another ad request is already in progress. The current request object will still be cached for future refreshes. W/Ads: Invoke Firebase method getInstance error. The Google Mobile Ads SDK will not integrate with Firebase. Admob/Firebase integration requires the latest Firebase SDK jar, but Firebase SDK is either missing or out of date D/OpenGLRenderer: Render dirty regions requested: true D/Atlas: Validating map... I/OpenGLRenderer: Initialized EGL, version 1.4 D/: HostConnection::get() New Host Connection established 0xefd39a20, tid 2838 D/OpenGLRenderer: Enabling debug mode 0 W/EGL_emulation: eglSurfaceAttrib not implemented W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xefd5b440, error=EGL_SUCCESS W/Ads: Server parameters: {"campaign_id":"1057492276","gwhirl_share_location":"1","pubid":"ca-app-pub-3940256099942544\/5224354917\/cak=no_cache&cadc=tl&caqid=-zvyWuLjGpTI2ASkmZ7IBw"} W/Ads: Server parameters: {"campaign_id":"1057492276","gwhirl_share_location":"1","pubid":"ca-app-pub-3940256099942544\/5224354917\/cak=no_cache&cadc=tl&caqid=-zvyWuLjGpTI2ASkmZ7IBw"} D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl I/Ads: Starting ad request. Use AdRequest.Builder.addTestDevice("C236DCDF5064DB1B9FBB99D827793D9D") to get test ads on this device. W/Ads: Not retrying to fetch app settings W/art: Attempt to remove local handle scope entry from IRT, ignoring W/AwContents: onDetachedFromWindow called when already detached. Ignoring W/art: Attempt to remove local handle scope entry from IRT, ignoring Attempt to remove local handle scope entry from IRT, ignoring I/ExoPlayerImpl: Init 1.3.1 W/AudioCapabilities: Unsupported mime audio/x-ms-wma W/AudioCapabilities: Unsupported mime audio/vnd.rn-realaudio W/AudioCapabilities: Unsupported mime audio/mpeg-L2 W/AudioCapabilities: Unsupported mime audio/ac3 W/AudioCapabilities: Unsupported mime audio/x-ape Unsupported mime audio/vnd.dts W/AudioCapabilities: Unsupported mime audio/x-pcm W/AudioCapabilities: Unsupported mime audio/ffmpeg W/VideoCapabilities: Unsupported mime video/mpeg2 W/VideoCapabilities: Unsupported mime video/x-ms-wmv W/VideoCapabilities: Unsupported mime video/vnd.rn-realvideo W/VideoCapabilities: Unsupported mime video/vc1 W/VideoCapabilities: Unsupported mime video/x-flv W/VideoCapabilities: Unsupported mime video/divx W/VideoCapabilities: Unsupported mime video/ffmpeg I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es I/OMXClient: Using client-side OMX mux. I/SoftAAC2: limiting to stereo output Reconfiguring decoder: 0->44100 Hz, 0->2 channels I/Ads: Ad finished loading. I/Ads: Ad finished loading. W/EGL_emulation: eglSurfaceAttrib not implemented W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xd5788500, error=EGL_SUCCESS V/RenderScript: 0xd5603a00 Launching thread(s), CPUs 4 W/art: Attempt to remove local handle scope entry from IRT, ignoring W/AwContents: onDetachedFromWindow called when already detached. Ignoring W/art: Attempt to remove local handle scope entry from IRT, ignoring Attempt to remove local handle scope entry from IRT, ignoring D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdOverlayCreatorImpl I/Ads: Ad opening. Ad opening. W/EGL_emulation: eglSurfaceAttrib not implemented W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xd60c4900, error=EGL_SUCCESS I/Choreographer: Skipped 38 frames! The application may be doing too much work on its main thread. W/EGL_emulation: eglSurfaceAttrib not implemented W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xd9e2ea00, error=EGL_SUCCESS I/Choreographer: Skipped 55 frames! The application may be doing too much work on its main thread. I/OMXClient: Using client-side OMX mux. E/OMXNodeInstance: OMX_GetExtensionIndex OMX.google.android.index.storeMetaDataInBuffers failed E/ACodec: [OMX.google.h264.decoder] storeMetaDataInBuffers failed w/ err -2147483648 E/SoftAVC: Decoder failed: -2 E/ACodec: [OMX.google.h264.decoder] ERROR(0x80001001) signalError(omxError 0x80001001, internalError -2147483648) E/MediaCodec: Codec reported err 0x80001001, actionCode 0, while in state 6 E/ExoPlayerImplInternal: Internal runtime error. java.lang.IllegalStateException at android.media.MediaCodec.native_queueInputBuffer(Native Method) at android.media.MediaCodec.queueInputBuffer(MediaCodec.java:831) at com.google.android.gms.ads.exoplayer1.p.a(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):294) at com.google.android.gms.ads.exoplayer1.p.a(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):188) at com.google.android.gms.ads.exoplayer1.i.handleMessage(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):126) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:135) at android.os.HandlerThread.run(HandlerThread.java:61) at com.google.android.gms.ads.exoplayer1.util.h.run(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):5) W/Ads: Error received: PlayerError : java.lang.IllegalStateException I/Choreographer: Skipped 62 frames! The application may be doing too much work on its main thread. I/Ads: Starting ad request. I/Ads: Use AdRequest.Builder.addTestDevice("C236DCDF5064DB1B9FBB99D827793D9D") to get test ads on this device. W/Ads: Loading already in progress, saving this object for future refreshes. W/Ads: #004 The webview is destroyed. Ignoring action. W/Ads: Failed java.lang.ClassCastException: com.google.ads.mediation.admob.AdMobAdapter cannot be cast to com.google.android.gms.ads.mediation.m at com.google.android.gms.ads.internal.mediation.client.y.a(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):262) at com.google.android.gms.ads.internal.reward.c.b(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):54) at com.google.android.gms.ads.internal.reward.client.e.onTransact(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):57) at android.os.Binder.transact(Binder.java:380) at com.google.android.gms.internal.ads.zzej.transactAndReadExceptionReturnVoid(Unknown Source) at com.google.android.gms.internal.ads.zzahb.zze(Unknown Source) at com.google.android.gms.internal.ads.zzahm.resume(Unknown Source) at com.google.ads.rewardedvideoexample.MainActivity.onResume(MainActivity.java:88) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1241) at android.app.Activity.performResume(Activity.java:6019) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2940) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2982) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1322) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) W/Ads: #004 The webview is destroyed. Ignoring action. #004 The webview is destroyed. Ignoring action. W/EGL_emulation: eglSurfaceAttrib not implemented W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xd39e1aa0, error=EGL_SUCCESS W/MessageQueue: Handler (android.os.Handler) {3a1fa394} sending message to a Handler on a dead thread java.lang.IllegalStateException: Handler (android.os.Handler) {3a1fa394} sending message to a Handler on a dead thread at android.os.MessageQueue.enqueueMessage(MessageQueue.java:325) at android.os.Handler.enqueueMessage(Handler.java:631) at android.os.Handler.sendMessageAtTime(Handler.java:600) at android.os.Handler.sendMessageDelayed(Handler.java:570) at android.os.Handler.sendMessage(Handler.java:507) at android.os.Message.sendToTarget(Message.java:416) at com.google.android.gms.ads.exoplayer1.e.a(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):17) at com.google.android.gms.ads.internal.video.exoplayer1.f.i(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):89) at com.google.android.gms.ads.internal.video.ae.d(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):35) at com.google.android.gms.ads.internal.video.ae.c(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):15) at com.google.android.gms.ads.internal.video.exoplayer1.f.b(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):155) at com.google.android.gms.ads.internal.webview.t.t(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):22) at com.google.android.gms.ads.internal.webview.j.onPageFinished(:com.google.android.gms.dynamite_dynamitemodulesa@12529013@12.5.29 (020700-192802242):84) at com.android.webview.chromium.WebViewContentsClientAdapter.onPageFinished(WebViewContentsClientAdapter.java:495) at com.android.org.chromium.android_webview.AwContentsClient$AwWebContentsObserver.didFinishLoad(AwContentsClient.java:69) at com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) at com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:28) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5221) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) W/ScreenOrientationListener: Removing an inexistent observer! W/Ads: Server parameters: {"campaign_id":"1057492276","gwhirl_share_location":"1","pubid":"ca-app-pub-3940256099942544\/5224354917\/cak=no_cache&cadc=tl&caqid=HzzyWqPoHISZ2gTC6ZvABw"} D/DynamitePackage: Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl I/Ads: Starting ad request. Use AdRequest.Builder.addTestDevice("C236DCDF5064DB1B9FBB99D827793D9D") to get test ads on this device. W/Ads: Not retrying to fetch app settings W/art: Attempt to remove local handle scope entry from IRT, ignoring W/AwContents: onDetachedFromWindow called when already detached. Ignoring W/art: Attempt to remove local handle scope entry from IRT, ignoring Attempt to remove local handle scope entry from IRT, ignoring I/ExoPlayerImpl: Init 1.3.1 I/OMXClient: Using client-side OMX mux. I/SoftAAC2: limiting to stereo output I/SoftAAC2: Reconfiguring decoder: 0->44100 Hz, 0->2 channels I/Ads: Ad finished loading. I/Ads: Ad finished loading. W/EGL_emulation: eglSurfaceAttrib not implemented W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xd39e1aa0, error=EGL_SUCCESS



Even when testing on a physical device the same situation still occurs


mobileadssdk-a...@google.com

unread,
May 9, 2018, 3:39:12 AM5/9/18
to nhem...@gmail.com, Google Mobile Ads SDK Developers
Hi,

Thank you for providing screenshots and helpful logs to help with the investigation.

I tested our RewardedVideoExample app in Android Emulator devices running in 4.4 and 5.0 as well as in my actual Nexus 5x device and I was able to load the test Rewarded Video Ad successfully in all devices and the onRewarded method was called accordingly.

Looking at the screenshots provided, it seems like the test Rewarded Video Ad was loaded on your end and the static Image full screen Ad you are referring to in the screenshot looks the same as the ending part of the test Rewarded Video Ad after the video is finished playing.

That said, this seems to be a device specific issue rather than anything specific with the Mobile Ads SDK because you were only able to reproduce the issue in some devices. 

To investigate further on this, could you provide the following information?
  • What is the actual physical device that you are using when you encountered the issue?
  • Could you replicate the issue even on your actual Rewarded Ad Unit Id?
Regards,
Ivan Bautista
Mobile Ads SDK Team

nhem...@gmail.com

unread,
May 9, 2018, 7:39:42 AM5/9/18
to Google Mobile Ads SDK Developers
thank you very much when you answer my question . I Think i found the root reason of problem.you said right that is the device virtual. the physical device i tested is HTC ONE J (HTL22). But it used roomcook instead roomstock so the ads didn't show in my physical device. And then i used virtual device of android studio (Nexus 5X API 19 android 4.4) instead genymotion. result is the rewards ads video show.
Thank you!

Mathan

unread,
Jul 19, 2018, 8:24:22 AM7/19/18
to google-adm...@googlegroups.com

Hi..

i also face this problem, now its rectified please check this link. May be its help for you.


thanks,
Regards,
Mathan

mobileadssdk-a...@google.com

unread,
Jul 20, 2018, 12:19:41 AM7/20/18
to google-adm...@googlegroups.com, mathan....@gmail.com
Hi Mathan,

We appreciate your initiative on sharing solutions to the forum, however, the solution mentioned in the StackOverflow link you've provided seems to be for another different issue. Nevertheless, we are thankful for your efforts.

For everyone's reference on this forum thread, it is indeed true that having custom ROMs installed in your device could prevent ads from loading in your device. That said, you should have no issues loading ads on other devices or simulators without custom ROMs installed in it.
Reply all
Reply to author
Forward
0 new messages