Zucks をメディエーションと統合する
このガイドは、Zucks で Google モバイル広告メディエーションを使用することを検討しているパブリッシャー様を対象としています。現在の Android アプリで動作するようにメディエーション アダプタを設定し、追加の設定を構成する手順について説明します。
前提条件
役立つプリマー
以下に、調停に関する背景情報をまとめたヘルプセンター記事のリンクをご紹介します。
プロジェクトに Zucks を追加する
ネットワーク アダプターと SDK を含める
上記のリンクから Zucks SDK とアダプターをダウンロードします。
Android Studio で、アダプター ファイルと SDK ファイルをプロジェクトの libs
フォルダに追加します。アプリレベルの Gradle ファイルに次のものが含まれていることを確認します。
dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.aar", "*.jar"))))
// ...
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'])
// ...
}
Zucks のドキュメントに記載されている手順に沿って、AndroidManifest.xml
ファイルを変更します。
アプリで Zucks を直接呼び出す必要はありません。Google Mobile Ads SDK が Zucks アダプタを呼び出して、代わりに広告を取得します。必要に応じて、追加のリクエスト パラメータを指定できます。このページの残りの部分では、Zucks に詳細情報を提供する方法について詳しく説明します。
Activity インスタンスを使用して広告オブジェクトを初期化する
新しい広告オブジェクト(AdView
など)のコンストラクタで、Context
型のオブジェクトを渡す必要があります。この Context
は、メディエーションを使用する際に他の広告ネットワークに渡されます。広告ネットワークによっては、制限がさらに厳しい Activity
の Context
が要求され、Activity
インスタンスがなければ広告を配信できない場合もあります。そのため、メディエーション広告ネットワークでのエクスペリエンスが一貫したものになるよう、広告オブジェクトの初期化時に Activity
インスタンスを渡すことをおすすめします。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-03-01 UTC。
[null,null,["最終更新日 2025-03-01 UTC。"],[[["The Mediation Test Suite allows you to test whether your mediation setup is configured correctly before going live to ensure ad requests and revenue are flowing as expected."],["By integrating the Mediation Test Suite into your app, you gain access to detailed, real-time insights into the ad mediation waterfall to troubleshoot setup problems quickly."],["The suite offers comprehensive functionalities such as manual ad requests for testing specific scenarios, a visual ad request waterfall, and adapter status reports to monitor adapter configuration."],["It enables you to manage and organize multiple ad units and ad sources within the test suite, including line item details and other properties for each ad source."],["This ensures a seamless and optimized ad mediation experience, leading to higher fill rates, increased ad revenue, and improved app performance."]]],["Publishers using Google Mobile Ads mediation with Zucks should integrate the Zucks SDK and adapter into their Android app via Android Studio's `libs` folder and update their app-level Gradle file. They must also configure the `AndroidManifest.xml` according to Zucks' documentation. An `Activity` instance should be passed when initializing ad objects for mediated ad networks. The Google Mobile Ads SDK handles fetching ads via the Zucks adapter, without direct calls from the app.\n"]]