MoPub SDKでは、広告をインストールしたアプリの有効性を正しく測ることができるコンバージョントラッキングAPIを使用できます。
Conversion Tracking for iOSThe MoPub SDK offers a conversion tracking API that you can use to properly measure the effectiveness of app install cross-promotions and direct-sold advertisements. |
コンバージョントラッキングはあなたのアプリケーションのデリゲートに一行追加することで実装できます, in `-application:didFinishLaunchingWithOptions:`.
あなたはiTunes アプリケーション IDを取得する必要があります。最も簡単な方法は、iTunes Link Maker toolを使ってURLを生成し、“id”という文字の直ぐ後ろに記載された数字を取り出すことです。例えば:
“HeadingOut”という名前のアプリのiTunes URL はhttp://itunes.apple.com/sn/app/headingout/id399903812?mt=8となり、アプリケーションIDは **399903812** になります。
次に、オープンソースSDKを使用している場合はアプリケーションのデリゲートに`MPAdConversionTracker.h`ファイルをインポートします。 Fabricを使用している場合は、MoPub フレームワークから`MoPub.h`をインポートし、`-application:didFinishLaunchingWithOptions:`に以下の行を記載します。
[[MPAdConversionTracker sharedConversionTracker] reportApplicationOpenForApplicationID:@"<ITUNES_APPLICATION_ID>"];
“\<ITUNES_APPLICATION_ID\>” の部分は自分のiTunes アプリケーション IDに書き換えます。
Basic implementationConversion tracking can be implemented by adding a single line to your application delegate, in `-application:didFinishLaunchingWithOptions:`. You will need to obtain your iTunes application ID. The easiest way to do this is to use the iTunes Link Maker tool to generate a URL, and extract the number that immediately follows the text “id”. As an example: The “HeadingOut” application has an iTunes URL http://itunes.apple.com/sn/app/headingout/id399903812?mt=8, so its application ID is **399903812**. Next, import the `MPAdConversionTracker.h` file in your application delegate if using the open source SDK. If using Fabric, import `MoPub.h` from the MoPub framework, and place the following line in `-application:didFinishLaunchingWithOptions:` [[MPAdConversionTracker sharedConversionTracker] reportApplicationOpenForApplicationID:@"<ITUNES_APPLICATION_ID>"]; replacing “\<ITUNES_APPLICATION_ID\>” with your own. |
If your application already reports installs to your own server, you can choose to use our server-side conversion tracking API instead of bundling this logic in your app.
Whenever you want to us to track conversions for you, simply ping the URL: `http://ads.mopub.com/m/open?v=5&udid=ifa:<ID_FOR_ADVERTISING>&id=<APP_STORE_ID>`
An example: To report a conversion for the Slide To Unlock application with raw IDFA `144C0177-9756-4FB2-8A4B-678BF5BE6220`, the API call would look like: `http://ads.mopub.com/m/open?v=5&id=359315994&udid=ifa:144C0177-9756-4FB2-8A4B-678BF5BE6220`
To maintain the accuracy of conversion data on our servers, please limit your conversion calls to one per unique IFA.
Advanced implementationIf your application already reports installs to your own server, you can choose to use our server-side conversion tracking API instead of bundling this logic in your app. Whenever you want to us to track conversions for you, simply ping the URL: `http://ads.mopub.com/m/open?v=5&udid=ifa:<ID_FOR_ADVERTISING>&id=<APP_STORE_ID>` An example: To report a conversion for the Slide To Unlock application with raw IDFA `144C0177-9756-4FB2-8A4B-678BF5BE6220`, the API call would look like: `http://ads.mopub.com/m/open?v=5&id=359315994&udid=ifa:144C0177-9756-4FB2-8A4B-678BF5BE6220` To maintain the accuracy of conversion data on our servers, please limit your conversion calls to one per unique IFA. |
MoPub SDK はあなたのアプリケーションがフォアグラウンドに入る度に、自動的に“セッション”イベントを記録します。 これを無効にしたい場合は、`MPConstants.h`の`SESSION_TRACKING_ENABLED`フラグを0に設定してください。
Session trackingThe MoPub SDK will automatically record a “session” event whenever your application enters the foreground. If you would like to deactivate this, you can do so by setting the `SESSION_TRACKING_ENABLED` flag to 0 in `MPConstants.h`. |