コンテンツにスキップ

データおよびキーワードの送信

セグメントターゲティング

AppLovin MAX SDKバージョン12.6.0では、ウォーターフォールとDirect Soldキャンペーンをターゲットとする、プライバシーに配慮した方法を採用しています。 このバージョンで導入されたAPIは、汎用的なキーと値の数値のペアリング方式を使用しています。

各キーと各値の意味を決定してください。

例えば、ユーザーが関心を持つジャンルを表すセグメントを作成できます。 これらのセグメントはキー番号 849 で表すことができます。

ジャンルの値には「ホラー」、「スリラー」、「ロマンス」などがあります。 これらはそれぞれ 123 の値で表すことができます。

以下のコードは、このようにキーと値を定義した場合に、「ホラー」と「ロマンス」ジャンルのセグメントにユーザーを追加する方法を示しています。

ALSdkInitializationConfiguration *initConfig = [ALSdkInitializationConfiguration configurationWithSdkKey: «SDK-key» builderBlock:^(ALSdkInitializationConfigurationBuilder *builder) {
builder.mediationProvider = ALMediationProviderMAX;
builder.segmentCollection = [MASegmentCollection segmentCollectionWithBuilderBlock:^(MASegmentCollectionBuilder *builder) {
[builder addSegment: [[MASegment alloc] initWithKey: @(849) values: @[@(1), @(3)]]];
}];
}];
[sdk initializeWithConfiguration: initConfig completionHandler:^(ALSdkConfiguration *sdkConfig) { …

コンテンツURLの送信

AppLovinは、広告をリクエストする際にアプリコンテンツのURLを渡すことを推奨しています。 これにより、購入者側のコンテキスト分析やレビューが可能になります。 一部のDSPバイヤーがこれを必要とする場合があります。 入札リクエストでこのURLを渡してください。

以下のコードスニペットは、広告リクエストを行う際にアプリのコンテンツURLを渡す方法を示しています。

バナー広告
self.bannerAd = [[MAAdView alloc] initWithAdUnitIdentifier: @"«ad-unit-ID»"];
[self.bannerAd setExtraParameterForKey: @"content_url" value: @"«value»"];
インタースティシャル広告
self.interstitialAd = [[MAInterstitialAd alloc] initWithAdUnitIdentifier: @"«ad-unit-ID»"];
[self.interstitialAd setExtraParameterForKey: @"content_url" value: @"«value»"];
MREC広告
self.mrecAd = [[MAAdView alloc] initWithAdUnitIdentifier: @"«ad-unit-ID»" adFormat: MAAdFormat.mrec ];
[self.mrecAd setExtraParameterForKey: @"content_url" value: @"«value»"];
ネイティブ広告
self.nativeAdLoader = [[MANativeAdLoader alloc] initWithAdUnitIdentifier: @"«ad-unit-ID»"];
[self.nativeAdLoader setExtraParameterForKey: @"content_url" value: @"«value»"];
リワード広告
self.rewardedAd = [MARewardedAd sharedWithAdUnitIdentifier: @"«ad-unit-ID»"];
[self.rewardedAd setExtraParameterForKey: @"content_url" value: @"«value»"];

統一識別子

入札ストリームでUID2 トークンを渡すことができます。 バイヤーはこれらのトークンを使って、アプリインベントリをターゲティングし、正確に入札します。 トークン化してAppLovinにトークンを渡すのは、お客様の責任で行っていただきますようお願いいたします。 以下のコードの例は、トークンを渡す方法を示しています。

ALSdkSettings *settings = [ALSdk shared].settings;
[settings setExtraParameterForKey: @"uid2_token" value: @"«value»"];

Google アド マネージャーDirect Soldのためのカスタムターゲティング

カスタムターゲティング値をGoogle アド マネージャーのDirect Soldリクエストに渡すことができます。

Google アド マネージャーにカスタムターゲティング値を渡すには、ローカルの追加パラメーター custom_targeting にターゲティング値を設定します。以下の例のように設定してください。

以下のオブジェクトを使用して、カスタムターゲティング値を宣言してください。

NSDictionary<NSString *, NSString *> customTargetingValues = @{@"«custom-targeting-key»" : @"«custom-targeting-value»"};
バナー広告
self.bannerAd = [[MAAdView alloc] initWithAdUnitIdentifier: @"«your-ad-unit-ID»"];
[self.bannerAd setLocalExtraParameterForKey: @"custom_targeting" value: customTargetingValues];
インタースティシャル広告
self.interstitialAd = [[MAInterstitialAd alloc] initWithAdUnitIdentifier: @"«your-ad-unit-ID»"];
[self.interstitialAd setLocalExtraParameterForKey: @"custom_targeting" value: customTargetingValues];
MREC広告
self.mrecAd = [[MAAdView alloc] initWithAdUnitIdentifier: @"«your-ad-unit-ID»" adFormat: MAAdFormat.mrec];
[self.mrecAd setLocalExtraParameterForKey: @"custom_targeting" value: customTargetingValues];
リワード広告
self.rewardedAd = [MARewardedAd sharedWithAdUnitIdentifier: @"«your-ad-unit-ID»"];
[self.rewardedAd setLocalExtraParameterForKey: @"custom_targeting" value: customTargetingValues];