Could not show rewarded video ad from adapter.

712 views
Skip to first unread message

Steven Haggerty

unread,
May 26, 2017, 7:05:28 AM5/26/17
to Google Mobile Ads SDK Developers
Hi there,

We've recently switched to using Admob for mediated ads.

Occasionally, I get an error where an ad fails to show (see below log).

The ad unit is:ca-app-pub-4628249632882103/2677340878

I cannot provide you with a project you can this can be replicated. I'm in crunch at the moment
so don't have time to replicate this in your sample app.

It's exactly the same issue as this issue posted a month ago:


So it's not unique to my project.

All I do is sit and play our app over and over, requesting rewarded movies. It took approximate 2 hours.

I look forward to you reply,

Many thanks,

Steven Haggerty,
Director,
Rubicon Development.


05-26 11:46:26.867 10051 10051 W Ads     : Could not show rewarded video ad from adapter.
05-26 11:46:26.867 10051 10051 W Ads     : java.lang.NullPointerException: Attempt to read from field 'com.google.android.gms.ads.internal.client.bq ip.a' on a null object reference
05-26 11:46:26.867 10051 10051 W Ads     : at com.google.ads.mediation.a.g(:com.google.android.gms.DynamiteModulesA:17227)
05-26 11:46:26.867 10051 10051 W Ads     : at com.google.android.gms.ads.internal.mediation.client.u.f(:com.google.android.gms.DynamiteModulesA:436)
05-26 11:46:26.867 10051 10051 W Ads     : at com.google.android.gms.ads.internal.reward.b.a(:com.google.android.gms.DynamiteModulesA:1314)
05-26 11:46:26.867 10051 10051 W Ads     : at com.google.android.gms.ads.internal.reward.client.e.onTransact(:com.google.android.gms.DynamiteModulesA:65)
05-26 11:46:26.867 10051 10051 W Ads     : at android.os.Binder.transact(Binder.java:507)
05-26 11:46:26.867 10051 10051 W Ads     : at com.google.android.gms.internal.zznu$zza$zza.show(Unknown Source)
05-26 11:46:26.867 10051 10051 W Ads     : at com.google.android.gms.internal.zzoc.show(Unknown Source)
05-26 11:46:26.867 10051 10051 W Ads     : at com.rubicon.dev.raz0r.Ads_AdMob_VIDEO$2.run(Unknown Source)
05-26 11:46:26.867 10051 10051 W Ads     : at android.os.Handler.handleCallback(Handler.java:751)
05-26 11:46:26.867 10051 10051 W Ads     : at android.os.Handler.dispatchMessage(Handler.java:95)
05-26 11:46:26.867 10051 10051 W Ads     : at android.os.Looper.loop(Looper.java:154)
05-26 11:46:26.867 10051 10051 W Ads     : at android.app.ActivityThread.main(ActivityThread.java:6688)
05-26 11:46:26.867 10051 10051 W Ads     : at java.lang.reflect.Method.invoke(Native Method)
05-26 11:46:26.867 10051 10051 W Ads     : at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
05-26 11:46:26.867 10051 10051 W Ads     : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
05-26 11:46:26.868 10051 10051 W Ads     : Could not call showVideo.
05-26 11:46:26.868 10051 10051 W Ads     : android.os.RemoteException
05-26 11:46:26.868 10051 10051 W Ads     : at com.google.android.gms.ads.internal.mediation.client.u.f(:com.google.android.gms.DynamiteModulesA:439)
05-26 11:46:26.868 10051 10051 W Ads     : at com.google.android.gms.ads.internal.reward.b.a(:com.google.android.gms.DynamiteModulesA:1314)
05-26 11:46:26.868 10051 10051 W Ads     : at com.google.android.gms.ads.internal.reward.client.e.onTransact(:com.google.android.gms.DynamiteModulesA:65)
05-26 11:46:26.868 10051 10051 W Ads     : at android.os.Binder.transact(Binder.java:507)
05-26 11:46:26.868 10051 10051 W Ads     : at com.google.android.gms.internal.zznu$zza$zza.show(Unknown Source)
05-26 11:46:26.868 10051 10051 W Ads     : at com.google.android.gms.internal.zzoc.show(Unknown Source)
05-26 11:46:26.868 10051 10051 W Ads     : at com.rubicon.dev.raz0r.Ads_AdMob_VIDEO$2.run(Unknown Source)
05-26 11:46:26.868 10051 10051 W Ads     : at android.os.Handler.handleCallback(Handler.java:751)
05-26 11:46:26.868 10051 10051 W Ads     : at android.os.Handler.dispatchMessage(Handler.java:95)
05-26 11:46:26.868 10051 10051 W Ads     : at android.os.Looper.loop(Looper.java:154)
05-26 11:46:26.868 10051 10051 W Ads     : at android.app.ActivityThread.main(ActivityThread.java:6688)
05-26 11:46:26.868 10051 10051 W Ads     : at java.lang.reflect.Method.invoke(Native Method)
05-26 11:46:26.868 10051 10051 W Ads     : at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
05-26 11:46:26.868 10051 10051 W Ads     : at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)


