中介服務管理
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
AdMob API 可讓您以程式輔助方式管理 AdMob 中介服務設定。您可以建立及更新中介服務群組、新增廣告來源例項,並提供廣告單元對應項目,以便呼叫多個第三方聯播網。
您可以透過 AdMob API 和使用者介面執行下列活動。
|
建立 |
修補程式 |
清單 |
應用程式 |
|
|
|
廣告單元 |
|
|
|
廣告單元對應 |
|
|
|
中介服務群組 |
|
|
|
AdMob API 可讓您:
- 建立應用程式、連結至應用程式商店,並新增廣告單元。
- 為要納入設定的所有刊登序列廣告來源建立廣告單元對應。
- 建立中介服務群組,並指定地理位置目標對象,以及包含相關聯廣告單元對應的刊登序列廣告來源。
- 更新中介服務群組的廣告來源、廣告單元對應和有效千次曝光出價值。
中介服務群組可以有多個廣告來源例項,每個例項都有自己的廣告單元對應項目。舉例來說,中介服務群組 A
可能會有下列幾行:
- 有效千次曝光出價為 $10 美元的廣告來源「
B
」,以及廣告單元對應「b
」
- 有效千次曝光出價為 $8 的廣告來源
C
,以及廣告單元對應 c
- 有效千次曝光出價為 $6 的廣告來源
D
,以及廣告單元對應 d
物件和對應項的階層如下:

開始使用
使用下列範例,以程式輔助方式開始建立中介服務群組、群組行和對應廣告單元:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間:2025-08-31 (世界標準時間)。"],[[["\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)."]]