Angel Koh
Angel Koh

Reputation: 13515

Chartboost adapter code error with Mopub mediation

I am trying to integrate Chartboost (latest SDK) into Mopub using the following guide. https://github.com/mopub/mopub-android-sdk/wiki/Integrating-Third-Party-Ad-Networks

the mediation uses ChartboostInterstitial.java which requires ChartboostShared.java

however,there is a method call in ChartboostShared.java that returns an error "Cannot resolve CBFrameworkMoPub"

    Chartboost.setFramework(Chartboost.CBFramework.CBFrameworkMoPub);

does anyone have a workaround for this?

enter image description here

Upvotes: 1

Views: 456

Answers (1)

Mihailo Gazda
Mihailo Gazda

Reputation: 61

When looking at the Charboost's fork of MoPub repo i think this line:

Chartboost.setFramework(Chartboost.CBFramework.CBFrameworkMoPub); 

needs to be replaced with this one:

Chartboost.setMediation(Chartboost.CBMediation.CBMediationMoPub, "4.0.0"); //Needs Chartboost SDK 5.5.0+

Chartboost repo file: https://github.com/ChartBoost/mopub-android-sdk/blob/master/extras/src/com/mopub/mobileads/ChartboostShared.java

Upvotes: 3

Related Questions