การผสานรวม Tencent YLH กับสื่อกลาง
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คู่มือนี้มีไว้สำหรับผู้เผยแพร่โฆษณาที่สนใจใช้สื่อกลางโฆษณาในอุปกรณ์เคลื่อนที่ของ Google กับ Tencent YLH คู่มือแนะนำการตั้งค่าอะแดปเตอร์สื่อกลางกับแอปปัจจุบัน ตลอดจนการตั้งค่าพารามิเตอร์คำขอเพิ่มเติม
ข้อกำหนดเบื้องต้น
เกริ่นนำที่เป็นประโยชน์
บทความต่อไปนี้ในศูนย์ช่วยเหลือให้ข้อมูลความเป็นมาเกี่ยวกับสื่อกลาง
รวมอะแดปเตอร์เครือข่ายและ SDK
ดาวน์โหลด SDK และอะแดปเตอร์สำหรับ Tencent YLH จากลิงก์ที่ให้ไว้ด้านบน
SDK บางรายการมีอะแดปเตอร์โฆษณาบนอุปกรณ์เคลื่อนที่ของ Google อยู่แล้ว ขณะที่ SDK อื่นๆ เสนอเป็นไฟล์แยกต่างหาก ดูคำแนะนำในการผสานรวมหรือ README ที่มากับอะแดปเตอร์แต่ละตัว
รวม SDK และไฟล์อะแดปเตอร์ของเครือข่ายสื่อกลางเป็นทรัพยากร Dependency ในไฟล์ build.gradle
ระดับแอปของคุณใน Android และ Podfile
ใน iOS
รวมการกำหนดค่าเครือข่าย
- Android
- เครือข่ายโฆษณาบางเครือข่ายจำเป็นต้องมีการกำหนดค่าเพิ่มเติมลงในไฟล์
AndroidManifest.xml
ของคุณ คุณแก้ไข AndroidManifest.xml
ภายในไดเรกทอรี android/app/src/main
ได้
- iOS
- เปิด
ios/Runner.xcworkspace
ของโปรเจ็กต์ใน Xcode และใส่เฟรมเวิร์ก แฟล็กคอมไพเลอร์ หรือแฟล็กตัวลิงก์ทั้งหมดที่เครือข่ายที่คุณเลือกต้องการ
แอปไม่จำเป็นต้องเรียกใช้โค้ดเครือข่ายโฆษณาของบุคคลที่สามโดยตรง เพราะ SDK โฆษณาในอุปกรณ์เคลื่อนที่ของ Google จะโต้ตอบกับอะแดปเตอร์ของเครือข่ายที่เป็นสื่อกลางเพื่อดึงโฆษณาของบุคคลที่สามในนามของคุณ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-07-01 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"]],["อัปเดตล่าสุด 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"]]