Vpon をメディエーションと統合する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このガイドは、Vpon で Google モバイル広告メディエーションを使用することをご検討のパブリッシャー様を対象としています。現在の Android アプリで動作するようにメディエーション アダプタを設定し、追加の設定を構成する手順について説明します。
前提条件
役立つプリマー
以下に、調停に関する背景情報をまとめたヘルプセンター記事のリンクをご紹介します。
プロジェクトに Vpon を追加する
ネットワーク アダプターと SDK を含める
上記のリンクから Vpon SDK とアダプターをダウンロードします。
Android Studio で、アダプター ファイルと SDK ファイルをプロジェクトの libs
フォルダに追加します。アプリレベルの Gradle ファイルに次のものが含まれていることを確認します。
Kotlin
dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.aar", "*.jar"))))
// ...
}
Groovy
dependencies {
implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'])
// ...
}
Vpon のドキュメントに記載されている手順に沿って、AndroidManifest.xml
ファイルを変更します。
アプリで Vpon を直接呼び出す必要はありません。Google Mobile Ads SDK が Vpon アダプタを呼び出して、広告を取得します。必要に応じて、追加のリクエスト パラメータを指定できます。このページの残りの部分では、Vpon に詳細情報を提供する方法について詳しく説明します。
Activity インスタンスを使用して広告オブジェクトを初期化する
新しい広告オブジェクト(AdView
など)のコンストラクタで、Context
型のオブジェクトを渡す必要があります。この Context
は、メディエーションを使用する際に他の広告ネットワークに渡されます。広告ネットワークによっては、制限がさらに厳しい Activity
の Context
が要求され、Activity
インスタンスがなければ広告を配信できない場合もあります。そのため、メディエーション広告ネットワークでのエクスペリエンスが一貫したものになるよう、広告オブジェクトの初期化時に Activity
インスタンスを渡すことをおすすめします。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-02-08 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-02-08 UTC。"],[[["This guide helps publishers integrate Vpon ads into their Android apps using Google Mobile Ads mediation."],["It outlines the process of setting up the Vpon adapter and configuring necessary settings."],["Publishers need an existing Android app with the Google Mobile Ads SDK and an AdMob account with ad units for mediation."],["The guide includes instructions on adding the Vpon SDK and adapter, configuring the AndroidManifest.xml, and initializing ad objects."],["It's crucial to use an `Activity` instance when initializing ad objects for optimal compatibility with mediated ad networks."]]],["Publishers integrating Vpon with Google Mobile Ads mediation should download the Vpon SDK and adapter and include them in their Android project's `libs` folder. The app's `AndroidManifest.xml` file must be configured as specified in Vpon's documentation. Initialization of ad objects requires passing an `Activity` instance. No direct Vpon calls are needed; the Google Mobile Ads SDK uses the Vpon adapter to fetch ads.\n"]]