googleads-mobile-android-mediation
googleads-mobile-android-mediation copied to clipboard
ClassCastException: com.google.ads.mediation.chartboost.ChartboostAdapter cannot be cast to com.google.android.gms.ads.mediation.OnContextChangedListener
I believe ChartboostAdapter should implement OnContextChangedListener with an empty implementation of onContextChanged(Context c), otherwise code like this will throw the above exception:
@Override
public void onResume() {
super.onResume();
Chartboost.onResume(this);
if (rewardedVideoAd!=null) rewardedVideoAd.resume(MainActivity.this);
}
Note that is code is a mix of what there is already in your sample (rewardedVideoAd.resume), and what https://developers.google.com/admob/android/mediation/chartboost recommends doing (Chartboost.onResume).
Please confirm: this exception is just logged as a warning. The app doesn't crash because of this, correct?