Rewarded Videos - Issue in instatiating Adapter

822 views
Skip to first unread message

i Appmaker

unread,
Jan 30, 2016, 1:26:26 AM1/30/16
to Google Mobile Ads SDK Developers
I have followed the below link to setup my rewarded Video and since we do not have the Rewarded videos in Admob, I have setup the mediation with other networks. I have included the SDK and the adapters from them. But stil I do not have any success in getting the Ads. Please advice me based no the logcat details provided in the bottom.


Gradle File


dependencies {

compile files('libs/FlurryAnalytics-6.2.0.jar')
compile files('libs/FlurryAds-6.2.0.jar')
compile files('libs/flurryAndroidDFPandAdMobMediationAdapter-5.0.0.r1.jar')
compile files('libs/dagger-1.2.2.jar')
compile files('libs/javax.inject-1.jar')
compile files('libs/nineoldandroids-2.4.0.jar')
compile files('libs/vungle-publisher-adaptive-id-3.3.4.jar')
compile files('libs/VungleAdapter.jar')


compile 'com.android.support:multidex:1.0.0'
compile 'com.google.android.gms:play-services-ads:8.3.+'
compile 'com.google.android.gms:play-services-analytics:8.3.+'
compile 'com.google.android.gms:play-services-appindexing:8.3.+'
compile 'com.google.android.gms:play-services-appinvite:8.3.+'
compile 'com.google.android.gms:play-services-games:8.3.+'
compile 'com.google.android.gms:play-services-identity:8.3.+'
compile 'com.google.android.gms:play-services-plus:8.3.+'
compile project(':BaseGameUtils')
compile project(':facebook-android-sdk-4.8.1')
compile files('libs/AudienceNetwork.jar')
compile files('libs/FacebookAdapter.jar')
}


LogCat

Could not instantiate mediation adapter: com.google.ads.mediation.flurry.FlurryAdapter. Attempt to invoke interface method 'java.lang.Object java.util.Map.get(java.lang.Object)' on a null object reference
01-30 11:25:14.971  18058-18387/? W/Ads Fail to instantiate adapter com.google.ads.mediation.flurry.FlurryAdapter
    android.os.RemoteException
            at com.google.android.gms.internal.zzev.zzah(Unknown Source)
            at com.google.android.gms.internal.zzev.zzaf(Unknown Source)
            at com.google.android.gms.internal.zzew$zza.onTransact(Unknown Source)
            at android.os.Binder.transact(Binder.java:380)
            at com.google.android.gms.ads.internal.l.a.d.a(SourceFile:94)
            at com.google.android.gms.ads.internal.reward.c.b(SourceFile:194)
            at com.google.android.gms.ads.internal.reward.mediation.h.a(SourceFile:53)
            at com.google.android.gms.ads.internal.util.b.run(SourceFile:19)
            at com.google.android.gms.ads.internal.util.r.call(SourceFile:52)
            at com.google.android.gms.ads.internal.util.s.run(SourceFile:75)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
            at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
            at java.lang.Thread.run(Thread.java:818)
01-30 11:25:14.981  18058-18388/? W/Ads MediationAdapter is not a MediationRewardedVideoAdAdapter: com.vungle.mediation.VungleInterstitialAdapter
01-30 11:25:14.982  18058-18388/? W/Ads Fail to check if adapter is initialized.
    android.os.RemoteException
            at com.google.android.gms.internal.zzfd.isInitialized(Unknown Source)
            at com.google.android.gms.internal.zzex$zza.onTransact(Unknown Source)
            at android.os.Binder.transact(Binder.java:380)
            at com.google.android.gms.ads.internal.l.a.g.g(SourceFile:621)
            at com.google.android.gms.ads.internal.reward.mediation.a.a(SourceFile:83)
            at com.google.android.gms.ads.internal.util.b.run(SourceFile:19)
            at com.google.android.gms.ads.internal.util.r.call(SourceFile:52)
            at com.google.android.gms.ads.internal.util.s.run(SourceFile:75)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
            at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
            at java.lang.Thread.run(Thread.java:818)
