GET /api/v2/buyer/campaigns/:id/media-buy-status
Polls the campaign’s sales agents directly for live ADCP status and persists any changes. Useful right after execute while waiting on publisher approvals.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | Yes | Campaign ID (path parameter). |
Response
media_buys reflects one media buy queried from a sales agent:
internal_status— the Interchange status after this poll (one ofDRAFT,PENDING_APPROVAL,INPUT_REQUIRED,ACTIVE,PAUSED,COMPLETED,CANCELED,FAILED,REJECTED,ARCHIVED).adcp_status— the raw status string returned by the sales agent.previous_internal_status/previous_adcp_status— values before this poll.updated—truewhen the status changed as a result of this poll.agents_queried— number of distinct sales agents queried.errors— per-media-buy errors from agents that failed to respond;media_buy_idanderrormessage are included for each failure. A partial error does not prevent successful entries from being returned.
PENDING_APPROVAL, ACTIVE, PAUSED) are polled; terminal buys are excluded.
Errors
| Code | When |
|---|---|
NOT_FOUND | Campaign ID does not exist for the authenticated customer. |
Related
Media buys
Media buy structure and the status enum
Execute campaign
Launch the campaign into media buys
Pause campaign
Halt spend across all media buys
Campaign overview
The campaign object and lifecycle