4

iPhoneアプリを開発しています。その中でchartboostを使いたいです。私はこの概念に慣れていないので、その Web サイトにあるコードを使用しましたが、それでも機能しません。上記のコーディングを appdelegate.m ファイルで使用しました。そして、SystemConfiguration.framework と QuartzCore.framework を追加しました。他にやらなければならないことはありますか?

#import "Chartboost.h"
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Configure ChartBoost
ChartBoost *cb = [ChartBoost sharedChartBoost]; cb.appId = @"APP_ID";
cb.appSignature = @"APP_SIGNATURE";
// Notify the beginning of a user session
[cb startSession];
// Show an interstitial
[cb showInterstitial]; }
4

2 に答える 2

1

私も同じ問題に直面しました。解決策は、チャート ブースト アカウントでテスト キャンペーンを作成する必要があることです。ここ

ここにチャートブーストに関する私のスレッドがあります

于 2012-07-10T17:39:05.693 に答える
0

Chartboostを初期化するメソッドの私の実装

- (void) initChartboost {

    Chartboost *cb = [Chartboost sharedChartboost];

    // Add your own app id & signature. These can be found on App Edit page for your app in the Chartboost dashboard
    cb.appId = @"YOUR APP ID FROM CB";
    cb.appSignature = @"APP SIGNATURE";

    // Begin a user session. This should be done once per boot
    [cb startSession];

    // Cache an interstitial at the default location
    [cb cacheInterstitial];

    // Cache the more apps page so it's ready & loaded
   [cb cacheMoreApps];
}

また、シミュレーターではインタースティシャルが正しく表示されることに注意してください。ただし、デバイスでインタースティシャルを表示するには、こちらで説明されているようにデバイスの UDID を Chartboost に追加する必要があります。

于 2012-10-31T15:27:50.340 に答える