Aller au contenu principal

Inventory Blueprint

12 REST endpoints to generate ad unit hierarchies and manage size bundles and size mappings.

REST endpoints

MethodPathDescriptionCredits
POST/gam/blueprint/generateGenerate an ad unit hierarchy from a template0
POST/gam/blueprint/validateValidate an ad unit structure0
POST/gam/blueprint/exportExport as JSON/CSV/GAM Batch0
GET/gam/blueprint/templatesList the available templates0
POST/gam/blueprint/pushPush the ad units to GAM0.5/unit
GET/gam/blueprint/size-bundlesList size bundles0
POST/gam/blueprint/size-bundlesCreate a size bundle0
DELETE/gam/blueprint/size-bundles/{id}Delete a size bundle0
POST/gam/blueprint/size-mappingsCreate a size mapping0
GET/gam/blueprint/size-mappings/{ad_unit_id}View an ad unit's mapping0
PUT/gam/blueprint/size-mappings/{ad_unit_id}Update a size mapping0
POST/gam/blueprint/forecastAvailable inventory forecast0

MCP tools

ToolDescriptionCredits
generate_inventory_blueprintGenerate a blueprint from a business template0
push_blueprint_to_gamCreate the ad units in GAM0.5/unit
list_ad_unitsList the network's ad units0
get_ad_unitAd unit detail0
create_ad_unitCreate an ad unit0.5
update_ad_unitUpdate an ad unit0

Examples

Generate a blueprint

{
  "tool": "generate_inventory_blueprint",
  "arguments": {
    "template": "news_premium",
    "brand": "acme_news",
    "include_skin": true,
    "include_interstitial": true
  }
}

Notes

  • • 5 predefined templates: news, news_premium, ecommerce, blog, spa.
  • • GAM naming validation: ^[a-z][a-z0-9_]{0,99}$.
  • • Dry-run mode available (preview before commit).
  • • Size bundles group IAB sizes by context (masthead, MPU, leaderboard).