> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apostra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Media buy lifecycle

> The AdCP media-buy status values a buyer reads on the wire — what each one means, how a source's manual moderation keeps a buy pending, and how an asynchronously accepted buy resolves through a submitted task.

A [media buy](https://docs.apostra.com/v2/buyer/campaigns/media-buys.md) carries a lifecycle status on the
AdCP wire that tells a buyer whether it is delivering, waiting on something, or
finished. This page defines each status, explains why a buy a source is still
moderating stays `pending_creatives`, and shows how a buy a source accepts
out-of-band resolves through a submitted task.

> [!NOTE]
>
> The AdCP wire status described here is one of **three** distinct status
> surfaces a buyer can see for the same buy. They do not replace each other — see
> [Three status surfaces](https://docs.apostra.com/v3/media-buy-lifecycle.md#three-status-surfaces) before treating any one as
> "the" status.

## The AdCP media-buy status

When a buyer's agent calls a storefront's AdCP agent (`create_media_buy`,
`update_media_buy`), a confirmed buy carries a per-buy `media_buy_status`. It is
one of eight values:

| Status | What it means to a buyer |
| - | - |
| `pending_creatives` | Accepted, but no approved creative is assigned yet, so it cannot launch. The buy waits here until a creative is approved and attached. |
| `pending_start` | Accepted with creatives ready, but not reported active. It may be waiting for its flight date or for seller work. Do not infer that it will start automatically. |
| `active` | Live and delivering against the flight. |
| `paused` | Delivery is halted and resumable — by the buyer, or because the buy was created paused. |
| `ending` | A storefront accepted a cancellation, but the seller has not yet supplied terminal evidence. The buy remains committed until the seller confirms a terminal result. |
| `completed` | The flight finished or the budget fully delivered. **Extendable.** A buyer may increase the budget or extend the flight date, which stages a new version for seller approval. A historical correction stays `completed`. An approved flight extension becomes `active` only when it puts the flight back in progress and the seller reports the buy as active. An approved material budget increase can also become `active` when the current flight is still in progress, every seller source accepts that update, and its update response reports the buy as active. A seller status change alone, a budget decrease, a cancellation, a rejection, or an ended flight stays `completed`. The earlier completed version remains in history. If the owning campaign has also completed, updates are blocked. `canceled` and `rejected` are the truly irrecoverable terminal states. |
| `rejected` | The source declined the buy. Terminal — resubmit only after addressing the reason. |
| `canceled` | Stopped before completion, by the buyer or the source. Terminal. Also covers a buy the storefront could not place with its source at all — see below. |

> [!NOTE]
>
> **A buy that never reached its source can read `canceled`.** If `create_media_buy`
> is accepted by the storefront but the forward fails because of a malformed
> request or credential fault, no media buy exists upstream and the buy is
> `canceled`. A temporary source outage is retried for up to six hours before it
> becomes terminal, with
> `cancellation.canceled_by` set to `seller` and the cause in the response
> `errors[]` — not `pending_start`, which promises a launch that cannot happen.
>
> `rejected` is reserved for a source that actually considered the buy and
> declined it. A transport or credential failure is not a seller's "no", so it
> never reads as one: retrying the same request may well succeed.

> [!NOTE]
>
> There is no `pending_approval` value in the AdCP media-buy status. Insertion-order
> signing, governance review, and other pre-issuance steps are not modeled as a
> buy status — they happen at the **task** layer, before a `media_buy_id` exists.
> See [Asynchronous acceptance](https://docs.apostra.com/v3/media-buy-lifecycle.md#asynchronous-acceptance-the-submitted-task).

### Why a buy reads `pending_creatives`

`pending_creatives` is the default landing state for a buy that has been
accepted but has nothing launch-ready attached. Two distinct situations both
surface as `pending_creatives`:

* **No creative is assigned yet.** The buy exists, but the buyer has not synced
  or assigned an approved creative to it.
* **The source is moderating the buy.** Some sources accept a buy and then park
  it for manual review — checking creatives, signing an insertion order, or
  applying a content policy — before it is launch-eligible. While that review is
  outstanding the buy is accepted but **not launch-ready**, and reads
  `pending_creatives`.

> [!TIP]
>
> `pending_creatives` is not a failure. It means "accepted, not yet launchable."
> Resolve it by assigning an approved creative (and, where a source moderates,
> waiting for that review to clear), not by resubmitting the buy.

### Launching before the creative is ready

Before a buy goes to a seller, Apostra checks that every creative attached to
it is already in that seller's creative library. When a creative has not
reached the seller yet, the launch is refused, and you have two choices:

* **Sync the creative and launch again.** The buy goes to the seller with its
  creative attached.
* **Launch without the creative.** Remove the creative from the media buy and
  launch it. The seller accepts the buy as `pending_creatives`, and you attach
  the creative once the seller has it. Nothing delivers until a creative is
  approved and attached.

Both are supported. Choose the second when the flight should be booked now and
the creative will follow.

A launched buy with no creative attached reads as waiting for creative: its
[`pendingReason`](https://docs.apostra.com/v3/media-buy-lifecycle#pendingreason-whose-side-owns-the-wait) is
`no_creatives_attached`, on the media buy and on the same buy inside its
campaign. This holds whatever lifecycle the seller reports for it, including
`active` or `pending_start`, so a buy the seller shows as live without a
creative does not read as delivering or merely scheduled. Attach a creative and
the reason clears.

### Paused buys still show setup blockers

Creating a buy with `paused: true`, or pausing it before its creative arrives,
does not replace a more useful setup status. The pause is retained as a latent
delivery hold:

1. With no launch-ready creative, the buy reads `pending_creatives`.
2. With creatives ready but a future flight, it reads `pending_start`.
3. Once the buy is otherwise ready to launch, it reads `paused` instead of
   becoming `active`.

Resuming during either pending state clears the latent hold but does not bypass
the blocker. The buy remains pending until its creative and flight are ready.
An underlying ad platform may show its native campaign as paused throughout
this setup period to prevent spend; the AdCP status reports the actionable
blocker rather than copying that provider control.

### The status follows what the sales agent reports

A buy's status, and each package's status, is what the seller's sales agent
reports for it through AdCP. This is the same for Apostra's managed sales agents
and for third-party sales agents. Apostra does not read the seller's ad server:
it never sees line items, goals, pacing settings or ad-server statuses, and it
does not hold a buy at `pending_start`, or pause a package, because of how
objects in an ad server are set up. A buy the sales agent reports `active` reads
`active`.

Keeping spend inside the budget is the sales agent's job. A sales agent
guarantees that the ad-server objects behind a package cannot together spend
more than the budget it accepted. It refuses to activate, or pauses on its own,
a package it cannot cap, and says so as a status or an error. It also reports
each package's effective budget, rate, pacing and flight as read from its ad
server, counting every object behind the package. Two line items that can each
spend the whole budget report twice the budget. Certification checks this for
every sales agent: see
[How certification works](https://docs.apostra.com/v3/certification.md#spend-stays-within-the-budget).

Apostra compares what the sales agent reports with what you booked: budget,
rate, flight, targeting and creatives. A difference does not change the buy's
status. It is shown to the seller as out of line with the agreed terms, and
Apostra's operations team is alerted when the difference is financial and the
buy is live. See [the agreed-terms check](https://docs.apostra.com/v3/agreed-terms-check.md).

The budget compared is the amount sent to the seller, net of buyer fees and
converted into the seller's currency where the buy crosses currencies.

### A buy's status follows the seller's own status read

Apostra reads each seller two ways: a status read (`get_media_buys`) and a
delivery read (`get_media_buy_delivery`). Some sellers derive the status in
their delivery read from flight dates alone, so it can say `active` for a buy
the seller has not started. The status read is the authority. Whenever Apostra
holds a status read taken beside a delivery read, that part takes the status the
read reports, whether it is pending, `active`, `paused` or ended, and the
delivery read never overrides it. Apostra takes the status read immediately
before it ingests the delivery read, and an older status read does not decide,
because it may predate a change the delivery read reports, such as a pause.
Without a current status read, the delivery read's status stands, except that a delivery read of `active` with no impressions or spend never overrides an older status read of pending, because that delivery status can be derived from flight dates alone.

If the delivery read shows impressions or spend while the status read says the
buy is pending, paused or ended, the buy keeps the status read's status and
Apostra's operations team is alerted once, so the seller can be asked which
read is right.

## Asynchronous acceptance: the submitted task

A source does not always confirm a buy before the response is emitted. When a
source accepts a buy out-of-band — parking it for manual moderation, queuing it
for batch processing, or awaiting an insertion-order signature — the storefront
returns a **submitted task envelope** instead of a confirmed buy:

```json theme={null}
{
  "status": "submitted",
  "task_id": "task_8f3c1a90-4d2e-4b77-9c1a-3e9b5d2f0a11",
  "message": "Awaiting manual review by the source."
}
```

There is no `media_buy_id` on this response — the buy is not confirmed yet. The
buyer resolves it the same way as any async operation: **poll** the task (the
AdCP `tasks_get` operation) with the `task_id`, or **await a webhook** if a
push-notification config was attached to the original call. See
[Tasks](https://docs.apostra.com/v2/guides/tasks.md) for the concrete polling endpoint, webhook setup, and
back-off mechanics.

`submitted` and `working` mean the task is still processing — keep polling.
Otherwise it resolves to one of three terminal task states, and the outcome
lands on its completion artifact:

| Task status | What you get |
| - | - |
| `completed` | The confirmed `media_buy_id` plus its `media_buy_status` — typically `pending_creatives` or `pending_start` (or `rejected` / `canceled` if the source accepted the buy and then declined or stopped it). |
| `input-required` | The source needs something more from you before it can finish. Inspect the response and `error.suggestion`, then resubmit the call with the correction. See [Tasks](https://docs.apostra.com/v2/guides/tasks.md). |
| `failed` | The operation could not complete — including a source that declined the buy outright; the `error` object explains why. |

> [!NOTE]
>
> An `update_media_buy` edit that a source queues for moderation behaves
> identically: the storefront returns a `submitted` task envelope, and the edit's
> result lands on the task's completion artifact. The same poll-or-webhook pattern
> applies.

A source behind a storefront can also pause a create or an update for more
input (the AdCP `input-required` status). On that call the caller is Apostra,
not you, and Apostra cannot supply the input yet, so the operation fails as
soon as Apostra sees the pause: either in the `create_media_buy` or
`update_media_buy` response, or as a `failed` task if the source paused it
later. Nothing is left waiting on the source. Notifications report the failure
with `errorCode: platform_error`. Sending the same request again will be paused
the same way.

> [!WARNING]
>
> A `submitted` envelope is not a confirmation. Do not treat the `task_id` as a
> `media_buy_id`, and do not assume the buy is live until the task completes with a
> `media_buy_status` of `active`.

## Provider readback on a media buy

For a media buy on an adapter that supports readback (today Meta, OpenAI Ads and Snap),
`get(kind: "media_buy")` can show the latest retained provider readback beside
the lifecycle state. `readback.checkedAt` says when we checked the provider,
while `confirmedAt` dates the provider value itself. A seller's readback is
retained only once it is switched on for that seller account. A failed
check remains visible as `outcome: "failed"`; it does not make an older value
look current. If the last confirmed value is more than 15 minutes old,
`stale: true` makes that clear. A check that is still running has
`outcome: "in_progress"` and no confirmed provider value.

The read can also carry current `indicators[]`. `interchange.provider_drift`
means the provider and Apostra disagree about a tracked setting. Financial
drift names a budget or flight difference. The budget and flight are compared
with what the buy books now, so a change you make through Apostra is never
drift, even while it is still being applied. A Meta budget is compared only
when Meta states a lifetime total: a daily budget, or a budget Meta's campaign
budget optimization controls, is not compared. Targeting, creatives and the
campaign name are compared with what the provider held before it changed. The
indicator clears on the next readback that is back in line, whether the provider
was put back or you changed the booking to match. `interchange.discovered_object`
means the provider reports a creative that Apostra did not dispatch. These
are signals to inspect the buy, not actions and not a hidden change at the
provider, and they never change the buy's status: the seller owns that. When no
provider readback has been retained, the readback and indicator fields are absent rather
than inferred.

### Receiving the async result without polling

Instead of polling, a buyer can register a `push_notification_config` on the originating call so the platform delivers the completion event to a webhook when the task resolves:

* **AdCP/MCP surface** — buyers calling a storefront's `create_media_buy` or `update_media_buy` tool directly can include a `push_notification_config` field in the request body. The platform stores it and calls the buyer's webhook when the task reaches a terminal state, eliminating the need to poll.

* **REST API surface** (`execute_campaign`) — the platform manages the AdCP-layer webhook on the buyer's behalf. Buyers receive media buy state transitions through Apostra webhook subscriptions: register one via `create_webhook_subscription` and subscribe to `media_buy.approved`, `media_buy.rejected`, and related event types. See [Notifications](https://docs.apostra.com/v2/guides/notifications.md).

The two paths are complementary — a buyer on the REST API does not need to configure `push_notification_config` directly; that handshake happens internally between the platform and the seller.

## Cancellation

A buyer cancels a media buy by requesting deletion (the AdCP `delete` operation
or `update_campaign` with `action: delete`). What happens next depends on whether
the buy has been committed to a source and, if so, whether the inventory is
guaranteed.

### Retraction: uncommitted buys

When the buy has **not** been accepted by a source (no upstream media-buy id
and no seller task id), the cancel is a **retraction**: the pending request is
withdrawn locally and no seller cancel is sent. The buy transitions to
`canceled`.

If the buy is still waiting for the seller to approve it, the retraction also
withdraws that approval request. The seller's approval task closes, and the
request can no longer be approved or sent to any source, so a canceled buy
never becomes live afterwards. The buy reads `canceled` only after the
withdrawal has been recorded; if the cancel fails, the buy stays pending and
you can retry.

If the seller approves the buy just before your cancel arrives, the cancel is
refused and the buy stays pending while the storefront sends it to the source.
Retry the cancel shortly; once the buy has reached its source, the cancel
follows the direct or approval path below.

Non-guaranteed committed buys (buys that have been forwarded but are not
guaranteed delivery) also send their cancellation directly with no approval.
If the storefront returns an accepted task rather than terminal seller evidence,
the buy reads `ending` and its budget remains committed until source readback
confirms a terminal result.

### Cancellation approval: committed guaranteed buys

When the buy **is** committed and the inventory is **guaranteed** (the buy has
been forwarded and reserved with the source as guaranteed delivery), a
storefront configured for manual media-buy approval files a seller decision.
Storefronts configured for automatic approval, storefronts without the approval
capability, and pure pass-through storefronts
forward the cancel directly.
On the manual path, the storefront operator sees an
`APPROVE_MEDIA_BUY_CANCELLATION` item in their
[approvals queue](https://docs.apostra.com/v3/seller-workflows.md#operate-work-items-and-approvals), and the buy
**keeps delivering** while the operator decides.

| Decision | What happens |
| - | - |
| **Approve** | The cancel is forwarded asynchronously. The buy terminates (`canceled`) after every source leg accepts it. |
| **Reject** | The buy stays `active`. The buyer is notified the cancellation was declined, with the operator's reason. The buyer may re-request. |

> [!NOTE]
>
> A buy with **any** guaranteed leg is treated as guaranteed for cancellation
> purposes. There is no partial (per-leg) cancel: approval or rejection applies to
> the entire buy.

While a cancellation is awaiting the operator's decision, the buy keeps its
normal AdCP status and continues delivering. Current buyer read surfaces do not
yet expose a dedicated cancellation-wait `pendingReason`; use the cancellation
request/decision notifications to follow this transition.

> [!WARNING]
>
> If the result has no pending leg and is not wholly completed after the operator
> approves—including all-failed, precondition-failed, or partial completed+failed
> outcomes—the buy is **not** marked canceled. The work item moves to `BLOCKED`
> with the failure reason, and the operator can retry. A mixed outcome where one
> leg is pending while another fails is a current limitation: the item can close
> before every leg is confirmed canceled. Ask the storefront operator or support
> to confirm the whole-buy outcome before treating that buy as fully terminated.

| Buy state | Cancellation behavior |
| - | - |
| Not accepted by a source (no upstream id or seller task) | **Retraction**: local withdrawal only; no seller cancel is sent. |
| Committed, non-guaranteed | **Direct cancel**: forwarded to the source immediately, no approval. |
| Any guaranteed committed leg on a manual-approval storefront | **Cancellation approval**: operator decides; buy keeps delivering until approved or rejected. |
| Guaranteed committed leg on auto/no-capability topology, or a pure pass-through storefront | **Direct cancel**: no operator decision is opened. |

## `pendingReason`: whose side owns the wait

Statuses say *that* a buy is waiting; they do not say *on whom*. For
storefront-routed buys the platform derives a **`pendingReason` annotation**
from its forwarding records — per source leg, rolled up to the most-blocking
wait — and surfaces it on the buyer's read surfaces
(`GET /media-buys/:mediaBuyId`, the nested media buy in
`GET /campaigns/:id`, and the status poll as `pending_reason`).

> [!WARNING]
>
> `pendingReason` is an annotation, **never a status**. AdCP's media-buy status
> is a closed enum and pre-issuance review is deliberately not a status value —
> these reasons explain a wait without changing any status field.

| `pendingReason` | Who owns the wait | Meaning |
| - | - | - |
| `awaiting_storefront_approval` | Seller | The storefront operator has your buy in their review queue |
| `awaiting_ad_server_approval_permission` | Seller | The seller's ad server created the order but holds it in draft because the seller's ad-server user cannot approve orders. The seller can grant the permission or approve the order by hand |
| `awaiting_source_moderation` | Seller | The inventory source accepted the buy asynchronously and is still moderating it — no upstream buy exists yet (task-layer wait) |
| `no_creatives_attached` | You | The buy reached the source with no creatives attached, whatever lifecycle the source reports for it (`pending_creatives`, `pending_start` or `active`) — nothing is in review anywhere, so the wait cannot resolve on its own. Attach creatives to the buy. A buy whose creatives were attached but none matched the seller's formats is a different case: it keeps its own blocker |
| `source_rejected_creatives` | You | Every creative assigned to the buy was rejected by at least one source agent — replace or fix the creatives |
| `creatives_not_delivered` | Platform / You | Creatives are attached, but every one was stopped before it could serve at the seller: Apostra did not send it (an unlinked account, an unresolved format, a refused destination, a failed dispatch) or the seller cannot take it without a correction. A seller's rejection of every creative is `source_rejected_creatives` instead. Read each creative's failure reason to see who must act, as in [Creative sync outcomes](https://docs.apostra.com/v3/creative-sync-outcomes.md) |
| `creative_processing_at_source` | Seller | The upstream buy exists; the source is processing/moderating its creatives before it is launch-eligible |
| `awaiting_creative_approval` | Seller / You | The upstream buy exists, creatives are attached, and a creative review or assignment is genuinely pending |
| `forward_failed_retrying` | Platform | Forwarding to the source failed transiently; the platform is retrying |
| `forward_failed_needs_correction` | Platform | Forwarding failed structurally; a correction is needed before it can be retried — see `errorCode` |
| `accepted_awaiting_trafficking` | Seller | The source has not started trafficking it; for a manual modular source, upstream booking still requires seller action |
| `scheduled_not_started` | Nobody | The flight has not been reported active; do not infer that it will start automatically |

On the supported V3 media-buy and campaign reads, `statusMessage` qualifies the
lifecycle with work-item evidence when the source is manual. While booking
remains open it reads **“Upstream booking requires seller action.”** After
booking completes without provider status it reads **“Booked upstream; start
not independently verified.”** A separate creative `pendingReason` remains
visible when creative work is also open.

`pendingSince` accompanies the reason with when the current wait began. When a
wait turns into a failure or rejection, the buyer-safe `errorCode` (and the
source's sanitized message) carries the why — see
[the error-code table](https://docs.apostra.com/v2/buyer/campaigns/media-buys.md#errorcode--structured-failure-codes).

Acceptance confirms that the source accepted the transaction; it is not proof
of trafficking or delivery. When creative sync, manual booking, or trafficking
work remains, the seller surface keeps that work and its current owner visible
until the source boundary reports the later lifecycle state.

## Three status surfaces

The same buy can be described by three different status vocabularies depending
on which surface you read. They answer different questions and use different
value sets — keep them distinct.

| Surface | Field | Value set | What it describes |
| - | - | - | - |
| AdCP per-buy (this page) | `media_buy_status` | `pending_creatives`, `pending_start`, `active`, `paused`, `ending`, `completed`, `rejected`, `canceled` | One buy's lifecycle on the AdCP wire. |
| AdCP account rollup | `operational_status` | `no_media_buys`, `draft`, `pending_creatives`, `pending_start`, `active`, `paused`, `completed`, `attention_required` | An account-level rollup across all of a buyer's buys. `no_media_buys`, `draft`, and `attention_required` are rollup-only. |
| Apostra buyer rollup | `status` | `DRAFT`, `PENDING_APPROVAL`, `INPUT_REQUIRED`, `ACTIVE`, `PAUSED`, `ENDING`, `COMPLETED`, `CANCELED`, `FAILED`, `REJECTED`, `ARCHIVED` | The higher-level Apostra campaign and media-buy rollup. See [Media Buy → Status](https://docs.apostra.com/v2/buyer/campaigns/media-buys.md#status). |

Apostra buyer rollup is a **coarser, derived** view of the AdCP per-buy
status — not an independent one. Each AdCP value maps to one Apostra value,
and `pending_creatives` and `pending_start` both collapse to `PENDING_APPROVAL`:

| AdCP `media_buy_status` | Apostra `status` |
| - | - |
| `pending_creatives`, `pending_start` | `PENDING_APPROVAL` |
| `active` | `ACTIVE` |
| `paused` | `PAUSED` |
| `ending` | `ENDING` |
| `completed` | `COMPLETED` |
| `rejected` | `REJECTED` |
| `canceled` | `CANCELED` |

Buyer campaign and single-media-buy reads keep the seller's more specific
value in `sourceStatus`. Use it when displaying a buy: `pending_start` means
the buy was accepted and is waiting for its flight date, not that it is waiting
for approval. The coarser `status` remains available for filtering and older
clients.

For a multi-agent campaign the rollup also surfaces the **most restrictive**
value across agents (see
[Most-restrictive rule](https://docs.apostra.com/v2/buyer/campaigns/media-buys.md#most-restrictive-rule)),
so a campaign with one `pending_creatives` buy and one `active` buy reports
`PENDING_APPROVAL`. Apostra also has states from its own flow that no AdCP
wire value maps to — `DRAFT` (before execution), `INPUT_REQUIRED`, `FAILED`, and
`ARCHIVED`.

> [!TIP]
>
> For Apostra rollup and how to poll it, read
> [Get media buy status](https://docs.apostra.com/v3/buyer-workflows.md#5-inspect-staged-work). The
> `adcp_status` field on that response carries the raw AdCP wire status this page
> defines.

## Pending changes: what is live vs what you asked for

When you update a running buy — or extend a completed one — the change is recorded immediately but does not take effect until it is accepted upstream. During that window the buy has two states at once: the one that is live, and the one you asked for.

Updating a `completed` buy follows the same path: the live values (including `status: "COMPLETED"`) remain unchanged while a new version enters `PENDING_APPROVAL`. Once the seller approves it, the new budget and dates take effect. A historical correction stays `completed`. A later end date that puts the flight back in progress becomes `active` when the seller also reports the buy as active. A material budget increase can become `active` only while the current flight is still in progress, every seller source accepted the update, and its update response reports the buy as active. The earlier completed version remains in the buy's history.

**Every read surface reports what is live.** `status`, `endTime`, budgets and
packages always describe the buy as it is currently delivering. A submitted
change never overwrites those values, because a number you cannot tell is live
is a number you cannot act on.

The change surfaces separately, as `pendingChange`:

```json theme={null}
{
  "mediaBuyId": "mb_QCW9XsBApq",
  "status": "ACTIVE",
  "endTime": "2026-07-27T23:59:59.000Z",
  "pendingChange": {
    "status": "PENDING_APPROVAL",
    "pendingAt": "storefront",
    "reason": "Extended to 8/11 with W5+W6 gross budget",
    "differences": {
      "endTime": {
        "live": "2026-07-27T23:59:59.000Z",
        "proposed": "2026-08-11T23:59:59Z"
      },
      "budget": { "live": 33526.33, "proposed": 50105 }
    }
  }
}
```

If a later update changes a different part of the buy, the queued change carries
forward unchanged and remains under `pendingChange`. For example, extending a
flight does not remove a queued creative change. An explicit `creative_ids`
update that differs from the queued creative change is refused with `CONFLICT`;
resolve or withdraw the queued change before replacing its creative set.

A creative change the seller refuses outright (for example a tag with a
placeholder the seller cannot fill) does not stay queued: the refused change is
closed, so the next creative change on the buy goes through. Archiving or
detaching a creative also removes it from any queued change.

A creative change whose seller call failed before the seller recorded an
approval is closed the same way when the next explicit `creative_ids` update
arrives, because that update replaces the whole creative set. A change the
seller may still be processing, or that is waiting for approval, stays queued
and still refuses a conflicting `creative_ids` update.

Read it like this:

* **`pendingChange` absent**: nothing is queued. Everything you see is live.
* **`pendingChange` present**: a change was accepted by Apostra but has
  **not** reached the delivering buy. `differences` lists only the fields whose
  proposed value differs from live. An empty `differences` means the change is
  redundant against what is already live.

> [!WARNING]
>
> A buy reading `status: "ACTIVE"` with a `pendingChange` is delivering the **old**
> values. Do not treat a successful update response as confirmation that the new
> values are live. Poll until `pendingChange` disappears, and confirm delivery
> with `has_delivery` on
> [get media buy status](https://docs.apostra.com/v3/buyer-workflows.md#5-inspect-staged-work).

### Where each surface reports it

| Surface | Reports | Pending change |
| - | - | - |
| [`get_media_buy`](https://docs.apostra.com/v2/buyer/campaigns/media-buys) | The live buy | `pendingChange`, including field-level `differences` |
| `get_campaign` → `mediaBuyRefs[]` | Current status per buy, including `ARCHIVED` after archival | `pendingChange` with status and layer only, to keep the reference small; archived substantive details are omitted from `mediaBuys[]` |
| `get_campaign` → `mediaBuys[].packages[]` | Live packages and budgets | Not carried, read `get_media_buy` |
| [`get_media_buy_status`](https://docs.apostra.com/v3/buyer-workflows#5-inspect-staged-work) | Live delivery state | Not carried, this surface answers "is it delivering" |

A buy awaiting its **first** approval is a different case: that buy is itself
pending, so `status` is `PENDING_APPROVAL` and there is no `pendingChange`,
because nothing is live behind it yet. `pendingChange` only ever describes a
change queued behind an already-established buy.

## A buy found running at the seller

Apostra can ask each seller it routes buys to for every media buy the seller
holds for those routes, and compare the answer with its own records.
A buy the seller is running that Apostra has no record of, for example because
the seller's acceptance never reached us, is reviewed by Apostra staff. It is
never added to your account automatically.

If staff confirm with you that the buy is yours, they add it to the campaign
you name. From then on it is an ordinary media buy in that campaign:

* Its budget, currency and flight are the seller's at the moment it is added.
  To change them, update the media buy as usual.
* Its status follows the seller, and reporting reads delivery from the seller
  like any other buy.
* Nothing is sent to the seller when it is added. The seller already holds
  the buy.
* Delivery from before the buy was added is billed to you only if you agreed
  to it, and then reporting reads back to the start of the flight. Otherwise
  you are billed from the day (UTC) after the buy was added, so neither that
  day nor any earlier day is billed to you. Reporting does not go back for
  earlier delivery, although it can show the day before the buy was added.

Ask [support](https://docs.apostra.com/v3/support.md) if a media buy appears in a campaign that you did
not expect.

## Related

> [card] [Media Buy](https://docs.apostra.com/v2/buyer/campaigns/media-buys.md)
>
> The media-buy object and Apostra rollup status table

> [card] [Tasks](https://docs.apostra.com/v2/guides/tasks.md)
>
> Polling, webhooks, and back-off for the submitted task envelope

> [card] [Get media buy status](https://docs.apostra.com/v3/buyer-workflows.md#5-inspect-staged-work)
>
> Poll live AdCP status across sales agents

> [card] [Glossary](https://docs.apostra.com/v2/concepts/glossary.md)
>
> One-line definitions of every v2 term


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.