Bharani Cherukuri (MobileAds SDK Team)

unread,
May 26, 2017, 1:28:21 PM5/26/17
to Google Mobile Ads SDK Developers
Hello Steven, 

Thank you for bringing this to our attention. Our team is aware of the issue and we will keep you posted if we have any new information.

Regards,
Bharani Cherukuri
Mobile Ads SDK Team

Bharani Cherukuri (MobileAds SDK Team)

unread,
Jun 2, 2017, 4:55:48 PM6/2/17
to Google Mobile Ads SDK Developers
Hi Steven,

Can you confirm the SDK version that you are noticing this crash on?

Regards,
Bharani Cherukuri
Mobile Ads SDK Team

On Friday, May 26, 2017 at 7:05:28 AM UTC-4, Steven Haggerty wrote:

Steven Haggerty

unread,
Jun 5, 2017, 4:19:38 AM6/5/17
to google-adm...@googlegroups.com
I'm using google play services ads, 10.2.4.

--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/d8OEsg-P7Oo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steven Haggerty

unread,
Jun 9, 2017, 4:11:10 AM6/9/17
to google-adm...@googlegroups.com
Just tried with 11.0.0, same thing.

I can't detect and work around the problem as the showad function returns void. It looks like you need a failedToShowRewarded() override.

Steve.

On Mon, Jun 5, 2017 at 9:19 AM, Steven Haggerty <stevieh...@gmail.com> wrote:
I'm using google play services ads, 10.2.4.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

Bharani Cherukuri (MobileAds SDK Team)

unread,
Jun 9, 2017, 9:45:02 AM6/9/17
to Google Mobile Ads SDK Developers
Hello Steven, 

Thank you for the details. Our team is still investigating the issue, I will update this thread as soon as I have any information.

Regards, 
Bharani Cherukuri
Mobile Ads SDK Team 

On Friday, May 26, 2017 at 7:05:28 AM UTC-4, Steven Haggerty wrote:

Jérémy R

unread,
Jul 1, 2017, 12:52:04 PM7/1/17
to Google Mobile Ads SDK Developers
Hi, I have the exact same issue with AdColony and mediation with rewarded video.
Thanks for your support.

Bongkyu Cha

unread,
Jul 17, 2017, 4:44:56 AM7/17/17
to Google Mobile Ads SDK Developers
내가 확인 결과,
"MobileAds.getRewardedVideoAdInstance(context)"로 생성을 하고,
"RewardedVideoAd.destroy(context)"를 호출을 하고 다시 "MobileAds.getRewardedVideoAdInstance(context)"로 생성을 하면,
"RewardedVideoAd.show()"호출 시에 자주 발생을 한다.
이런 경우 해당 SDK Library에서 throws Exception을 발생 시켜줘야 Application에서 이후 동작을 처리할 수 있을 거 같다.

