Without adding Chartboost lifecycle overrides (Charboost.onStart(), Chartboost.onCreate(), etc.), I could not get AdMob mediation to load Chartboost ads. When I added the lifecycle overrides, the Chartboost ads loaded fine using AdMob mediation. I’m only using Static Interstitial ads, no video.
And the bug that was hardest to find was the 2nd thing I mentioned: Using the constructor “new InterstitialAd(Context)”, the Context object must be an Activity. Using the Context object supplied by Application.getApplicationContext() is not sufficient to get Chartboost ads to load. It works ok for loading unmediated AdMob ads. I figured that out using a Chartboost sample app provided by one of their support staff.
--
---
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/61oGkyIrQGU/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.
Without adding Chartboost lifecycle overrides (Charboost.onStart(), Chartboost.onCreate(), etc.), I could not get AdMob mediation to load Chartboost ads. When I added the lifecycle overrides, the Chartboost ads loaded fine using AdMob mediation. I’m only using Static Interstitial ads, no video.
And the bug that was hardest to find was the 2nd thing I mentioned: Using the constructor “new InterstitialAd(Context)”, the Context object must be an Activity. Using the Context object supplied by Application.getApplicationContext() is not sufficient to get Chartboost ads to load. It works ok for loading unmediated AdMob ads. I figured that out using a Chartboost sample app provided by one of their support staff.
@Override
public void onCreate() {
super.onCreate();
Chartboost.startWithAppId(this, appId, appSignature);
Chartboost.onCreate(this);
}
}To post to this group, send email to google-adm...@googlegroups.com.
Bundle bundle = new ChartboostAdapter.ChartboostExtrasBundleBuilder()
.build();
builder.addNetworkExtrasBundle(ChartboostAdapter.class, bundle);