Vpon をメディエーションと統合する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このガイドは、Vpon で Google モバイル広告メディエーションを使用することに関心をお持ちのパブリッシャー様を対象としています。このガイドでは、現在の Android アプリと連携するようにメディエーション アダプタを設定する方法と、追加の設定を構成する方法について説明します。
前提条件
役立つ入門ガイド
メディエーションの背景情報については、以下のヘルプセンター記事をご覧ください。
プロジェクトに Vpon を追加する
ネットワーク アダプターと SDK を含める
上記のリンクから Vpon 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'])
// ...
}
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-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 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"]]