0

私はアンドロイドの初心者で、広告を入れたいと思っています。charboost のインタースティシャルが読み込まれているかどうかを確認する方法を知りたかったのです。大丈夫ですか?:

Chartboost.cacheInterstitial(CBLocation.LOCATION_DEFAULT);
                if(Chartboost.hasInterstitial(CBLocation.LOCATION_DEFAULT)){
                    //displayInterstitial();
                    Chartboost.showInterstitial(CBLocation.LOCATION_DEFAULT);
                }else{
                    displayInterstitial();
                }

私はそれがうまくいくと思うが、台無しにしたくない

4

1 に答える 1

0

それはChartboostのドキュメントにあります。高度なトピックの「キャッシング」を参照してください。

アンドロイド

if (Chartboost.hasInterstitial(CBLocation.LOCATION_HOME_SCREEN)) {
    Chartboost.showInterstitial(CBLocation.LOCATION_HOME_SCREEN);
}
else {
    Chartboost.cacheInterstitial(CBLocation.LOCATION_HOME_SCREEN);
}
于 2015-07-06T18:57:55.193 に答える