last day (14 days later) » 

1:06 PM
2
Q: Rewarded Video Ad in Admob - Mediation not Working

iappmakerFrom my Admob, I have setup the mediation for Flurry and Vungle. When I request an Ad I am always getting the error as provided in the Logcat. Could not instantiate mediation adapter: com.google.ads.mediation.flurry.FlurryAdapter. MediationAdapter is not a MediationRewardedVideoAdAdapter: com.vu...

 
user3956566
Can you show where you create your MediationRewardedVideoAdAdapter and where VungleInterstitialAdapter.onPause is called. thanks
 
I am using Admob Mediation hence I have not used that in my code. Do i need to use it ? Also please let me know how to use it my code.
 
user3956566
no, I wasn't sure if it was a part of the online service. Just show me where you declare and initialise your MediationRewardedVideoAdAdapter Or at least the class surrounding the code you have posted. Thanks
 
I have refereed the below link and there is no initialization mentioned for MediationRewardedVideoAdAdapter . Hence I have not initialised MediationRewardedVideoAdAdapter .developers.google.com/android/reference/com/google/android/gms/…
 
user3956566
Can you show your activity then with that code? and also show the rest of the code you have from above, the class/activity, you haven't implemented it like the link yuo are showing. Please show the whole class there thanks
 
1:06 PM
I have added the OnCreate() method from where I call the setRewardedVideo(); and onPause(),onResume() and onDestroy() methods as well
 
user3956566
did you add implements RewardedVideoAdListener to your activity? public class MainActivity extends ActionBarActivity implements RewardedVideoAdListener
 
rewardedVideoAd.setRewardedVideoAdListener(new RewardedVideoAdListener() {}
 
user3956566
ah yes, sorry missed that
 
ok
 
user3956566
let me look at it some more. thanks for that info
 
user3956566
1:07 PM
it's helpful
 
Sure. I am happy you are looking into it
 
user3956566
ah you need to move your onpause etc methods down and instantiate your code within the OnCreate bundle
 
user3956566
it appears to me it's calling onPause before it is created
 
No I have pasted the code in the ordeer of onPause(), onResume() , onDestroy() and onCreate
Actually it in not in that order.. But the order does not matter right ?
 
user3956566
hm, I'm adding an answer, if it doesn't fix it, let me know and we will work on it some more
 
1:13 PM
sure I will check and let me know
*Let you know
 
1:31 PM
hi
 
user3956566
hi
 
What line of your code (posted here) triggers this error message?
 
user3956566
oh it's not me it's @iappmaker
 
ah :)
 
2:11 PM
Guys, I have updated the code and logcat as per the answer
No Success so far. Getting same error.
 
 
2 hours later…
3:45 PM
rewardedVideoAd = MobileAds.getRewardedVideoAdInstance(AndroidLauncher.this) is not solving the issue
 

last day (14 days later) »