コンテンツにスキップ

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

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

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

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

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

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

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

val initConfig = AppLovinSdkInitializationConfiguration.builder( "«SDK-key»", this )
.setMediationProvider( AppLovinMediationProvider.MAX )
.setSegmentCollection( MaxSegmentCollection.builder()
.addSegment( new MaxSegment( 849, Arrays.asList( 1, 3 ) ) )
.build() )
.build();
AppLovinSdk.getInstance( this ).initialize( initConfig, sdkConfig -> {

コンテンツURLの送信

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

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

バナー広告
bannerAd = new MaxAdView( "«ad-unit-ID»", this );
bannerAd.setExtraParameter( "content_url", "«value»" );
インタースティシャル広告
interstitialAd = new MaxInterstitialAd( "«ad-unit-ID»", this );
interstitialAd.setExtraParameter( "content_url", "«value»" );
MREC広告
mrecAd = new MaxAdView( "«ad-unit-ID»", MaxAdFormat.MREC, this );
mrecAd.setExtraParameter( "content_url", "«value»" );
ネイティブ広告
nativeAdLoader = new MaxNativeAdLoader( "«ad-unit-ID»", this );
nativeAdLoader.setExtraParameter( "content_url", "«value»" );
リワード広告
rewardedAd = MaxRewardedAd.getInstance( "«ad-unit-ID»", this );
rewardedAd.setExtraParameter( "content_url", "«value»" );

統一識別子

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

AppLovinSdkSettings settings = AppLovinSdk.getInstance( context ).getSettings();
settings.setExtraParameter( "uid2_token", "«value»" );

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

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

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

以下のオブジェクトを使用してカスタムターゲティングを宣言します。値はStringまたはList<String>のいずれかです。

Map<String, Object> customTargetingValues = new HashMap<>();
// For a single value
customTargetingValues.put("«custom-targeting-key»", "«custom-targeting-value»");
// For multiple values
customTargetingValues.put( "«custom-targeting-key-multiple»", Arrays.asList( "«value1»", "«value2»" ));
バナー広告
bannerAd = new MaxAdView( "«your-ad-unit-ID»", context );
bannerAd.setLocalExtraParameter("custom_targeting", customTargetingValues );
インタースティシャル広告
interstitialAd = new MaxInterstitialAd( "«your-ad-unit-ID»", context );
interstitialAd.setLocalExtraParameter( "custom_targeting", customTargetingValues );
MREC広告
mrecAd = new MaxAdView( "«your-ad-unit-ID»", MaxAdFormat.MREC, context );
mrecAd.setLocalExtraParameter( "custom_targeting", customTargetingValues );
リワード広告
rewardedAd = MaxRewardedAd.getInstance( "«your-ad-unit-ID»", context );
rewardedAd.setLocalExtraParameter( "custom_targeting", customTargetingValues );