Could not show rewarded video ad from adapter.(java.lang.NullPointerException)
위의 Error 가 발생하면, "onRewardedVideoAdFailedToLoad()" API가 호출되지 않아서 문제가 있다.

2017년 6월 9일 금요일 오후 10시 45분 2초 UTC+9, Bharani Cherukuri (Mobile Ads SDK Team) 님의 말:

avisio...@gmail.com

unread,
Aug 22, 2017, 2:13:06 AM8/22/17
to Google Mobile Ads SDK Developers
Hi,
I am facing the same issue. It only happens if I start the activity again and ad was previously loaded. In first time it works.

W/Ads: Could not show rewarded video ad from adapter.
                                                                  java.lang.NullPointerException
                                                                      at com.google.ads.mediation.AbstractAdViewAdapter.showVideo(:com.google.android.gms.DynamiteModulesA:228)
                                                                      at com.google.android.gms.ads.internal.mediation.client.u.f(:com.google.android.gms.DynamiteModulesA:193)
                                                                      at com.google.android.gms.ads.internal.reward.b.a(:com.google.android.gms.DynamiteModulesA:29)
                                                                      at com.google.android.gms.ads.internal.reward.client.e.onTransact(:com.google.android.gms.DynamiteModulesA:11)
                                                                      at android.os.Binder.transact(Binder.java:326)
                                                                      at com.google.android.gms.internal.zzee.zzb(Unknown Source)
                                                                      at com.google.android.gms.internal.zzadg.show(Unknown Source)
                                                                      at com.google.android.gms.internal.zzadr.show(Unknown Source)
                                                                      at com.example.app.Activity.ActivityTab.showRewardedVideo(ActivityTab.java:735)
                                                                      at  com.example.app.Activity.ActivityTab.access$600(ActivityTab.java:67)
                                                                      at  com.example.app.Activity.ActivityTab$5$3.onClick(ActivityTab.java:568)
                                                                      at android.view.View.performClick(View.java:4084)
                                                                      at android.view.View$PerformClick.run(View.java:16966)
                                                                      at android.os.Handler.handleCallback(Handler.java:615)
                                                                      at android.os.Handler.dispatchMessage(Handler.java:92)
                                                                      at android.os.Looper.loop(Looper.java:137)
                                                                      at android.app.ActivityThread.main(ActivityThread.java:4745)
                                                                      at java.lang.reflect.Method.invokeNative(Native Method)
                                                                      at java.lang.reflect.Method.invoke(Method.java:511)
                                                                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
                                                                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
                                                                      at dalvik.system.NativeStart.main(Native Method)
08-22 05:51:50.247 9078-9078/ com.example.app W/Ads: Could not call showVideo.
                                                                  android.os.RemoteException
                                                                      at com.google.android.gms.ads.internal.mediation.client.u.f(:com.google.android.gms.DynamiteModulesA:197)
                                                                      at com.google.android.gms.ads.internal.reward.b.a(:com.google.android.gms.DynamiteModulesA:29)
                                                                      at com.google.android.gms.ads.internal.reward.client.e.onTransact(:com.google.android.gms.DynamiteModulesA:11)
                                                                      at android.os.Binder.transact(Binder.java:326)
                                                                      at com.google.android.gms.internal.zzee.zzb(Unknown Source)
                                                                      at com.google.android.gms.internal.zzadg.show(Unknown Source)
                                                                      at com.google.android.gms.internal.zzadr.show(Unknown Source)
                                                                      at  com.example.app.Activity.ActivityTab.showRewardedVideo(ActivityTab.java:735)
                                                                      at  com.example.app.Activity.ActivityTab.access$600(ActivityTab.java:67)
                                                                      at  com.example.app.Activity.ActivityTab$5$3.onClick(ActivityTab.java:568)
                                                                      at android.view.View.performClick(View.java:4084)
                                                                      at android.view.View$PerformClick.run(View.java:16966)
                                                                      at android.os.Handler.handleCallback(Handler.java:615)
                                                                      at android.os.Handler.dispatchMessage(Handler.java:92)
                                                                      at android.os.Looper.loop(Looper.java:137)
                                                                      at android.app.ActivityThread.main(ActivityThread.java:4745)
                                                                      at java.lang.reflect.Method.invokeNative(Native Method)
                                                                      at java.lang.reflect.Method.invoke(Method.java:511)
                                                                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
                                                                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
                                                                      at dalvik.system.NativeStart.main(Native Method)

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Aug 22, 2017, 4:26:19 AM8/22/17
to Google Mobile Ads SDK Developers
Hi there,

