Aller au contenu principal

Blueprint Change Set

Create an inventory change set, view the full diff, then push to GAM only after confirmation.

REST endpoints

MethodPathDescriptionCredits
POST/api/inventory/blueprints/{id}/draftsCreate a change set scoped to a blueprint0
GET/api/inventory/blueprints/{id}/drafts/{did}Read the change set0
POST/api/inventory/blueprints/{id}/drafts/{did}/promotePromote the change set to the blueprint0
POST/api/inventory/blueprints/{id}/pushPush the blueprint to GAM with diff and network ack0.5/unit

MCP tools

ToolDescriptionCredits
push_inventory_blueprint(dryRun=true)Preview the CREATE/UPDATE/ARCHIVE diff and token0
push_inventory_blueprint(confirmationToken=...)Push the confirmed diff to GAM0.5/unit
generate_inventory_blueprintGenerate an inventory structure before the change set0

Examples

Preview then push a 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

  • • The dry-run does not create, modify or archive any ad unit.
  • • Irreversible operations are listed in the plan.
  • • The confirmed push keeps the expected network code in the plan context.