AI-generated Key Takeaways
-
The AdMob API allows programmatic management of your AdMob Mediation setup, including creating and updating mediation groups, adding ad sources, and defining ad unit mappings.
-
You 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.
-
Mediation groups enable geo-targeting and management of waterfall ad sources with associated ad unit mappings, including updating ad sources, mappings, and eCPM values.
-
The API provides access to information on ad sources and adapters, facilitating the creation of ad unit mappings and overall setup for programmatic mediation management.
The AdMob API lets you manage your AdMob Mediation setup programmatically. You can create and update mediation groups, add ad source instances, and provide the ad unit mappings to enable calls to multiple third-party networks.
The following activities are available through the AdMob API and UI.
Create | Patch | List | |
---|---|---|---|
App | |||
Ad unit | |||
Ad unit mappings | |||
Mediation group |
With the AdMob API you can:
- Create apps, link them to app stores, and add ad units.
- Create ad unit mappings for all of the waterfall ad sources you want included in your setup.
- Create a mediation group with geo targeting and waterfall ad sources with their associated ad unit mappings.
- Update a mediation group's ad sources, ad unit mappings, and eCPM values.
A mediation group can have many ad source instances, each having their own ad
unit mapping. For instance, mediation group A
could have the following lines:
- Ad source
B
with eCPM $10 and ad unit mappingb
- Ad source
C
with eCPM $8 and ad unit mappingc
- Ad source
D
with eCPM $6 and ad unit mappingd
The hierarchy of objects and maps is as follows:
Get started
Start creating mediation groups, group lines, and mapping ad units programmatically with the following examples:
- Complete your setup to make requests using Curl.
- Programmatically get information on ad sources and adapters to create ad unit mappings.
- Create apps and ad units.
- Create mediation groups.