Chartboost SDK is a native extension to show ads from Chartboost on Android and iOS. It has a clean and easy to use API, containing several methods to show interstitials and More App Pages. Both ad calls can be cached, which allows the developer to wait until the ad has been completely loaded before it can be displayed.

The extension has a few events that can be monitored to control the process. When an interstitial is cached, for instance, the extension start loading its information. When the loading process is done or an error occurs, an event is fired. This extension can be centralized and managed by the Ad Network ANE.

Sample

chartboost = Chartboost.getInstance();
chartboost.setInterstitialKeys(this.appid, this.sign);
chartboost.addEventListener(AdEvent.onInterstitialReceive, onAdReceived);

if (!chartboost.supportDevice) {
  trace("not support device");
  return
}  else  {
  if(chartboost.isInterstitialReady()){
    chartboost.showInterstitial();
  } else {
    chartboost.cacheInterstitial();
  }

  if(chartboost.isMoreAppReady()){
    chartboost.showMoreApp();
  } else {
    chartboost.cacheMoreApp();
  }
}

protected function onAdReceived(event:AdEvent):void {
  chartboost.showInterstitial();
}
Air Native Extension, Android, iOS . URL.