📢

Media & Entertainment

Advertising Technology

Programmatic advertising, demand-side and supply-side platforms, real-time bidding, ad serving, and audience targeting. From InMobi and mFilterIt to Google Ads, Meta Ads, and The Trade Desk.

₹50,000Cr+

India Digital Ad Market

<100ms

RTB Auction Speed

InMobi

India's AdTech Unicorn

$500B+

Global Digital Ad Spend

Understanding Advertising Technology— A Developer's Domain Guide

Advertising Technology (AdTech) is the ecosystem of platforms and tools that automate the buying, selling, and delivery of digital advertisements. When you see an ad on a website or app, a complex real-time auction happened in under 100 milliseconds — a Supply-Side Platform (SSP) offered the ad space, multiple Demand-Side Platforms (DSPs) bid on behalf of advertisers, and the winning ad was rendered. India is a major AdTech hub — InMobi (India's first adtech unicorn, $1B+ valuation) is a global mobile advertising leader, mFilterIt fights ad fraud, and India's digital ad market exceeds ₹50,000 Crore. Understanding AdTech teaches you real-time bidding (millions of auctions per second), ML-driven audience targeting, fraud detection, and high-throughput distributed systems.

Why Advertising Technology Domain Knowledge Matters for Engineers

  • 1InMobi — India's first adtech unicorn, global mobile advertising platform
  • 2India's digital ad market is ₹50,000Cr+ — growing at 25%+ CAGR
  • 3Real-time bidding processes millions of auctions per second — extreme scale engineering
  • 4ML-powered audience targeting and bid optimisation are core adtech skills
  • 5Ad fraud detection (mFilterIt, DoubleVerify) is a growing ₹5,000Cr+ problem
  • 6Privacy changes (cookie deprecation, ATT) are reshaping the industry — new skills needed

How Advertising Technology Organisations Actually Operate

Systems & Architecture — An Overview

Enterprise Advertising Technology platforms are composed of a set of core systems, data platforms, and external integrations. For a detailed, interactive breakdown of the core systems and the step-by-step business flows, see the Core Systems and Business Flows sections below.

The remainder of this section presents a high-level architecture diagram to visualise how channels, API gateway, backend services, data layers and external partners fit together. Use the detailed sections below for concrete system names, API examples, and the full end-to-end walkthroughs.

Technology Architecture — How Advertising Technology Platforms Are Built

Modern Advertising Technologyplatforms follow a layered microservices architecture. The diagram below shows how a typical enterprise system in this domain is structured — from the client layer through the API gateway, backend services, data stores, and external integrations. This is the kind of architecture you'll encounter on real projects, whether you're building greenfield systems or modernising legacy platforms.

Advertising Technology — High-Level System ArchitectureClient & Channel LayerWeb ApplicationMobile App (iOS/Android)Admin / Back-OfficePartner / B2B PortalThird-Party APIsBatch / Scheduled JobsAPI Gateway & Security LayerAuthentication · Rate Limiting · Routing · API Versioning · WAFCore Domain Microservices🛒 Demand-Side Platfo…Real-time bidding — evalua…Audience targeting — demog…POST /api/v1/campaigns📦 Supply-Side Platfo…Inventory management — def…Floor pricing — minimum bi…POST /api/v1/inventory/ad-u… Ad Exchange & RTBReal-time bidding (RTB) — …OpenRTB protocol — standar…POST /openrtb/v2.6/auction🎯 Audience Data & Ta…Data collection — first-pa…Audience segmentation — gr…POST /api/v1/audiences/segm…🛡️ Ad Fraud Detection…Bot detection — identify n…Click fraud detection — de…POST /api/v1/verify/impress…Data & Event Streaming LayerApache CassandraRedisEvent Bus (Kafka)Document Store (S3)Analytics / BIExternal Integrations & PartnersAd exchanges (re…DMP (audience da…Creative managem…Attribution (con…Analytics (campa…DSPs (send bid r…Cloud Infrastructure: AWS / GCP · Apache Kafka · Apache Spark / Flink· Container Orchestration · CI/CD Pipeline · Monitoring & ObservabilityCross-Cutting: Authentication (OAuth2/JWT) · Audit Logging · Encryption (TLS/AES) · Regulatory Compliance↑ Requests flow top-down · Events propagate via message bus · Data persisted in domain-specific stores ↓

End-to-End Workflows

Detailed, step-by-step business flow walkthroughs are available in the Business Flows section below. Use those interactive flow breakouts for exact API calls, system responsibilities, and failure handling patterns.

Industry Players & Real Applications

🇮🇳 Indian Companies

InMobi

Mobile Advertising Platform

Java, Spark, ML models, custom DSP/exchange

India's first adtech unicorn — 1.6B devices, in-app advertising, Glance lock screen

mFilterIt

Ad Fraud Detection

Python, ML, real-time analytics

India-built ad fraud detection — protects brands from fake clicks, bots, invalid traffic

Affle

Mobile Marketing Platform

ML, DMP, programmatic

Listed Indian adtech — consumer intelligence platform, mobile-first performance marketing

VDO.AI

Video Advertising

Video ad serving, programmatic, ML

India-built video advertising platform — publishers monetise with AI-optimised video ads

🌍 Global Companies

Google Ads (DV360)

USA

DSP + Ad Exchange + SSP

C++, Java, TensorFlow, Bigtable, Spanner

Largest digital ad platform — Search, Display, YouTube, DV360 (programmatic)

Meta Ads

USA

Social Advertising Platform

Hack, PyTorch, custom ML infra

Facebook + Instagram ads — deep user data, advanced targeting, $130B+ annual revenue

The Trade Desk

USA

Independent DSP

C#, .NET, cloud, ML bidding

Largest independent DSP — $2B+ revenue, Unified ID 2.0 for post-cookie identity

Criteo

France

Retargeting & Commerce Media

Java, C++, ML, real-time bidding engine

Retargeting leader — shows ads for products you viewed, commerce media network

🛠️ Enterprise Platform Vendors

Google Ad Manager

Ad Server

Publisher ad server — manages direct and programmatic ad inventory for publishers

Prebid.js

Header Bidding

Open-source header bidding wrapper — allows publishers to run multiple SSP auctions simultaneously

DoubleVerify / IAS

Ad Verification

Ad verification — viewability, brand safety, fraud detection, and measurement

LiveRamp / Unified ID 2.0

Identity Resolution

Identity solutions for post-cookie world — privacy-safe audience matching

Core Systems

These are the foundational systems that power Advertising Technology operations. Understanding these systems — what they do, how they integrate, and their APIs — is essential for anyone working in this domain.

Business Flows

Key Business Flows Every Developer Should Know.Business flows are where domain knowledge directly impacts code quality. Each flow represents a real business process that your code must correctly implement — including all the edge cases, failure modes, and regulatory requirements that aren't obvious from the happy path.

The detailed step-by-step breakdown of each flow — including the exact API calls, data entities, system handoffs, and failure handling — is covered below. Study these carefully. The difference between a developer who “knows the code” and one who “knows the domain” is exactly this: the domain-knowledgeable developer reads a flow and immediately spots the missing error handling, the missing audit log, the missing regulatory check.

Technology Stack

Real Industry Technology Stack — What Advertising Technology Teams Actually Use. Every technology choice in Advertising Technologyis driven by specific requirements — reliability, compliance, performance, or integration capabilities. Here's what you'll encounter on real projects and, more importantly, why these technologies were chosen.

The pattern across Advertising Technology is consistent: battle-tested backend frameworks for business logic, relational databases for transactional correctness, message brokers for event-driven workflows, and cloud platforms for infrastructure. Modern Advertising Technologyplatforms increasingly adopt containerisation (Docker, Kubernetes), CI/CD pipelines, and observability tools — the same DevOps practices you'd find at any modern tech company, just with stricter compliance requirements.

⚙️ backend

Java / C++

Bidding engines — low-latency, high-throughput bid evaluation (<10ms per bid)

Go

Ad serving, real-time event processing, high-concurrency auction services

Python

ML models for bid optimisation, audience segmentation, fraud detection

Node.js

Ad tag serving, creative rendering, publisher-side tools

🖥️ frontend

JavaScript (Prebid.js)

Client-side header bidding wrapper — runs in publisher's browser

React / Angular

Campaign management dashboards, reporting UIs, self-serve ad platforms

HTML5 / CSS3

Ad creative rendering — responsive banners, rich media, interactive ads

🗄️ database

Apache Cassandra

High-write event logging — billions of impression/click events per day

Redis

Real-time bidding cache — user segments, frequency caps, budget counters

ClickHouse / Druid

OLAP analytics — fast aggregation queries on billions of ad events

PostgreSQL

Campaign management, advertiser accounts, billing and invoicing

☁️ cloud

AWS / GCP

Cloud hosting for ad platform — auto-scaling for traffic spikes

Apache Kafka

Event streaming — bid requests, impressions, clicks flowing to analytics pipeline

Apache Spark / Flink

Real-time and batch processing for ML features, fraud detection, reporting

Kubernetes

Container orchestration — scale bidding servers based on QPS

Interview Questions

Q1.Explain how a real-time bidding (RTB) auction works from ad request to ad display.

1) User visits a webpage with an ad slot. 2) Publisher's ad server or SSP creates a bid request containing: user info (anonymised ID, geo, device), page context (URL, category), ad slot details (size, format). 3) Bid request sent to ad exchange. Exchange broadcasts to connected DSPs (10-50+). 4) Each DSP has ~80ms to: look up user in their audience database, match against active campaigns, predict click/conversion probability using ML, calculate optimal bid price. 5) DSPs return bid responses with: bid price, creative (ad), and advertiser ID. Some DSPs no-bid if no matching campaign. 6) Exchange runs auction: In first-price auction (standard now), highest bidder wins and pays their bid. 7) Winning creative URL returned to browser. Ad rendered in the slot. 8) Impression pixel fires — tracked for billing, viewability, and fraud verification. Total time: ~85-100ms. At scale: Google processes 10M+ auctions per second.

Q2.What are the differences between first-price and second-price auctions in adtech?

Second-price (historical): Winner pays $0.01 more than the second-highest bid. Example: Bids are $5, $3, $2. Winner pays $3.01. Advantage: Bidders bid their true value (truthful bidding). Disadvantage: Revenue unpredictable for sellers. Google used this until 2019. First-price (current standard): Winner pays exactly what they bid. Example: Bids are $5, $3, $2. Winner pays $5.00. Challenge: Bidders have incentive to bid lower than their true value (bid shading). Solution: DSPs use bid-shading algorithms — ML predicts the minimum bid needed to win, avoiding overpaying. Why the shift: Header bidding meant publishers ran multiple auctions simultaneously. In a mix of first and second-price auctions, arbitrage was possible. First-price is simpler and more transparent. Impact: DSPs invest heavily in bid-shading ML models. Google's shift to first-price in 2019 was a major industry change.

Q3.How does audience targeting work and how is it changing with cookie deprecation?

Traditional targeting (cookie-based): Third-party cookies track users across websites. User visits a shoe site → cookie dropped → later sees shoe ads on news site. Data Management Platforms (DMPs) aggregate cookie data to build audience segments. How it's changing: 1) Chrome deprecating third-party cookies (Privacy Sandbox). Safari/Firefox already blocked. 2) Apple ATT (App Tracking Transparency) — 80%+ of iOS users opt out of tracking. New approaches: 1) First-party data: Advertisers use their own customer data (email, purchase history). Most valuable. 2) Contextual targeting: Target based on page content, not user data. 'Show car ads on car review articles.' ML analyses page text in real-time. 3) Unified ID 2.0: Opt-in email-based identity system. Encrypted, privacy-safe alternative to cookies. The Trade Desk leads this. 4) Google Topics API: Browser determines user interests from browsing history, shares broad topics with advertisers. 5) Data clean rooms: Advertisers and publishers match data in secure environments without sharing raw data. Impact on India: Less reliance on cookies (mobile-first market uses device IDs more), but ATT affects iOS targeting significantly.

Q4.How does ad fraud work and how is it detected?

Types of ad fraud: 1) Bot traffic: Automated scripts that load pages and 'view' ads. Cost advertisers billions. Sophisticated bots mimic human behaviour — mouse movements, scroll patterns. 2) Click farms: Rooms full of people or devices repeatedly clicking ads. Common in mobile app install fraud. 3) Domain spoofing: Fraudulent site claims to be a premium publisher (e.g., pretending to be Times of India). Ads bought on premium domains actually shown on low-quality sites. 4) Ad stacking: Multiple ads layered on top of each other. Only top ad visible, but all report 'impressions.' 5) Attribution fraud: Fake installs/conversions reported to steal credit for organic installs. Detection methods: 1) Browser fingerprinting — bots have detectable anomalies in JavaScript execution. 2) Behavioural analysis — ML detects non-human patterns (too-perfect click timing, no scroll). 3) ads.txt / sellers.json — publisher lists authorised sellers, preventing domain spoofing. 4) IP analysis — data centre IPs, VPN detection, geo inconsistency. 5) Device signals — emulator detection, suspicious device IDs. mFilterIt's approach: Real-time analysis of every impression/click with 50+ fraud signals. Blocks invalid traffic before advertiser is charged.

