AdTech
Server-Side Ad Insertion (SSAI) for Streaming, FAST and CTV: A Managed Service, Your Platform's Option, or Your Own Stitcher
What server-side ad insertion changes compared with ads loaded by the player, and what a managed SSAI service, the option built into your video platform or ad server, and your own stitcher each include. It also covers live and on-demand breaks, SCTE-35 markers, server-side and client-side tracking, MRC measurement guidance, invalid traffic, viewer data, published prices, when building pays off and the questions to ask.
By amBrain12 min read
In this article
Server-side ad insertion (SSAI), also called dynamic ad insertion or ad stitching, puts ads into a video stream on a server, so the viewer's device receives the programme and the ads as one stream. A streaming service, a FAST channel (free ad-supported streaming TV) or a broadcaster moving to connected TV (CTV) has three routes to it. It can pay for a managed SSAI service, switch on the SSAI option of the video platform or ad server it already uses, or build its own stitcher. The routes differ in who prepares the ad files, who reports what each viewer saw, who receives the viewer's data and how the bill grows with the audience.
The short answer: if the video platform or ad server you already use offers SSAI and supports your devices and ad servers, start there. Choose a managed stitcher when you work with several ad servers, run large live events or need to reach devices your platform does not support. Build your own only when stitching is part of what you sell, or when per-insertion fees at your volume cost more than a team. On every route, agree before launch which system sends the tracking beacons. Pass each device's IP address and user agent to your ad server and to your buyers' measurement vendors.
What does server-side ad insertion do?
A video player plays a stream from a manifest, a short text file that lists video segments in order, usually in HLS (HTTP Live Streaming) or MPEG-DASH (Dynamic Adaptive Streaming over HTTP). With SSAI, the player asks a stitching server for the manifest. At each ad break the stitcher asks an ad decision server, usually your ad server, which ads this viewer should see. The answer comes in VAST (Video Ad Serving Template) or VMAP (Digital Video Multiple Ad Playlist), XML formats published by the Interactive Advertising Bureau (IAB). The stitcher then writes the ad segments into a manifest made for that one viewer.
Amazon Web Services (AWS) describes this flow for MediaTailor, its stitching service: the player's request carries “information about the viewer, which is used for ad personalization”, and MediaTailor returns “the fully personalized manifest”. Each ad must first be transcoded, or conditioned: converted into the bitrates and resolutions of the programme. MediaTailor skips an ad that is not ready yet. In HLS the stitcher marks each switch between programme and ad with a discontinuity tag. The HLS specification, RFC 8216, says this tag “MUST be present” when the file format, tracks or timestamps change. In DASH an ad break usually becomes its own period, a separate section of the manifest.
How does SSAI compare with ads loaded by the player?
In client-side ad insertion, the player or an SDK (software development kit) on the device calls the ad server, downloads the ad and sends the tracking beacons. Beacons are small web requests that report how much of each ad played. These are the usual reasons for moving that work to a server:
- Ad blockers. AWS says client-side insertion is “susceptible to ad blocking”. Brightcove, a video platform, says SSAI can “Immediately regain 10-30% revenue lost to ad blockers.”
- Buffering. AWS says ads that the player fetches from outside servers lead to “increased rebuffer rates”.
- Devices. The Media Rating Council (MRC), the industry body that accredits ad measurement, notes that certain devices, “such as Smart TVs, may not have the capability for a client-initiated integration”.
Some features are lost. Google's help page on Ad Manager's Dynamic Ad Insertion (DAI) says “VPAID ads aren't supported through Ad Manager DAI because they can't be transcoded”. VPAID is an older format that runs code inside the ad. The page adds that clickable and skippable ads work only with some of its SDKs.
A newer alternative, server-guided ad insertion (SGAI), works differently: the player reads one shared manifest and fetches the ads as separate playlists. AWS says this “improves performance through cacheable manifests”.
What does a managed SSAI service include?
A managed service runs the stitcher for you. Three examples:
- AWS's documentation says MediaTailor accepts ad responses “through VAST 4.3” and VMAP 1.0. It can prefetch ads before live breaks, fills empty ad time in live streams with a slate (a filler video) and sends beacons from the server by default. For FAST channels, its channel assembly creates “linear streaming channels using your existing video on demand (VOD) content”.
- Yospace, an SSAI vendor, says it works with “VAST/2.0/3.0/4.0/4.2 compliant services” and is “currently active with customers using FreeWheel MRM, Google Ad Manager, smartclip, SpringServe, INVIDI, Magnite”, among others. Its optional gateway takes data from your playout automation system to insert SCTE-35 markers, the standard cue messages that mark where a break starts and ends.
- Harmonic's SSAI product page now redirects to MediaKind. TV Tech reported that MediaKind had completed “its merger with Harmonic's video business”. MediaKind's VOS360 page lists SSAI among the platform's integrated parts.
You keep your ad server and its buyers, your player and your content delivery network (CDN). Each service has limits too. MediaTailor waits 3 seconds by default for the ad server. On a time-out it “is unable to fill the ad avail with ads” (an avail is a slot of ad time).
What does the SSAI option in your video platform or ad server cover?
If your video sits on one platform, or your ads run through one ad server, its SSAI option is often the shortest path. Google's DAI is “available to Google Ad Manager 360 publishers and partners with an advanced contract who meet the requirements”. Google says it “supports stitching ad-breaks from Google Ad Manager and third-party ad servers”, and programmatic buyers reach the stream through Google's Ad Exchange. Ads not transcoded in advance are processed on “the first monetizable impression”. In a second mode, DAI Pod Serving, Google builds and conditions the ad pods (the sets of ads for each break), and your own or a third-party stitcher writes the manifest.
Brightcove offers SSAI as an add-on to its Video Cloud platform, switched on through your account manager. Its overview says “SSAI does all the ad requests for all ad breaks of the playback session when the content starts playing”, so ad requests outnumber the ads played when viewers leave early. The Brightcove Player adds client-side beacons, sent from the device, for on-demand video only.
A built-in option fits when nearly all your video and ad sales pass through that platform. Check which devices it supports and whether you can export raw logs.
What do you take on if you build your own stitcher?
A stitcher is several systems, and building one means owning each of them:
- Manifest work: per-viewer HLS and DASH manifests, live and on demand, with correct discontinuities, periods and timestamps on every player you support.
- Ad decision calls: VAST and VMAP parsing, wrappers that point to other ad servers, time limits and fallbacks. MediaTailor, for example, “rejects the VAST response” if the response carries non-standard tracking events.
- Ad conditioning: fetching each new ad, transcoding it into every bitrate and resolution, and tracking which ads are ready.
- Live signals: SCTE-35 markers in the forms your encoder sends, such as EXT-X-CUE-OUT or EXT-X-DATERANGE tags in HLS.
- Tracking: beacons sent from the server or by the player, with logs of both.
- Scale: AWS notes that personalised ads reduce “the ability to cache the manifest file”.
There are middle paths. Google's Pod Serving hands your stitcher ready ad pods, with a warning: “Using this API at scale requires design and implementation of a sophisticated media serving workflow which is outside the scope of this documentation.” For FAST channels, Eyevinn publishes Channel Engine, a “core component library for creating FAST channels”, under the Apache-2.0 open-source licence.
What changes between live streams and on-demand video?
On-demand video has known break positions, often listed in a VMAP response, so ads can be requested in advance. Live breaks come from SCTE-35 markers set by the encoder or playout system, and their length is fixed, so the stitcher must fill exactly that time. MediaTailor “makes ad calls simultaneously at the ad avail start for connected players”. Its prefetch feature spreads those calls before the break: in AWS's example, 500,000 concurrent viewers and a 60-second window give about 8,333 requests per second.
How do tracking and measurement work, and where do they break?
In server-side reporting the stitcher sends the beacons to the ad server and measurement vendors. MediaTailor “fires tracking events based on actual segment requests from the player, not on manifest parsing or pre-loading activities”. In client-side reporting the player sends them, and MediaTailor “doesn't see them and can't report on them on its own”.
The MRC's 2021 guidance on SSAI counts an impression only when the ad is loaded and at least begins to play. It says a stitching server “may send tracking on the player's behalf, but this tracking may be limited and not fully able to satisfy client-initiated measurement requirements.” Counts that miss those requirements “should be segregated in reporting and disclaimed as non-compliant”. AWS says that when players download ad segments before playback, “segment requests constitute valid impressions”. Ask your buyers which count they accept.
TVs add limits. Google says viewability reporting works with its web and mobile SDKs, and that Open Measurement Interface Definition (OMID), the option for other devices, “isn't yet MRC accredited”. The MRC warns that “CTV video content and advertising may be played while corresponding TV sets are off”. For example, a set-top box can keep streaming a FAST channel to a switched-off TV.
What invalid traffic risks come with server-side insertion?
Invalid traffic (IVT) is ad activity that does not come from a real viewer. SSAI blurs the usual signs of IVT, because real ad requests also come from data centres. The MRC writes: “Because SSAI traffic may be seen by measurement vendors as coming from a few IP addresses, it is often times misclassified as IVT (i.e., data center traffic).” Fraudsters use this to hide fake traffic.
White Ops, a bot detection firm, described a scheme called ICEBUCKET on IAB UK's website: servers in data centres requested ads for faked TVs and phones, then reported the ads as shown. It wrote: “In January 2020, 66% of programmatic CTV-related SSAI traffic and 15% of programmatic mobile-related SSAI traffic that White Ops protects was a part of this scheme.”
The MRC notes that “IP addresses may pose a higher risk of spoofing”. If traffic claims to come from a stitcher but cannot be checked for IVT, the MRC says it must be “treated as unknown (not included as valid)”. Have your stitcher pass each device's IP address and user agent to the ad server and in tracking calls, as MediaTailor says it does. Give your supply-side platforms (SSPs) and measurement vendors your stitcher's server addresses.
Who holds the viewer data?
The stitcher sees every session, including the IP address, user agent and targeting parameters your player sends, and forwards much of this to ad servers. Brightcove's sample ad configuration puts the viewer's IP address and a user ID into the ad request. For MediaTailor, AWS says: “You are responsible for maintaining control over your content that is hosted on this infrastructure.”
Put these points into the contract: who is the controller of viewer data and who is the processor, how long logs are kept, whether the vendor may use them in its own products, and how you export them when you leave. If you build, the logs are yours, and you must protect them under each market's privacy law.
What does server-side ad insertion cost?
AWS's MediaTailor pricing page says ad insertion is charged “based on the number of ads inserted into your video streams”. Its examples for the US East (N. Virginia) region use $0.50 per 1,000 live ad insertions and $0.25 per 1,000 on-demand insertions. One insertion is one ad placed in one viewer's stream. AWS says “10 unique ads can be transcoded per thousand ad insertions without incurring additional cost”. The same US East examples price channel assembly at $0.10 per running hour for a basic channel and $0.35 for a standard one. Data delivery is billed separately, and AWS says commitments of “more than 60 million ad insertions per month” qualify for lower prices. At the $0.50 live rate, 100 million live insertions a month work out to $50,000 (our arithmetic, not an AWS figure), before data delivery, extra transcodes, extra log volume or discounts.
Google and Brightcove send you to your account manager, and neither Yospace's SSAI page nor MediaKind's VOS360 page shows a price. Ask each for a quote at your current monthly insertions and at three times that, with transcoding, data delivery and minimum commitments listed separately.
Building swaps fees for salaries and cloud bills: engineers for the stitcher and transcoding, people on call for live events, and the servers and CDN traffic the vendor used to pay for.
When does building your own stitcher pay off?
Building pays off in a few cases:
- Stitching is your product: you run FAST channels for other rights owners, sell ad insertion, or operate an ad server or SSP that must control how breaks are filled.
- Your volume is large and steady enough that per-insertion fees, after discounts, cost more than a team.
- You need rules your vendor does not offer, such as filling one break from several ad servers, or logs that must stay inside your systems.
Building to settle a reporting dispute with a vendor rarely works, because your own system adds one more set of numbers. Start with a managed or built-in stitcher and keep your own log of sessions, ad responses and beacons.
What should you ask an SSAI vendor or a development firm?
- Which ad servers, SSPs, devices and VAST versions do you support in production today?
- Who sends impression and quartile beacons, at what moment, and will our buyers accept that count?
- How do you pass each device's IP address and user agent, and how can buyers verify your traffic?
- What plays when an ad is not yet transcoded or the ad server times out during a live break?
- What is the price per 1,000 insertions at our volume and at three times that, with every extra charge listed?
- Can we export all session, ad response and beacon logs, and how long do you keep them?
- If you build it for us: who owns the code and the logs, and which parts reuse your existing components?
Where does amBrain fit?
amBrain publishes this blog. Two of its service lines are close to this topic. The first reads: “amBrain builds ad servers: targeting, frequency capping and reporting.” The second reads: “amBrain builds event analytics pipelines for ad tech: collection, processing and reporting of impression and click events.” Neither line names a server-side ad insertion product or stitcher.
In its own words, “amBrain has been building software since 2019.” On how it works with clients, it says: “Three formats: full delivery, a dedicated team, or engineers embedded in your team.” Its line on ownership is “The client keeps full ownership of the product and the code, except our reusable components.” Ask for the list of those components by name before you sign.
This article is not a case study and describes no client work. Nothing in it says that amBrain has built, run or integrated a server-side ad insertion system for any client. The quotations come from published pages of the companies named above, the MRC, the HLS specification, IAB UK and TV Tech, read on 25 November 2026. The article claims no relationship between amBrain and any of them, recommends none of their products and gives no amBrain prices or timelines.
It is not legal advice either. Have a lawyer read vendor contracts and data processing terms before viewer data reaches a stitcher or an ad server. If amBrain is on your shortlist, ask it the same questions as any other firm.
Topics
- Server-Side Ad Insertion
- Connected TV
- Build or Buy
- Ad Operations