Inventory Blueprint
12 endpoints REST pour générer des hiérarchies d'ad units, gérer les size bundles et les size mappings.
Endpoints REST
| Méthode | Path | Description | Crédits |
|---|---|---|---|
| POST | /gam/blueprint/generate | Générer une hiérarchie d'ad units à partir d'un template | 0 |
| POST | /gam/blueprint/validate | Valider une structure d'ad units | 0 |
| POST | /gam/blueprint/export | Exporter en JSON/CSV/GAM Batch | 0 |
| GET | /gam/blueprint/templates | Lister les templates disponibles | 0 |
| POST | /gam/blueprint/push | Pousser les ad units vers GAM | 0.5/unit |
| GET | /gam/blueprint/size-bundles | Lister les size bundles | 0 |
| POST | /gam/blueprint/size-bundles | Créer un size bundle | 0 |
| DELETE | /gam/blueprint/size-bundles/{id} | Supprimer un size bundle | 0 |
| POST | /gam/blueprint/size-mappings | Créer un size mapping | 0 |
| GET | /gam/blueprint/size-mappings/{ad_unit_id} | Voir le mapping d'une ad unit | 0 |
| PUT | /gam/blueprint/size-mappings/{ad_unit_id} | Modifier un size mapping | 0 |
| POST | /gam/blueprint/forecast | Prévision d'inventaire disponible | 0 |
Outils MCP
| Outil | Description | Crédits |
|---|---|---|
| generate_inventory_blueprint | Générer un blueprint à partir d'un template métier | 0 |
| push_blueprint_to_gam | Créer les ad units dans GAM | 0.5/unit |
| list_ad_units | Lister les ad units du réseau | 0 |
| get_ad_unit | Détail d'une ad unit | 0 |
| create_ad_unit | Créer une ad unit | 0.5 |
| update_ad_unit | Modifier une ad unit | 0 |
Exemples
Générer un blueprint
{
"tool": "generate_inventory_blueprint",
"arguments": {
"template": "news_premium",
"brand": "acme_news",
"include_skin": true,
"include_interstitial": true
}
}Notes
- • 5 templates prédéfinis : news, news_premium, ecommerce, blog, spa.
- • Validation naming GAM : ^[a-z][a-z0-9_]{0,99}$.
- • Mode dry-run disponible (preview avant commit).
- • Les size bundles groupent les tailles IAB par contexte (masthead, MPU, leaderboard).