Q5.What is header bidding and why did it disrupt the ad industry?

Before header bidding (waterfall): Publisher's ad server called demand sources sequentially — first Google, then Demand Source B, then C. If Google bid ₹20, Source B never got a chance even if they'd bid ₹30. Unfair and suboptimal. Header bidding: All demand sources bid simultaneously in a client-side JavaScript auction (Prebid.js). Every impression gets competitive bids from all partners at once. Impact: 1) Revenue increase: Publishers saw 20-40% revenue uplift because competition increased. 2) Fair auction: All demand sources compete equally — no preferential ordering. 3) Transparency: Publishers see all bids from all sources. Evolution: Client-side header bidding (Prebid.js in browser) → Server-side header bidding (server runs auction to reduce latency) → Google's Open Bidding (server-to-server alternative). Current best practice: Hybrid approach — Prebid.js for key partners + server-side for additional demand. Google Ad Manager unified auction now incorporates header bids. This is how publishers maximise fill rate and CPM.

Glossary & Key Terms

RTB

Real-Time Bidding — automated auction for ad impressions happening in <100ms

DSP

Demand-Side Platform — tool for advertisers to buy ad impressions programmatically

SSP

Supply-Side Platform — tool for publishers to sell ad inventory programmatically

DMP

Data Management Platform — collects and segments audience data for targeting

CPM

Cost Per Mille (Thousand) — price per 1000 ad impressions

CPC

Cost Per Click — advertiser pays only when user clicks the ad

CPA

Cost Per Acquisition — advertiser pays only when a conversion (purchase, signup) occurs

CTR

Click-Through Rate — percentage of impressions that result in clicks

eCPM

Effective CPM — normalised revenue metric regardless of pricing model

ROAS

Return on Ad Spend — revenue generated per rupee spent on advertising

Programmatic

Automated buying/selling of ads using technology instead of manual IO-based deals

Header Bidding

Simultaneous auction across multiple demand sources before the ad server — via Prebid.js

IVT

Invalid Traffic — fraudulent or non-human ad traffic (bots, click farms)

Viewability

Whether an ad was actually visible to the user — industry standard: 50% pixels for 1+ second

Retargeting

Showing ads to users who previously visited an advertiser's website or app

ATT

App Tracking Transparency — Apple's iOS feature letting users opt out of cross-app tracking