Technical Guides

SSAI vs CSAI: Server-Side and Client-Side Ad Insertion Explained

If you monetize a stream with ads, one technical decision shapes what the viewer sees, how much of your inventory gets paid and whether ads work on smart TVs at all: where the ad is inserted. These are the two approaches and when each one makes sense.

SSAI and CSAI: two places to insert an ad

Once you decide to monetize a stream with advertising, a technical detail ends up defining the viewer's experience, your revenue and even which devices can show your ads: where the ad gets inserted. If you are still deciding whether ads are the right model at all, start with how to monetize live streaming.

  • CSAI (client-side ad insertion): the viewer's player requests and shows the ad. The main video pauses, the ad plays from an ad server and then the content resumes.
  • SSAI (server-side ad insertion, also called dynamic ad insertion or ad stitching): a server stitches the ad into the stream before it reaches the viewer. For the player it is one continuous video, with no difference between content and advertising.

It sounds like a minor detail, but it changes how many ads actually get seen, how smooth the experience feels and whether your advertising works on a smart TV.

How CSAI works

In CSAI the heavy lifting happens on the viewer's device. The flow goes like this:

  1. The player loads the main content.
  2. At the defined point (pre-roll, mid-roll or post-roll), the player pauses the content.
  3. The player sends a request to the ad server using the VAST standard.
  4. The ad server answers with the URL of the ad file and the tracking addresses.
  5. The player loads and plays the ad in a separate layer and reports each tracking event.
  6. When the ad ends, the player resumes the original content.

Advantages of CSAI

  • Simple to implement: all you need is a VAST-compatible player and an ad tag.
  • Detailed measurement: the player reports impressions, quartiles, clicks and skips directly, and viewability can be verified with the Open Measurement SDK.
  • Interactive formats are possible: because the logic runs on the device, compatible players can show interactive creatives. VPAID, the old standard for that, has been deprecated by IAB Tech Lab in favor of SIMID for interactivity and OMID for measurement.
  • Low infrastructure cost: there is nothing to stitch on the server.

Drawbacks of CSAI

  • Ad blockers: they can block the requests to the ad server. Measure the impact on your own audience instead of assuming someone else's rate.
  • A visible transition: the jump from content to ad can show a black frame or a spinner for a moment.
  • Limited on connected TVs: many smart TV and streaming device environments handle client-side ad logic poorly, which is why CTV leans toward SSAI.
  • Buffering: on a slow connection the ad can take a while to load, at the worst possible moment.

How SSAI works

In SSAI the work happens before the video reaches the viewer, and the flow is completely different:

  1. The viewer requests the stream from the SSAI service.
  2. The service asks an ad decision server which ads belong to that viewer's session.
  3. It downloads the ad creatives and transcodes them to the same renditions as the content: resolution, bitrate and codec.
  4. It stitches the ad segments into the HLS (or DASH) manifest at the breaks. In live streams, those breaks are usually signaled with SCTE-35 markers.
  5. The viewer receives one continuous stream in which content and ads are technically indistinguishable.

Advantages of SSAI

  • Much harder for ad blockers: the ad arrives inside the same stream as the content. Tracking beacons fired from the device can still be blocked, so calling it immune would be too strong.
  • A smooth experience: no jumps or black frames, and the ad plays within the same adaptive stream.
  • Works on almost any device that plays HLS: smart TVs, consoles, set-top boxes.
  • Per-viewer personalization: each session can get different ads based on location, device or other parameters.
  • Better fill: fewer ad playback failures on the device means fewer lost impressions.

Drawbacks of SSAI

  • More technical complexity: it requires manipulating manifests per session and transcoding ads.
  • Infrastructure cost: that processing, per viewer session, consumes resources.
  • Harder verification: since the player does not see the ad as a separate element, measurement needs server-side beacons or a client SDK aware of the ad breaks.
  • Decision time: querying the ad server and preparing the creative can add delay at the break or at the start.
  • The signal needs markers: someone upstream has to mark the breaks, which becomes a requirement for whoever produces the stream.