As previously mentioned, this is already a known issue and the team is still investigating the possible cause of the issue. While there are no updates as of yet, would you be able to provide to us the affected Ad Unit IDs, as well as the names of the Ad Networks it is mediating to? It will help us in further investigating the cause of the issue.

Additionally, would you be able to try to check if the Rewarded Ad is loaded first before trying to show the ad and verify if this helps lessen the occurrence of the error?

Regards,
Joshua Lagonera
Mobile Ads SDK Team

avisio...@gmail.com

unread,
Aug 22, 2017, 4:41:25 AM8/22/17
to Google Mobile Ads SDK Developers
Hi,
Thanks for your reply Mr. Joshua  Lagonera.

Ad unit id - ca-app-pub-8169699032060747/4014460698
Ad network  - InMobi

 'com.google.firebase:firebase-ads:11.2.0'
'com.inmobi.monetization:inmobi-ads:6.2.2'

if (mAd.isLoaded()) {
mAd.show();
}

 check if the Rewarded Ad is loaded first not helped me I already using that.

Thanks,
Ajesh

 

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Aug 22, 2017, 6:10:12 AM8/22/17
to Google Mobile Ads SDK Developers
Hi Ajesh,

Thank you for providing the requested information. I'll be sure to forward these to the rest of the team. As for the issue, I will get back to this thread if there are any updates from the team.

Regards,
Joshua Lagonera
Mobile Ads SDK Team

wanderlu...@gmail.com

