Skip to main content
AdCP operations can take seconds, hours, or days. The server decides how to respond based on how long the operation will take and what’s blocking it.

The 30-second rule

Any AdCP task can return one of these statuses. The server chooses based on what it knows about the work involved: working is not async. It’s a progress signal the server sends out-of-band (via MCP status notifications or SSE) while it continues processing. The caller holds the connection and receives the result when it’s ready — no polling, no webhooks. Think of it as “this is taking a moment, but I’m on it.” submitted is async. The operation is blocked on something outside the server’s control — publisher approval, human review, third-party processing. The caller can always poll the AdCP task status surface with task_id. A configured webhook is an additional notification channel for background workflows, not a replacement for polling. :::tip Webhooks for submitted operations Webhooks are recommended for background submitted operations — they work with any transport (MCP, A2A, REST) and handle operations that outlive a single session. For MCP/REST, the webhook channel is requested with push_notification_config on the task request. For A2A, it remains transport configuration at configuration.pushNotificationConfig, not a snake_case skill parameter. When a request includes a webhook channel and the server accepts the task by returning submitted, the server MUST deliver at least the terminal completion or failure notification to that channel. Intermediate progress notifications are optional unless another operation-specific contract requires them. If the server cannot honor the requested webhook channel, it MUST reject the request with a structured error instead of silently downgrading delivery. See Push Notifications. Polling via the AdCP task polling surface is always valid for submitted tasks. In 3.x, that surface is legacy tasks/get, with optional get_task_status when the seller advertises the alias. Both names accept the same payload shape; multi-account callers SHOULD include account so sellers can scope task visibility to the authenticated account + principal pair. See the polling pattern below. Transport-native tasks are not the AdCP lifecycle. MCP Tasks or A2A task updates may carry or stream an AdCP response, but the durable task state is the AdCP payload: task_id, status, webhook payloads, and AdCP polling/reconciliation. See MCP Guide. :::

Operation examples

Synchronous (instant)

May need human input

May go async (submitted)

These operations integrate with external systems or require human approval. Wholesale feed reads are the exception: get_products buying_mode: "wholesale" and get_signals discovery_mode: "wholesale" stay synchronous repair/reconciliation reads and report partial completion with incomplete[], not submitted.

Timeout Configuration

Set reasonable timeouts based on status:
working uses a connection timeout (how long to hold open), not a poll interval. The server sends progress out-of-band and delivers the result on the same connection. submitted uses a polling or webhook delivery window; a 30-second poll interval is a reasonable default even when webhooks are configured as the primary notification path.

Human-in-the-Loop Workflows

Design Principles

  1. Optional by default - Approvals are configured per implementation
  2. Clear messaging - Users understand what they’re approving
  3. Timeout gracefully - Don’t block forever on human input
  4. Audit trail - Track who approved what when
The human-in-the-loop patterns in async operations embody the Embedded Human Judgment framework — human judgment is embedded in system design, not bolted on afterward.

Approval Patterns

Common Approval Triggers

  • Budget thresholds: Campaigns over $100K
  • New advertisers: First-time buyers
  • Policy-sensitive content: Certain industries or topics
  • Manual inventory: Premium placements requiring publisher approval

Progress Tracking

Progress Updates

Long-running operations may provide progress information:

Displaying Progress

Protocol-Agnostic Patterns

These patterns work with both MCP and A2A.

Product Discovery with Clarification

Campaign Creation with Approval

Polling for submitted Operations

Polling is always valid for submitted operations. A webhook may also deliver completion when configured, but callers can still reconcile through the task polling surface. Don’t poll for working — the server delivers the result on the open connection.

Asynchronous-First Design

Store State Persistently

Don’t rely on in-memory state for async operations:

Handle Restarts Gracefully

Resume tracking after orchestrator restarts:

Best Practices

  1. Design async first - Assume any operation could take time
  2. Persist state - Don’t rely on in-memory tracking
  3. Handle restarts - Resume tracking on startup
  4. Implement timeouts - Don’t wait forever
  5. Show progress - Keep users informed
  6. Support cancellation - Let users cancel long operations
  7. Audit trail - Log all status transitions

Next Steps