Guide 03 · VAST on the server

Server-side ad insertion moves the ad call from the player to a server and splices the ads into the stream itself, so a break plays like a broadcast one. This guide walks the stitcher's sequence: where the break times come from, how VAST still runs the sale, and what changes for measurement when the player never sees the ad.

For developersCTVChecked November 2026

In short

Insertion point
The stitcher, not the player
Break timing
VMAP for on demand, SCTE-35 markers for live
Server calls
Flagged with the VAST [SERVERSIDE] macro

Server-side ad insertion (SSAI) moves the ad call from the player to a server. That server, a stitcher, asks an ad server for VAST the way a player would, transcodes each ad to match the content, and splices the result into the stream. The player plays one manifest and never parses a VAST document. Dynamic ad insertion is the general term for the technique; Google Ad Manager's documentation uses DAI, short for dynamic ad insertion, for its own service.

What it is

In client-side insertion the player does the work. It requests a VAST document, resolves wrappers, picks a media file for each ad, plays it, and fires the tracking URLs as the ad progresses. Every one of those steps is a place where a CTV device can stall: a slow network call before the break, a codec the player did not expect, a tracking pixel the player never sends.

In server-side insertion a stitcher stands between the content origin and the player. It requests the ads, converts them into the same encodings as the content, and writes the ad segments into the stream manifest between the content segments. Google describes its own dynamic ad insertion service this way: it stitches video content and ads into a single stream, independent of a web page or app, and removes the ad request and ad response from the client, which reduces the likelihood of client-side errors.

The technique matters most on connected TV. A CTV app is hard to update, its player is shared across every ad it will ever show, and viewers read a stalled break as a broken channel. When the ads arrive already inside the stream, the break looks and plays like the broadcast equivalent.

How a stitcher builds a break

The sequence is the same for a video on demand file and a live channel, with one difference in step one: for on demand content the stitcher knows the whole timeline, for a live channel the breaks arrive as the content plays.

  1. The player asks for a stream session. Google's pod serving workflow starts with a stream request that registers the session; the response carries a session id the stitcher uses for every ad call that follows.
  2. The stitcher requests VAST for each break. One call per break, or one per ad pod inside the break. The stitcher fills the VAST macros, because it is the party making the HTTP request, and passes the device and consent data the player gave it.
  3. The ad server answers with a VAST document. The document holds an ad pod: the ads for the break, in order, with their tracking URLs.
  4. The stitcher transcodes each ad to match the content. Google's documentation has the ads ingested and converted into HLS variants before a stream starts, so segments line up. Creatives that cannot be transcoded, such as VPAID, have no server-side path.
  5. The stitcher writes the ads into the manifest. For VOD, Google returns complete ad pod manifests that the stitcher joins with the content manifest; for live streams the redirect mode hands out segments that point at either content or ad media files.
  6. The player plays one manifest. It loads segments across the boundary between content and ad without a separate request, and reports what it sees as timed metadata.

Where break times come from

For on demand content, the IAB's Video Multiple Ad Playlist (VMAP) carries the schedule. VMAP 1.0.1, released in July 2014, is an XML template a content owner uses to describe the ad breaks inside its video: when each break comes on the timeline, what kinds of ads it accepts, and how many. VMAP defines the structure and VAST fills it; the specification accepts VAST 3.0 responses, and a VMAP response can hold the ads inline or point at each break's ad tag.

<vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">
  <vmap:AdBreak timeOffset="start" breakType="linear" breakId="preroll">
    <vmap:AdSource id="1" allowMultipleAds="true" followRedirects="true">
      <vmap:AdTagURI templateType="vast3">https://adserver.example/vast?slot=preroll</vmap:AdTagURI>
    </vmap:AdSource>
    <vmap:TrackingEvents>
      <vmap:Tracking event="breakStart">https://adserver.example/break-start</vmap:Tracking>
    </vmap:TrackingEvents>
  </vmap:AdBreak>
  <vmap:AdBreak timeOffset="00:10:23.125" breakType="linear" breakId="mid1">
    <vmap:AdSource id="2" allowMultipleAds="true" followRedirects="true">
      <vmap:AdTagURI templateType="vast3">https://adserver.example/vast?slot=mid1</vmap:AdTagURI>
    </vmap:AdSource>
  </vmap:AdBreak>
</vmap:VMAP>

The timeOffset attribute places each break. It reads as a time into the content, a percentage when the duration is unknown, start or end for the edges, or a position number for live content. The breakType attribute says whether the break takes linear, nonlinear or display ads, and a TrackingEvents block carries break-level calls: breakStart, breakEnd and error. The specification gives breaks their own error codes, 900 to 1008, because a break can fail in ways an ad cannot. In a served response the address inside AdTagURI is wrapped in a CDATA block, as the specification requires; the sample leaves the block out for readability.

VMAP elementWhat it says
AdBreakOne break: its timeOffset, its accepted breakType, an optional breakId, and an optional repeatAfter that spaces equal breaks along the timeline.
AdSourceWhere the ads come from: a VAST document inline, a VAST ad tag at another server, or custom data in another template.
allowMultipleAdsWhether the break accepts an ad pod or several ads rather than one.
TrackingEventsBreak-level tracking: breakStart, breakEnd and error, named like VAST events but belonging to VMAP.

A live channel cannot plan its breaks against a fixed timeline, so the broadcast feed signals them inside the stream. SCTE-35, the Digital Program Insertion Cueing Message standard from the Society of Cable Telecommunications Engineers, carries cue messages on a dedicated stream within the transport. The cue commands, splice_insert and time_signal, mark an out point and an in point around the break, each with a presentation timestamp, and segmentation descriptors name what the break is and carry unique program identifiers. The stitcher watches for the cues and requests VAST when one arrives. The same cue messages are processed for adaptive formats such as HLS and DASH. VMAP itself makes no special provision for live streams.

