Availability
Holds are in the buyer-experience beta. A seller serves them only to a buyer whose account is on thebuyer-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
- Ask for proposals with
request_proposals. Each draft proposal you read back hasholdPolicy, the seller’s rules for any hold it places on it. - Finalize one with
refine_proposalsandaction: "finalize". The seller commits the draft’s terms and, when it can, holds its inventory. - Book it with
save_media_buyandfromProposalId, as you book any proposal. When the buy is launched, Apostra books the committed proposal with the seller’saccept_proposalfor 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, fromget 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,expiresAtis 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 readsreleased, because the hold was converted into the buy. A declined proposal readsreleasedtoo.null: no hold was ever placed. A terms-only proposal readsnull, andproductsWithoutHoldnames 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 withget_media_buysto see what exists.