Track a batch of buffered device playbacks
Drain a buffer of fires. Build each entry by splitting the buffered URL’s query string into an object of its parameters — every parameter, unchanged, including any the player does not recognize — then appending ets, except on an error. Never rename, reformat, drop or compute a parameter. On 200, clear the whole batch from the buffer. On 5xx, retry the whole batch: a replayed play is counted once, so a retry never double-counts a play. Entries listed in rejected were malformed; log and drop them, never retry.
Request Body
Section titled “Request Body”ExposureTrackBatchRequest carries a drained offline buffer: many fires in one request. Each entry is a complete Track request, built by splitting a buffered URL’s query string into an object of its parameters.
ExposureTrackBatchRequest carries a drained offline buffer: many fires in one request. Each entry is a complete Track request, built by splitting a buffered URL’s query string into an object of its parameters.
object
Fires are the buffered fires, in any order — the server groups them itself, so the player sends a flat list and never restructures its queue. Copy every parameter of each buffered URL through, including any the player does not recognize; dropping one silently loses what it carried.
ExposureTrackRequest reports a single playback fire. The URL and all query
parameters are server-stamped; players must relay the URL verbatim, appending
only ets (occurrence time). Never parse or modify any server-provided param.
object
Asid is the per-serving id (the ad-serving id; the decision-store key) stamped on the tracking URLs by Exchange.Ads.
Sts is the Verve server timestamp stamped at decision time (RFC3339).
Ets is the player-side event occurrence timestamp (RFC3339). Optional with ce=error.
Dvactid is the opaque Advertima activation id.
Fields 7 to 14 are not used. Do not send them. flight_id is the booked flight behind the decision.
Campaign_id is the campaign behind the decision.
Request_id groups the ads served by one /ads response.
Source is the supply kind behind the decision (a Source* kind).
Creative_id is the served creative/asset id.
Location_id is the place the device is located in (offline attribution).
Device_id is the player/screen that rendered the ad (offline attribution).
Flight_revision is the flight resource revision id at decision time.
Error_code is the VAST error code the player puts in place of the [ERRORCODE] macro. Sent with ce=error only.
Example generated
{ "fires": [ { "asid": "example", "ae": "example", "ce": "example", "sts": "example", "ets": "example", "dvactid": "example", "flight_id": "example", "campaign_id": "example", "request_id": "example", "source": "example", "creative_id": "example", "location_id": "example", "device_id": "example", "flight_revision": "example", "error_code": "example" } ]}Responses
Section titled “Responses”A successful response.
ExposureTrackBatchResponse reports what the server took. HTTP 200 means the batch itself was well-formed. A play fire for an expired or unknown asid is accepted, exactly as on a single Track fire, and then listed in dropped.
object
Accepted is how many fires were handed to the pipeline, the dropped ones included.
Rejected lists the malformed entries, the ones a single Track fire would also refuse: a missing asid, a missing ets (not on an error), an unparseable ets, or an unrecognized event marker. They will never succeed, so log and drop them; retrying one only repeats the rejection. Everything not listed here is counted in accepted.
RejectedFire names one entry the server did not record, and why.
object
Index is the entry’s position in the request’s fires.
Reason is human-readable, for the player’s log. Do not branch on it: the wording is not part of the contract.
Dropped lists the accepted fires that were not recorded because their asid is expired or unknown. A resend is dropped again, so log and drop them with the rest of the batch. Error fires are never listed: they count either way.
RejectedFire names one entry the server did not record, and why.
object
Index is the entry’s position in the request’s fires.
Reason is human-readable, for the player’s log. Do not branch on it: the wording is not part of the contract.
Example generated
{ "accepted": 1, "rejected": [ { "index": 1, "reason": "example" } ], "dropped": [ { "index": 1, "reason": "example" } ]}