# Journey of an Ad Request: The Hidden Engineering

DevFeed: [Journey of an Ad Request: The Hidden Engineering](<https://devfeed.tech/articles/journey-of-an-ad-request-the-hidden-engineering-77967.md>)

Original publisher: [Read original article](<https://blog.hotstar.com/journey-of-an-ad-request-the-hidden-engineering-e7b7f9921e46?source=rss----dbc3fcbc7f07---4>)

Author: Ayush Kumar

Published: 2026-07-20T10:22:24Z

Content type: article

Language: en

Sources: [JioHotstar](<https://devfeed.tech/sources/jiohotstar.md>)

Topics: [streaming data analytics](<https://devfeed.tech/topics/streaming-data-analytics.md>), [Electrical engineering and computer science (EECS)](<https://devfeed.tech/topics/electrical-engineering-and-computer-science-eecs.md>)

Tags: [ads](<https://devfeed.tech/tags/ads.md>), [adtech](<https://devfeed.tech/tags/adtech.md>), [advertising](<https://devfeed.tech/tags/advertising.md>), [auction](<https://devfeed.tech/tags/auction.md>), [bidding](<https://devfeed.tech/tags/bidding.md>), [client](<https://devfeed.tech/tags/client.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [content](<https://devfeed.tech/tags/content.md>), [cpc](<https://devfeed.tech/tags/cpc.md>), [cue](<https://devfeed.tech/tags/cue.md>), [demand](<https://devfeed.tech/tags/demand.md>), [display](<https://devfeed.tech/tags/display.md>), [engine](<https://devfeed.tech/tags/engine.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [event](<https://devfeed.tech/tags/event.md>), [formats](<https://devfeed.tech/tags/formats.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [handshake](<https://devfeed.tech/tags/handshake.md>), [live](<https://devfeed.tech/tags/live.md>), [movie](<https://devfeed.tech/tags/movie.md>)

## AI overview

JioHotstar describes ad selection as a sub-100-millisecond process that filters candidates by user, device, content, location and advertiser constraints, checks frequency caps, paces delivery with PID or SHALE algorithms, then fills an ad pod through priority tiers. Direct deals return a VAST response immediately; programmatic ads depend on third-party SSP auctions and their uncertain fill rates. The article contrasts SSAI, which stitches ads into streams and may personalize by cohort, with CSAI, which uses advance cue markers, and SGAI, where the server guides player-side insertion for one-to-one personalization without advance markers. Tracking pipelines record delivery events, while click-through and view-through attribution credit conversions after clicks or ad exposure, respectively.

## Source excerpt

Advertising is a key source of revenue in most businesses. It certainly forms a key pillar for JioHotstar. There is so much technology hidden under the surface. In this blog, we will cover some of the complexity that gets unlocked when we render an ad on our content. Every 30-second ad break is a high-stakes performance involving millions of calculations, real-time bidding, and surgical precision. When you open JioHotstar to watch a live sports event or simply a movie, you see a Fence* ad (static display) or a Preroll* or a Midroll* Ad (video). What you don't see is the "Ad Decision" engine firing at millisecond speeds to decide: Why this ad? Why now? And why you? Speak Like an Adtech Pro Getting your foot inside the door, we need to understand some jargon! CPM (Cost Per Mille): The cost an advertiser pays for every 1,000 impressions. CPC -- Cost per Click SSAI (Server-Side Ad Insertion): Ads are "stitched" into the video stream on the server. At JioHotstar scale, this often happens at a Cohort level where we are grouping similar users to a balanced personalization of Ads. CSAI (Client Side Ad Insertion): The frontend client app(player) interrupts the video stream based on cue markers to show an ad. These cue markers are known well in advance when the user plays any content. SGAI (Server-Guided Ad Insertion): The server "guides" the player on what to do, but the player performs the final insertion. This allows for 1:1 personalization at a live event scale where we do not have the cue markers in advance. Programmatic vs. Direct: Direct is a handshake deal (e.g., "I want 1M views on an Ad"). Programmatic is an automated auction where we ask a 3rd-party SSP (Supply Side Platform) for an ad in real-time. Some common Ad Formats on JioHotstar Preroll Ad: The video ad you see before the actual content video starts. Midroll Ad: The video ad you see while in between the content. Fence Ad: The static display ad you see below the player on the app. The Demand Puzzle Imagine you