unread,
Aug 23, 2017, 3:01:36 AM8/23/17
to Google Mobile Ads SDK Developers
Hello, i am having issues displaying Reward Video Ads, for the real ads as well as test ads, i am also cannot be able to use test ads, i have download sample code for Rewarded Video Ads, the strange thing your sample reward video ad code is also not working and says Failed to load ads, kindly help me resolve the issue as soon as possible, because i am really worried, i have implemented correct way and fulfill all the steps required to display Rewarded ads, but still its not loading even the test ads. I am waiting for your kind and urgent response soon :(

Gurgen Hakobyan

unread,
Oct 7, 2017, 1:47:57 AM10/7/17
to Google Mobile Ads SDK Developers
 
Hi,

I have exact same problem with rewarded videos and test ads. Do you have any update on this?

Thanks. 

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Oct 9, 2017, 1:28:35 AM10/9/17
to Google Mobile Ads SDK Developers
Hi there,

I'm afraid we do not have any updates to share regarding the issue. However, as previously mentioned, we will get back to this thread once we have any updates.

With that said, if you can provide a sample project where the crash can be replicated locally, then kindly provide it to us to help further investigate the issue.

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Brian Rojas

unread,
Oct 20, 2017, 9:29:46 PM10/20/17
to Google Mobile Ads SDK Developers
Hello,

I'm not sure if this was mentioned before but I think the issue is proguard related, maybe there is a rule that can be added to proguard file.  I was getting that same stack trace when I tried to load an add and then I changed minifyEnabled to false and it started working for me.

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Oct 23, 2017, 12:08:14 AM10/23/17
to Google Mobile Ads SDK Developers
Hi Brian,

Interesting. I'll be sure to pass this information to the rest of the team while the investigation is ongoing. However, can you provide us with a sample project where you can replicate the issue since you mentioned you were getting the same stack trace before? It would be extremely helpful in finding out the root cause.

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Dusan Vita

unread,
Oct 27, 2017, 9:58:49 PM10/27/17
to Google Mobile Ads SDK Developers
Hi everyone,

I was experiencing the same issue by following the instructions from this link https://developers.google.com/admob/android/rewarded-video;


There are 2 main differences, not sure which one is the culprit for the issue, but changing both solved my problem:

- Invoking activity lifecycle methods on the RewardedVideoAd instance after calling the super methods of the activity.
- And not invoking RewardedVideoAd.destroy(Context) at all.

My use case is having a separate activity for showing products and ad request button, so the issue was occurring when this activity was destroyed and then created again, was not able to reproduce in the first creation of the activity, but could be reproduced each time the activity is destroyed and started again.

Hope this helps both to you implementing the library and to those debugging it.

Best regards,
Dusan

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Oct 30, 2017, 12:21:35 AM10/30/17
to Google Mobile Ads SDK Developers
Hi Dusan,

Thank you for adding your investigation on this issue. I will make sure to pass these information to our team to help with the investigation. However, would you be able to provide us a sample project/application where we can replicate this issue?

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Brian Rojas

unread,
Oct 30, 2017, 11:09:47 AM10/30/17
to Google Mobile Ads SDK Developers
Hey Josh, I was able to get it working eventually, I think the issue was my fault, I don't think I had the proguard rules setup properly.

Jeffrey Chen

unread,
Jan 10, 2018, 12:27:12 AM1/10/18
to Google Mobile Ads SDK Developers
I am having the same issue, and I created an example application where I can replicate it consistently: https://github.com/jchen1352/AdMobBug
The problem is in RewardedVideoAd.destroy, since removing that fixes the problem.

Joshua Lagonera (Mobile Ads SDK Team)

unread,
Jan 10, 2018, 1:40:28 AM1/10/18
to Google Mobile Ads SDK Developers
Hi Jeffrey,

Thank you for providing an example application. I can confirm that I am also able to replicate the issue consistently using it, as well as the sample steps you provided.

I'm going to forward this information to the rest of the team and get back to this thread for updates regarding this issue.

Regards,
Joshua Lagonera
Mobile Ads SDK Team

Ivan Bautista (Mobile Ads SDK Team)

unread,
Jan 10, 2018, 10:04:37 PM1/10/18
to Google Mobile Ads SDK Developers
Hi Jeffrey,

The team confirmed that there's a fix already in place for this but I can't provide you any definite timelines on the release. I suggest that you keep an eye on our Release Notes for future updates.

Thank you again for reporting this to us and for taking the extra effort to create a sample application which really helped with our investigation.

Regards,
Ivan Bautista
Mobile Ads SDK Team

Aut Jaroenrit

unread,
Jan 11, 2018, 8:36:35 PM1/11/18
to Google Mobile Ads SDK Developers

Aut Jaroenrit

unread,
Jan 11, 2018, 8:43:22 PM1/11/18
to Google Mobile Ads SDK Developers
private void loadRewardedVideoAd() {
synchronized (mLock) {
if (mRewardedVideoAd != null && !mRewardedVideoAd.isLoaded()) {
Bundle extras = new Bundle();
extras.putBoolean("_noRefresh", true);
AdRequest adRequest = new AdRequest.Builder()
.addNetworkExtrasBundle(AdMobAdapter.class, extras)
.build();
mRewardedVideoAd.loadAd(Consts.AD_UNIT_ID_ADMOB_REWADRED, adRequest);
}
}
}
@Override
protected void onResume() {
super.onResume();
mRewardedVideoAd.resume(this);
}

public void onPause() {
super.onPause();
mRewardedVideoAd.pause(this);
}

private void showRewardedVideo() {
if (mRewardedVideoAd.isLoaded())
mRewardedVideoAd.show();
}

Aut Jaroenrit

unread,
Jan 11, 2018, 8:44:18 PM1/11/18
to Google Mobile Ads SDK Developers

เมื่อ 12 ม.ค. 2018 08:37 "Aut Jaroenrit" <rauyk...@gmail.com> เขียนว่า
--

---
You received this message because you are subscribed to a topic in the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-admob-ads-sdk/d8OEsg-P7Oo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

mobileadssdk-a...@google.com

unread,
Jan 11, 2018, 9:50:22 PM1/11/18
to Aut Jaroenrit, Google Mobile Ads SDK Developers
Hi Aut,

Please note that the team confirmed that there's a fix already in place for this. However, we can't provide you any definite timelines on the release so it's best that you keep an eye on our Release Notes for future updates.

Feel free to create a new thread for any other technical concerns about the Mobile Ads SDK and we'll be happy to assist you.

Aut Jaroenrit

unread,
Jan 11, 2018, 9:51:31 PM1/11/18
to mobileadssdk-a...@google.com, Google Mobile Ads SDK Developers
Ok, thank you. 

เมื่อ 12 ม.ค. 2018 9:49 AM <mobileadssdk-a...@google.com> เขียนว่า

Zhang Xubing

unread,
Jan 19, 2018, 6:32:01 AM1/19/18
to Google Mobile Ads SDK Developers
We met the same issue. Admob sdk 11.8.0 ,Facebook sdk 4.27.0

Error message:

Could not show rewarded video ad from adapter.
                                                                            java.lang.IllegalStateException: no adapter ready to start
                                                                                at com.facebook.ads.internal.DisplayAdController.b(Unknown Source)
                                                                                at com.facebook.ads.RewardedVideoAd.show(Unknown Source)
                                                                                at com.facebook.ads.RewardedVideoAd.show(Unknown Source)
                                                                                at com.google.ads.mediation.facebook.FacebookAdapter.showVideo(FacebookAdapter.java:307)
                                                                                at com.google.android.gms.internal.zzkh.showVideo(Unknown Source)
                                                                                at com.google.android.gms.internal.zzkb$zza.onTransact(Unknown Source)
                                                                                at android.os.Binder.transact(Binder.java:387)
                                                                                at gl.b(:com.google.android.gms.DynamiteModulesA@11951436:20) 

Ivan Bautista (Mobile Ads SDK Team)

unread,
Jan 21, 2018, 10:54:04 PM1/21/18
to Google Mobile Ads SDK Developers
Hi,

Though the error message "Could not show rewarded video ad from adapter" you got is similar to the original report, the Exception is different since the original report is throwing NullPointerException.

For the original report in this thread, a fix is already in place for this, however, we can't provide you any definite timelines on the release so it's best that you keep an eye on our Release Notes for future updates.

However, for the "IllegalStateException: no adapter ready to start" error you are getting, could you confirm if you were able to follow all the necessary steps as mentioned in this guide for mediation with FAN?

Could you provide to us the following privately (using Reply privately to author option) so we can further check on our end?
  • Link to your app or a miniature sample project where issue is reproducible
  • Complete stack trace
Regards,

Ivan Bautista (Mobile Ads SDK Team)

unread,
Jan 30, 2018, 3:26:11 AM1/30/18
to Google Mobile Ads SDK Developers
Hi Zhang,

Were you able to check if you were able to follow all the necessary steps mentioned in this guide for mediation with FAN?

If you are still getting the "IllegalStateException: no adapter ready to start" error, then could you provide to us the following privately (using Reply privately to author option) so we can further check on our end?
Reply all
Reply to author
Forward
0 new messages