Leadbolt をメディエーションと統合する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このガイドは、Leadbolt で Google モバイル広告メディエーションを使用することに関心があるパブリッシャー様を対象としています。このガイドでは、現在の Android アプリと連携するようにメディエーション アダプタを設定する方法と、追加の設定を構成する方法について説明します。
前提条件
役立つ入門ガイド
メディエーションの背景情報については、以下のヘルプセンター記事をご覧ください。
プロジェクトに Leadbolt を追加する
ネットワーク アダプターと SDK を含める
上記のリンクから Leadbolt SDK とアダプタをダウンロードします。
Android Studio で、プロジェクトの libs
フォルダにアダプタ ファイルと SDK ファイルを追加します。アプリレベルの Gradle ファイルに次の記述が含まれていることを確認します。
Kotlin
dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.aar", "*.jar"))))
// ...
}
Groovy
dependencies {
implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'])
// ...
}
Leadbolt のドキュメントの指示に従って AndroidManifest.xml
ファイルを変更します。
アプリから Leadbolt を直接呼び出す必要はありません。Google Mobile Ads SDK が Leadbolt アダプタを呼び出して、広告を取得します。必要に応じて、追加のリクエスト パラメータを指定できます。このページの残りの部分では、Leadbolt に詳細情報を提供する方法について説明します。
Activity インスタンスを使用して広告オブジェクトを初期化する
新しい広告オブジェクト(AdView
など)のコンストラクタで、Context
型のオブジェクトを渡す必要があります。この Context
は、メディエーションを使用する際に他の広告ネットワークに渡されます。広告ネットワークによっては、制限がさらに厳しい Activity
の Context
が要求され、Activity
インスタンスがなければ広告を配信できない場合もあります。そのため、メディエーション広告ネットワークでのエクスペリエンスが一貫したものになるよう、広告オブジェクトの初期化時に Activity
インスタンスを渡すことをおすすめします。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-24 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-24 UTC。"],[[["This guide helps publishers integrate Leadbolt ads into their Android apps through AdMob mediation."],["You need an Android app with the Google Mobile Ads SDK and an AdMob account with configured ad units to get started."],["The process involves adding the Leadbolt SDK and adapter, configuring the AndroidManifest.xml file, and initializing ad objects with an Activity instance."],["Refer to the provided Leadbolt resources and helpful primers for detailed instructions and background information."]]],["This guide details integrating Leadbolt with Google Mobile Ads mediation for Android apps. Key actions include: downloading the Leadbolt SDK and adapter, adding them to the project's `libs` folder, and modifying the `AndroidManifest.xml` file as per Leadbolt's instructions. The guide emphasizes that the Google Mobile Ads SDK handles ad fetching, not the app directly. It also recommends initializing ad objects with an `Activity` instance for compatibility with mediated ad networks.\n"]]