create_media_buy
[AdCP Media Buy] Create a media buy (campaign) from an AdCP buy specification.
Creates a campaign that targets DOOH screens based on the provided specification. Returns a media_buy_id for tracking and a creative_deadline for asset submission.
WHEN TO USE:
Executing a programmatic DOOH buy via an AI agent
Creating campaigns from DSP trading desk agents
Automated media buying workflows
RETURNS:
media_buy_id: Unique identifier for this media buy
campaign_id: Internal campaign identifier
creative_deadline: Deadline for creative asset submission
targeting_summary: What was targeted
budget_summary: Budget allocation details
EXAMPLE: User: "Buy retail screens in NYC at $5 CPM for next week" create_media_buy({ name: "NYC Retail Week 12", buy_spec: { venue_types: ["retail"], geo: { city: "New York", state: "NY" }, budget: { daily_usd: 500, bid_cpm: 5.0 }, schedule: { start_date: "2026-03-16", end_date: "2026-03-22" } }, creative: { url: "https://cdn.example.com/creative.mp4", type: "video", duration_seconds: 15 }, buyer_ref: "agency-order-12345" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Media buy name | |
| brand | No | Brand reference | |
| context | No | ||
| buy_spec | No | Buy specification (legacy) | |
| creative | No | ||
| end_time | No | ISO 8601 end time | |
| packages | No | AdCP product packages to buy | |
| buyer_ref | No | External reference ID from the buyer/agency | |
| start_time | No | ISO 8601 start time | |
| total_budget | No | ||
| idempotency_key | No |