01-30 11:25:14.985  18058-18058/? W/Ads Failed to load ad: 3
01-30 11:25:56.051  18058-18058/? W/Ads Could not pause adapter.
    java.lang.NullPointerException: Attempt to invoke virtual method 'void com.vungle.publisher.VunglePub.onPause()' on a null object reference
            at com.vungle.mediation.VungleInterstitialAdapter.onPause(VungleInterstitialAdapter.java:91)
            at com.google.android.gms.internal.zzfd.pause(Unknown Source)
            at com.google.android.gms.internal.zzex$zza.onTransact(Unknown Source)
            at android.os.Binder.transact(Binder.java:380)
            at com.google.android.gms.ads.internal.l.a.g.d(SourceFile:529)
            at com.google.android.gms.ads.internal.reward.c.h(SourceFile:220)
            at com.google.android.gms.ads.internal.reward.b.c(SourceFile:82)
            at com.google.android.gms.ads.internal.reward.client.e.onTransact(SourceFile:98)
            at android.os.Binder.transact(Binder.java:380)
            at com.google.android.gms.ads.internal.reward.client.zzb$zza$zza.pause(Unknown Source)
            at com.google.android.gms.ads.internal.reward.client.zzi.pause(Unknown Source)
            at com.game.puzzle.game.ballmania.android.AndroidLauncher.onPause(AndroidLauncher.java:431)
            at android.app.Activity.performPause(Activity.java:6129)
            at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1294)
            at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3231)
            at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3204)
            at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3179)
            at android.app.ActivityThread.access$1000(ActivityThread.java:151)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1296)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:135)
            at android.app.ActivityThread.main(ActivityThread.java:5296)
            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)
01-30 11:25:56.053  18058-18058/? W/Ads Fail to pause adapter: com.vungle.mediation.VungleInterstitialAdapter

i Appmaker

unread,
Jan 31, 2016, 10:51:08 AM1/31/16
to Google Mobile Ads SDK Developers
I do not find answer anywhere. If anyone could provide a guidance here, it would be a great help.
I have no other go than waiting for a reply from this community.

 Thanks.
...

i Appmaker

unread,
Jan 31, 2016, 11:06:58 AM1/31/16
to Google Mobile Ads SDK Developers
I forgot to mention that I am using LibGdx framework for this Android App

Veer Arjun Busani

unread,
Feb 1, 2016, 10:42:18 AM2/1/16
to Google Mobile Ads SDK Developers
Hi there,

Currently we do not provide support for libgdx. Also from the logs, it looks like the issue might be due to Vungle Adaptor. You might try to integrate Vungle Adaptor with our sample app just to check that it's working. 

Thanks,
Veer Arjun Busani
Mobile Ads SDK Team

i Appmaker

unread,
Feb 1, 2016, 1:19:22 PM2/1/16
to Google Mobile Ads SDK Developers
The Vungle is working fine with the adapter if it is going to be an InterstitialAd with AdListener().

interstitialAd = new InterstitialAd(this);
interstitialAd.setAdUnitId(AD_UNIT_ID_INTERSTITIAL);
AdRequest interstitialRequest = new AdRequest.Builder().build();
interstitialAd.loadAd(interstitialRequest);
interstitialAd.setAdListener(new AdListener() {




 The same setup is not working If I am using RewardedVideoAd with RewardedVideoAdListener.

rewardedVideoAd = MobileAds.getRewardedVideoAdInstance(AndroidLauncher.this);
rewardedVideoAd.setUserId(REWARD);

AdRequest adRequest = new AdRequest.Builder().build();
rewardedVideoAd.loadAd(AD_UNIT_ID_REWARDED_VIDEO_AD, adRequest);
rewardedVideoAd.setRewardedVideoAdListener(new RewardedVideoAdListener() { }

I can go with InterstitialAd with AdListener(). But it doesn't have onRewarded() method as it is in RewardedVideoAdListener().

Do you have any advice here ?

Тимофей Крючков

unread,
May 21, 2016, 3:02:49 PM5/21/16
to Google Mobile Ads SDK Developers
Good day, I have same problem with  Adcolony and Charboost. Have you fixed it?

понедельник, 1 февраля 2016 г., 20:19:22 UTC+2 пользователь i Appmaker написал:

i Appmaker

unread,
Jun 26, 2016, 9:26:16 AM6/26/16
to google-adm...@googlegroups.com
I am sorry for late reply. I do not have time for analysing that. I just went with Mopub

--

---
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/XIZhc5-MGD8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-admob-ads...@googlegroups.com.
To post to this group, send email to google-adm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages