Blueprint Change Set
Créez un change set d'inventaire, visualisez le diff complet, puis poussez vers GAM uniquement après confirmation.
Endpoints REST
| Méthode | Path | Description | Crédits |
|---|---|---|---|
| POST | /api/inventory/blueprints/{id}/drafts | Créer un change set scoped sur un blueprint | 0 |
| GET | /api/inventory/blueprints/{id}/drafts/{did} | Lire le change set | 0 |
| POST | /api/inventory/blueprints/{id}/drafts/{did}/promote | Promouvoir le change set vers le blueprint | 0 |
| POST | /api/inventory/blueprints/{id}/push | Pousser le blueprint vers GAM avec diff et ack réseau | 0.5/unit |
Outils MCP
| Outil | Description | Crédits |
|---|---|---|
| push_inventory_blueprint(dryRun=true) | Preview diff CREATE/UPDATE/ARCHIVE et token | 0 |
| push_inventory_blueprint(confirmationToken=...) | Pousser le diff confirmé vers GAM | 0.5/unit |
| generate_inventory_blueprint | Générer une structure d'inventaire avant change set | 0 |
Exemples
Preview puis push d'un blueprint
{
"tool": "push_inventory_blueprint",
"arguments": { "blueprintId": "bp_a1b2", "dryRun": true }
}
// -> { "diff": { "create": 4, "update": 2, "archive": 1 }, "confirmationToken": "tok_7d4e" }
{
"tool": "push_inventory_blueprint",
"arguments": { "blueprintId": "bp_a1b2", "confirmationToken": "tok_7d4e", "dryRun": false }
}Notes
- • Le dry-run ne crée, ne modifie et n'archive aucune ad unit.
- • Les opérations irréversibles sont listées dans le plan.
- • Le push confirmé conserve le network code attendu dans le contexte du plan.
