將 Tencent YLH 與中介服務整合
本指南適用於想要搭配使用 Google 行動廣告中介服務和 Tencent YLH 的發布商。並逐步引導您為目前的應用程式設定中介服務轉接程式,以及設定其他請求參數。
必要條件
實用入門課程
以下說明中心文章提供中介服務的背景資訊:
包含聯播網轉接程式和 SDK
從上方提供的連結下載 Tencent YLH 適用的 SDK 和轉接程式。
有些 SDK 已包含 Google Mobile Ads 轉接程式,有些則會以獨立檔案的形式提供。請參閱每個轉接程式隨附的整合操作說明或 README
在 Android 的應用程式層級 build.gradle
檔案和 iOS 的 Podfile
中,加入中介服務聯播網的 SDK 和轉接程式檔案做為依附元件。
包含網路設定
- Android
- 部分廣告聯播網需要在
AndroidManifest.xml
檔案中加入額外設定。您可以針對 android/app/src/main
目錄中的 AndroidManifest.xml
進行這些修改。 - iOS
- 在 Xcode 中開啟專案的
ios/Runner.xcworkspace
,並加入所選網路需要的所有架構、編譯器旗標或連結器標記。
您的應用程式不需要直接呼叫任何第三方廣告聯播網程式碼;Google Mobile Ads SDK 會與中介聯播網的轉接程式互動,為您擷取第三方廣告。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-07-01 (世界標準時間)。
[null,null,["上次更新時間:2024-07-01 (世界標準時間)。"],[[["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"]]