การจัดการสื่อกลาง
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
AdMob API ช่วยให้คุณจัดการการตั้งค่าสื่อกลาง AdMob ได้โดยใช้โปรแกรม
คุณสามารถสร้างและอัปเดตกลุ่ม
สื่อกลาง เพิ่มอินสแตนซ์
แหล่งที่มาของโฆษณา และ
ระบุการแมป
หน่วยโฆษณาเพื่อเปิดใช้การเรียก
ไปยังเครือข่ายบุคคลที่สามหลายเครือข่าย
กิจกรรมต่อไปนี้พร้อมใช้งานผ่าน AdMob API และ UI
|
สร้าง |
แพตช์ |
รายการ |
แอป |
|
|
|
หน่วยโฆษณา |
|
|
|
การแมปหน่วยโฆษณา |
|
|
|
กลุ่มสื่อกลาง |
|
|
|
AdMob API ช่วยให้คุณทำสิ่งต่อไปนี้ได้
- สร้างแอป ลิงก์แอปกับ App Store และเพิ่มหน่วยโฆษณา
- สร้างการแมปหน่วยโฆษณาสำหรับแหล่งที่มาของโฆษณา Waterfall ทั้งหมดที่คุณต้องการรวมไว้
ในการตั้งค่า
- สร้างกลุ่มสื่อกลางที่มีการกำหนดเป้าหมายตามภูมิศาสตร์และแหล่งที่มาของโฆษณา Waterfall พร้อม
การแมปหน่วยโฆษณาที่เชื่อมโยง
- อัปเดตแหล่งที่มาของโฆษณา การแมปหน่วยโฆษณา และค่า eCPM ของกลุ่มสื่อกลาง
กลุ่มสื่อกลางมีอินสแตนซ์แหล่งที่มาของโฆษณาได้หลายรายการ โดยแต่ละรายการมีการแมปหน่วยโฆษณาเป็นของตัวเอง เช่น กลุ่มสื่อกลาง A
อาจมีบรรทัดต่อไปนี้
- แหล่งที่มาของโฆษณา
B
ที่มี eCPM $10 และการแมปหน่วยโฆษณา b
- แหล่งที่มาของโฆษณา
C
ที่มี eCPM $8 และการแมปหน่วยโฆษณา c
- แหล่งที่มาของโฆษณา
D
ที่มี eCPM $6 และการแมปหน่วยโฆษณา d
ลำดับชั้นของออบเจ็กต์และแผนที่มีดังนี้

เริ่มต้นใช้งาน
เริ่มสร้างกลุ่มสื่อกลาง บรรทัดกลุ่ม และแมปหน่วยโฆษณา
แบบเป็นโปรแกรมด้วยตัวอย่างต่อไปนี้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\u003cp\u003eThe AdMob API allows programmatic management of your AdMob Mediation setup, including creating and updating mediation groups, adding ad sources, and defining ad unit mappings.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the API to create apps, link them to app stores, add ad units, and establish ad unit mappings for your desired waterfall ad sources.\u003c/p\u003e\n"],["\u003cp\u003eMediation groups enable geo-targeting and management of waterfall ad sources with associated ad unit mappings, including updating ad sources, mappings, and eCPM values.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides access to information on ad sources and adapters, facilitating the creation of ad unit mappings and overall setup for programmatic mediation management.\u003c/p\u003e\n"]]],[],null,["# Mediation management\n\nThe AdMob API lets you manage your AdMob Mediation setup programmatically.\nYou can create and update [mediation\ngroups](/admob/api/v1/mediation-groups), add [ad source\ninstances](/admob/api/v1/ad-sources), and\nprovide the [ad unit\nmappings](/admob/api/v1/ad-unit-mappings) to enable calls\nto multiple [third-party networks](/admob/api/v1/ad-sources-reference).\n\nThe following activities are available through the AdMob API and UI.\n\n| | Create | Patch | List |\n|------------------|--------|-------|------|\n| App | | | |\n| Ad unit | | | |\n| Ad unit mappings | | | |\n| Mediation group | | | |\n\nWith the AdMob API you can:\n\n- Create apps, link them to app stores, and add ad units.\n- Create ad unit mappings for all of the waterfall ad sources you want included in your setup.\n- Create a mediation group with geo targeting and waterfall ad sources with their associated ad unit mappings.\n- Update a mediation group's ad sources, ad unit mappings, and eCPM values.\n\nA mediation group can have many ad source instances, each having their own ad\nunit mapping. For instance, mediation group `A` could have the following lines:\n\n- Ad source `B` with eCPM $10 and ad unit mapping `b`\n- Ad source `C` with eCPM $8 and ad unit mapping `c`\n- Ad source `D` with eCPM $6 and ad unit mapping `d`\n\nThe hierarchy of objects and maps is as follows:\n\nGet started\n-----------\n\nStart creating mediation groups, group lines, and mapping ad units\nprogrammatically with the following examples:\n\n- Complete your [setup](/admob/api/v1/getting-started) to make requests using Curl.\n- Programmatically get information on [ad\n sources](/admob/api/v1/ad-sources) and [adapters](/admob/api/v1/adapters-guide) to [create ad\n unit mappings](/admob/api/v1/ad-unit-mappings).\n- Create [apps and ad units](/admob/api/v1/app-ad-units).\n- Create [mediation\n groups](/admob/api/v1/mediation-groups)."]]