Skip to main content
A seller’s proposal can carry a hold: the seller keeps its inventory for you while you decide. This page is the buyer’s side in the V3 tools. What the seller promises, and what each of its answers means, is in Hold and book a seller’s proposal.

Availability

Holds are in the buyer-experience beta. A seller serves them only to a buyer whose account is on the buyer-proposal-refinement feature profile. Apostra does not decide that for the seller: a buyer who is not on it, or a seller that does not offer holds, answers refine_proposals with the seller’s own refusal and nothing changes. Proposals you do not finalize keep working as they do today.

The three steps

  1. Ask for proposals with request_proposals. Each draft proposal you read back has holdPolicy, the seller’s rules for any hold it places on it.
  2. Finalize one with refine_proposals and action: "finalize". The seller commits the draft’s terms and, when it can, holds its inventory.
  3. Book it with save_media_buy and fromProposalId, as you book any proposal. When the buy is launched, Apostra books the committed proposal with the seller’s accept_proposal for the terms you reviewed, so the seller converts the hold into your media buy at the price it committed.

Finalize

finalize and extend_hold take exactly one proposalId. The proposal keeps its proposalId. Its current version is replaced by the version the seller committed, so read it again to see the committed terms, expiresAt and hold. The draft stays in the proposal’s version history. Without action, or with action: "refine", refine_proposals only records that you want to refine the proposal. It never contacts the seller. A seller that cannot place the hold answers hold_unavailable. You get an error that names it, nothing is committed, and the proposal stays a draft. Finalize it again later, or book another proposal.

Extending a hold

action: "extend_hold" is accepted but not available yet. It returns an error and sends nothing: the AdCP client Apostra sends through cannot send it (adcp-client#3753), and Apostra storefronts do not serve it. Book before expiresAt, or finalize a fresh proposal.

Read the hold

Every proposal read, from get or search with kind: "proposal", carries: A hold covers the whole proposal: a proposal holds all its products or none. holdState is worked out when you read the proposal, so it is never stale:
  • held: the seller placed a hold, expiresAt is in the future and the hold has not ended.
  • expired: the hold ran out before it was booked.
  • released: the hold ended another way. A booked proposal reads released, because the hold was converted into the buy. A declined proposal reads released too.
  • null: no hold was ever placed. A terms-only proposal reads null, and productsWithoutHold names why.

If booking is slow or fails

Booking is safe to retry. Apostra sends the seller the same request every time until it gets an answer, so a retry never books twice.
  • If the seller refuses (the proposal expired, was replaced, or its terms no longer match), nothing is booked and the media buy fails with the seller’s reason. Request a fresh proposal.
  • If the seller does not answer, the media buy is retried automatically with the same request.
  • If the seller says it does not know whether it booked (accept_outcome_unknown), the proposal is never booked again. Read the seller’s media buys with get_media_buys to see what exists.