Tencent YLH とメディエーションを統合する
このガイドは、Tencent YLH で Google モバイル広告メディエーションを使用することに関心をお持ちのパブリッシャー様を対象としています。ここでは、現在のアプリでメディエーション アダプタをセットアップし、追加のリクエスト パラメータをセットアップする手順について説明します。
前提条件
参考情報
メディエーションの背景情報については、次のヘルプセンター記事をご覧ください。
ネットワーク アダプタと SDK を含める
上のリンクから Tencent YLH の SDK とアダプターをダウンロードします。一部の SDK ではすでに Google モバイル広告アダプタが提供されていますが、別のファイルとして提供されています。各アダプタに含まれる統合手順または README をご覧ください。
メディエーションされるネットワークの SDK とアダプタ ファイルを、Android ではアプリレベルの build.gradle
ファイルに、iOS では Podfile
に依存関係として組み込みます。
ネットワーク構成を含める
- Android
- 広告ネットワークによっては、
AndroidManifest.xml
ファイルに設定を追加する必要があります。この変更は、android/app/src/main
ディレクトリ内の AndroidManifest.xml
に加えることができます。 - iOS
- Xcode でプロジェクトの
ios/Runner.xcworkspace
を開き、選択したネットワークに必要なフレームワーク、コンパイラ フラグ、リンカーフラグを追加します。
アプリが第三者広告ネットワーク コードを直接呼び出す必要はありません。Google Mobile Ads SDK は、メディエーション対象ネットワークのアダプタとやり取りして、ユーザーに代わって第三者広告を取得します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-07-01 UTC。
[null,null,["最終更新日 2024-07-01 UTC。"],[[["This guide helps publishers integrate Tencent YLH ads into their apps using Google Mobile Ads Mediation."],["You'll need an AdMob account, an ad unit with mediation line items, and the Google Mobile Ads SDK in your app as prerequisites."],["The guide provides links to download the Tencent YLH SDK and adapter, and instructions for integrating them into your Android or iOS app."],["It's important to include necessary configurations in your app's `AndroidManifest.xml` or Xcode project for the ad network to function properly."],["The Google Mobile Ads SDK handles communication with the Tencent YLH adapter, so your app doesn't need to directly interact with the third-party ad network."]]],["Publishers using Google Mobile Ads Mediation with Tencent YLH must download the Tencent YLH SDK and adapter. Integrate these as dependencies in the app's build files (build.gradle for Android, Podfile for iOS). For Android, configure `AndroidManifest.xml` with any required network-specific settings. For iOS, add necessary frameworks, flags in Xcode. Ensure you have an AdMob account with configured mediation and the Google Mobile Ads SDK integrated into your app. The Google Mobile Ads SDK handles third-party ad fetching.\n"]]