AdFalcon をメディエーションと統合する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このガイドは、AdFalcon で Google Mobile Ads メディエーションを使用することに関心をお持ちのパブリッシャー様を対象としています。このガイドでは、現在の Android アプリと連携するようにメディエーション アダプタを設定する方法と、追加の設定を構成する方法について説明します。
前提条件
役立つ入門ガイド
メディエーションの背景情報については、以下のヘルプセンター記事をご覧ください。
プロジェクトに AdFalcon を追加する
ネットワーク アダプターと SDK を含める
上記のリンクから AdFalcon 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'])
// ...
}
AdFalcon のドキュメントの指示に従って AndroidManifest.xml
ファイルを変更します。
アプリから AdFalcon を直接呼び出す必要はありません。Google Mobile Ads SDK が AdFalcon アダプタを呼び出して、アプリに代わって広告を取得します。必要に応じて、追加のリクエスト パラメータを指定できます。このページの残りの部分では、AdFalcon に詳細情報を提供する方法について説明します。
Activity インスタンスを使用して広告オブジェクトを初期化する
新しい広告オブジェクト(AdView
など)のコンストラクタで、Context
型のオブジェクトを渡す必要があります。この Context
は、メディエーションを使用する際に他の広告ネットワークに渡されます。広告ネットワークによっては、制限がさらに厳しい Activity
の Context
が要求され、Activity
インスタンスがなければ広告を配信できない場合もあります。そのため、メディエーション広告ネットワークでのエクスペリエンスが一貫したものになるよう、広告オブジェクトの初期化時に Activity
インスタンスを渡すことをおすすめします。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-16 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-16 UTC。"],[[["This guide helps publishers integrate AdFalcon with Google Mobile Ads mediation in their Android apps."],["You need an existing Android app with the Google Mobile Ads SDK and an AdMob account with configured ad units."],["Integration involves adding the AdFalcon SDK and adapter to your project and configuring your AndroidManifest.xml file."],["The Google Mobile Ads SDK handles communication with the AdFalcon adapter to fetch ads, but you can customize request parameters if needed."],["Initializing your ad objects with an Activity instance is recommended for optimal performance with mediated ad networks."]]],["Publishers integrate Google Mobile Ads mediation with AdFalcon by downloading the AdFalcon SDK and adapter. Include these files in the Android project's `libs` folder and modify the `AndroidManifest.xml` file as per AdFalcon documentation. Ensure the app-level Gradle file includes the implementation for these files. Initialize ad objects with an `Activity` instance for consistent network experience. The Google Mobile Ads SDK then handles fetching ads via the AdFalcon adapter.\n"]]