The tracking problem

VAST tracking assumes a player. The document names impression, start, the quartiles, complete and error, and expects a client to fire each URL as its own playback crosses that point. In server-side insertion the player never sees the document, so the calls either move to the stitcher or move to the client as signals rather than URLs. Both sides need to know which happened.

The IAB Tech Lab addressed the reporting side with a set of standard VAST player macros, released in 2018 and assembled for SSAI in its Server-Side Ad Insertion VAST Macro Guidance of November 2020. The rule is that macros are filled by whoever makes the HTTP request, which in SSAI is the stitcher acting for the player. The [SERVERSIDE] macro states who fired:

[SERVERSIDE]What it says
0The client fired the request or tracking call itself. This is the default when the macro is missing.
1A server fired it on behalf of a client, because the client told the server to act for it.
2A server fired it on behalf of another server, an unknown party, or on its own decision, with no signal from a client.

Companion macros carry what a server call would otherwise hide: [DEVICEUA] and [DEVICEIP] for the device the ad reaches, [SERVERUA] for the server making the call, [APPBUNDLE] for the app, [PLAYERSTATE] for muted or fullscreen playback. A macro the server cannot fill honestly is set to -1 for unknown or -2 for known but withheld. A tracking URL before and after the stitcher fills it:

// as the ad server returns it, with VAST player macros in place
https://adserver.example/track?e=start&ss=[SERVERSIDE]&ip=[DEVICEIP]&ua=[DEVICEUA]&state=[PLAYERSTATE]

// after the stitcher fills it: a server call, made on a known device, sound muted
https://adserver.example/track?e=start&ss=1&ip=192.0.2.44&ua=Mozilla%2F5.0%20(%E2%80%A6)&state=muted

Viewability and verification are the other half, because a server call says nothing about what the viewer saw. The Open Measurement SDK answers this: its OMID API, written for mobile app, web video and CTV environments, runs a measurement session on the client. Verification scripts travel in the VAST document in the AdVerifications element added in VAST 4.1, and the specification's server-side injection strategy has the ad server prepend the measurement script into the ad response before it reaches the client, which the OMID API names as its recommended injection solution. The session context carries the pod fields VAST 4.1 introduced: the ad serving id, a transaction id, the pod sequence and the ad count. In pod serving, the player completes the chain itself: Google's documentation has it read timed metadata, ID3 tags that carry an ad event id, and send media verification pings to the ad server as each ad plays. The IAB Tech Lab's own workshop summary on SSAI lists measurement as an open problem: device and environment data still reach some intermediaries and not others, which is the gap the macro guidance works on.

What is lost and what is gained

Server-side insertion trades client capabilities for a stream that behaves. The trade is worth listing in full before choosing it.

Given upReceived
Interactivity. VPAID creatives cannot be transcoded into stream segments, so Google's dynamic ad insertion states plainly that it does not support them; the ad plays as flat video or not at all.One manifest. The player makes no ad request and parses no ad response, which removes the client-side errors those calls produced.
Clicks and companions on devices where no client SDK runs. Google supports clickable and companion behaviour only where its SDK does: HTML5, iOS and Android.A break without a stall. Content segments run into ad segments of the same encoding, so playback holds the line a broadcast viewer expects.
Signals the player would have sent. Consent, identifiers and player state must reach the stitcher instead, and a setup that stitches one stream for a whole channel targets that channel rather than each viewer; session-based stitching restores per-viewer targeting at the cost of a stream per session.Ads that read as content. The manifest no longer separates the two, so a client-side ad blocker has nothing to point at.

What it means here

Vall Media serves CTV breaks from VAST, on both sides of this split: a channel's player calls us directly where the device can do the work, and a stitcher calls us on the player's behalf where it cannot. Either way the sale runs on the same VAST document, and the dashboard reports the impressions, revenue, eCPM and fill rate behind each break. The CTV page for publishers shows what a channel needs, and the VAST format page covers the document the stitcher asks for.

Checklist

  • Put a stitcher where a player cannot do the work: CTV first, then long-form on demand and live channels.
  • Schedule breaks with VMAP where the timeline is known, and with SCTE-35 markers where it is not.
  • Fill the VAST macros at the party that fires the request, and set [SERVERSIDE] honestly: 1 when a client asked, 2 when it did not.
  • Keep the client inside measurement: run the OMID session on the player and let verification scripts travel in the ad response.
  • Plan for the trade: no VPAID, and clicks only where a client SDK can act on them.
  • Handle break failures as their own case: VMAP gives breaks error codes 900 to 1008 because an empty or late break is not an ad error.

Checked against

  • IAB, Video Multiple Ad Playlist (VMAP) 1.0.1, July 2014, for the playlist structure, the timeOffset and breakType attributes, break-level tracking events and the break error codes.
  • IAB Tech Lab, Server-Side Ad Insertion (SSAI) VAST Macro Guidance, version 1.0, November 2020, for macro responsibility, the [SERVERSIDE] values and the recommended device and environment macros.
  • IAB Tech Lab, Open Measurement SDK: OMID API specification, version 1.5, June 2024, for the measurement session, the server-side script injection strategy and the VAST 4.1 context fields.
  • IAB Tech Lab, Solving tech challenges in SSAI, the workshop summary, for the state of measurement and data passing in server-side insertion.
  • Google Ad Manager Help, Learn about Dynamic Ad Insertion, and the Ad Manager dynamic ad insertion documentation for pod serving, for the stitcher workflow, transcoding rules and media verification pings.
  • SCTE 35, Digital Program Insertion Cueing Message, the standard in its legacy splice and time signalling form and its event-based part, released April 2026, for the cue commands, splice points and segmentation descriptors.