SSAI vs CSAI side by side

FeatureCSAISSAI
Ad blockersVulnerableFar more resistant
Viewer experiencePossible jumps or black framesContinuous stream
Connected TV compatibilityLimitedBroad
Interactive formatsPossible with SIMID in compatible playersLimited
Infrastructure costLow (the device does the work)Higher (the server works per session)
PersonalizationThrough cookies or an SDKThrough session parameters
Viewability measurementDirect, with OM SDKNeeds beacons or an aware SDK
Ad break markers in liveNot neededSCTE-35 or equivalent
ImplementationSimpleMedium to complex

In practice, for most operators who monetize on the web and on mobile, CSAI is still the most practical and profitable option. SSAI pays off when your audience is mostly on connected TVs, when ad blockers are eating your revenue, when you distribute FAST channels through third parties or when you need scale for very large audiences.

Which one to choose

Choose CSAI if

  • Your audience watches mainly in web browsers and mobile apps.
  • You want to start quickly with a simple VAST tag.
  • You need interactive formats such as clickable overlays.
  • Your audience is small or medium and your infrastructure budget is limited.

Choose SSAI if

  • Your audience is on smart TVs, Roku, Apple TV or Fire TV.
  • Ad blockers are seriously hurting your revenue.
  • You need a premium experience with no cuts or buffering between content and ads.
  • You run FAST channels distributed on third-party platforms.
  • You handle massive audiences where every point of fill rate matters.

The hybrid model most operators end up with

Many operators use CSAI on the web and in mobile apps, where they control the player and can measure everything, and SSAI for connected TVs and third-party distribution. That way they get the measurement of one and the fill rate of the other. Our guide to FAST channels explains where aggregators fit in that picture.

How to implement VAST ads in your stream

Whether you use CSAI or SSAI, the standard that connects your player (or your ad stitcher) with ad networks is VAST (Video Ad Serving Template). The basic flow for client-side insertion looks like this.

1. Get your VAST tag

Your ad network (Google Ad Manager, FreeWheel, Magnite or any other) gives you a VAST URL. It looks something like this:

https://adserver.example.com/vast?size=640x480&pos=pre&content_id=[ID]

2. Configure it in the player

In your streaming platform's panel, paste the tag in the advertising section and define when it plays: pre-roll before the content starts, mid-roll at defined points during it and post-roll when it ends.

3. The player does the rest

When a viewer loads the video, the player requests the ad from the ad server, plays it at the configured moment and reports the metrics back: impression, completion and clicks.

How much does VAST advertising pay?

Revenue is impressions divided by 1,000, times the CPM, and only filled impressions count. The CPM varies a lot with the vertical (sports and finance usually pay more), the quality of the inventory, whether ads are sold directly or programmatically and the country of the audience. The only reliable numbers are the ones your network reports on your own traffic after a few weeks. We work through the math in AVOD vs SVOD vs TVOD.

Ad insertion with XtreamCast

Player Advance™ inserts VAST pre-roll, mid-roll and post-roll ads with Google IMA, which is client-side insertion. You set your VAST tag from the panel and the player takes care of the rest; the embedding guide shows how to place it on your site.

To be clear about the limits: XtreamCast does not stitch ads on the server and does not insert SCTE-35 markers into the stream. The inventory and the advertisers come from your ad network. If a distribution partner requires SSAI, that partner or a specialized SSAI service handles it, and many of them need SCTE-35 markers in the feed, so confirm the technical requirements before you sign anything.

Two more things that affect ad performance. Viewers on weak connections give up when the stream stalls, and XtreamTranscoder keeps your original quality and adds 720p, 480p and 240p so the player can adapt, as explained in what adaptive bitrate streaming is. And if your ads run on a 24/7 channel, LiveStation handles the playout. Whatever you choose, test your tag on a real stream before you open it to the public.

VAST ads in your own player

Player Advance™ inserts pre-roll, mid-roll and post-roll ads through Google IMA from your own VAST tag. Test your ad network's tag on a real stream before you go public.