Proposal: TMP as Core Prebid Infrastructure
Problem
Prebid has 61 RTD (Real-Time Data) modules. Each one follows the same pattern: fetch external data, enrich bid requests and/or set ad server targeting. Each vendor ships its own module with its own API format, configuration, and maintenance burden.What RTD modules actually do
RTD modules hook into the auction viagetBidRequestData (modify bid requests
to bidders) and getTargetingData (set ad server key-values). They fall into
five categories:
| Category | Count | What they do | Examples |
|---|---|---|---|
| Contextual/content | 13 | Classify page content, return topics/keywords/safety scores | IAS, Browsi, DG Keywords, Qortex, Relevad |
| Audience/identity | 18 | Append user segments, cohorts, or identity data to bid requests | Permutive, Sirdata, Experian, LiveIntent, 1plusX, BlueConic |
| Brand safety | 8 | Monitor or verify ad/creative safety | Confiant, GeoEdge, Clean.io, Human Security |
| Bid enrichment | 7 | Modify bid structure, floors, or filtering | PubXai (floors), Greenbids (bid shaping), Hadron |
| Other | 15 | Device detection, video context, timeout control, measurement | 51Degrees, WURFL, JW Player, Chrome AI Topics |
What they send
Most RTD modules send some combination of: full page URL, referrer, viewport dimensions, ad unit structure (bidders, sizes, params), existing user eIDs, and consent strings. Many send the complete OpenRTB BidRequest (2-10KB). The vendor API returns data that gets injected into:ortb2.user.data— user segments sent to all biddersortb2.site.ext— site-level extensionsortb2Imp.ext— per-impression extensions- Per-bidder
ortb2Fragments— bidder-specific targeting - Ad server targeting — GAM key-values
The problems
- 61 modules, same pattern. Each is a separate integration with its own configuration, testing, and Prebid PR cycle. New vendors require new modules.
- Large payloads. Sending the full BidRequest (2-10KB) when most modules only need page context and ad unit codes.
- No privacy separation. User identity and page context travel in the same request. Privacy depends on field-level masking — one missed field leaks data.
- No standard protocol. Vendors define their own request/response formats. Switching vendors means rewriting the integration.
What TMP can replace
Of the 61 modules, approximately 38 (contextual + audience + brand safety + bid enrichment) follow the “fetch data, enrich request” pattern that TMP standardizes. Specifically:| TMP operation | Replaces | How |
|---|---|---|
| Context Match | Contextual modules (IAS scores, Browsi predictions, keyword extraction, content classification) | Page context in, targeting signals out. Same data, standard format. |
| Identity Match | Audience modules (Permutive cohorts, Sirdata segments, Experian RTID, LiveIntent segments) | Opaque user token in, per-package eligibility out. Segments flow as signals. |
| Both | Hybrid modules (Sirdata, 1plusX, Optable) that do contextual + audience enrichment | Two operations, structurally separated. |
Proposal
Make TMP (Trusted Match Protocol) a core Prebid capability — configured viapbjs.setConfig() in Prebid.js and via YAML in Prebid Server. Publishers
register TMP providers the same way they register bidder adapters: declare them,
configure endpoints, done.
TMP is an open protocol (part of AdCP) that standardizes what RTD modules do
today. It defines two operations:
- Context Match: page context in, offers + targeting signals out. No user data.
- Identity Match: opaque user token in, per-package eligibility out. No page data.
What changes in Prebid.js
Configuration
pbjs.que.push. Just config.
Per-ad-unit configuration
What Prebid.js does internally
- On auction init: For each ad unit with
tmpconfig, callbuildContextMatchRequest()from@adcp/client/tmpand send to the router. - On context match response: Store offers and signals per ad unit.
- After temporal delay (randomized): Call
buildIdentityMatchRequest()with the user’s token (from existing identity module) and ALL active package IDs. Send to the router. - On identity match response: Call
joinResults()to intersect offers with eligibility. CalltoTargetingKVs()to flatten to key-values. - Set targeting: Apply key-values to the ad unit before bid requests go out.
GAM line items match on
adcp_pkgandadcp_seg. Signals also flow to bidders viaortb2.site.extandortb2.user.data— the same injection points RTD modules use today. Bidders see enriched bid requests without needing to know TMP exists.
@adcp/client/tmp package handles steps 1, 3, and 4 as pure functions. Prebid
handles the HTTP calls, timing, and ad unit targeting — exactly what Prebid is
good at.
Dependency: @adcp/client/tmp
- Zero dependencies, under 3KB gzipped
- Tree-shakeable — only the functions Prebid uses get bundled
- Types + pure functions — no network calls, no side effects
- Prebid already supports npm dependencies for core modules
What changes in Prebid Server
YAML configuration
What Prebid Server does internally
Usesadcp-go/tmp/client for:
- Fan-out to configured providers in parallel over HTTP/2
- Per-provider timeouts with graceful degradation
- Response merging (offers concatenated, signals merged, eligibility conservative-merged)
- Optional Ed25519 request signing
Dependency: adcp-go/tmp
- Standard Go module, no CGO
- HTTP/2 client with connection pooling (stdlib
net/http) - Ed25519 signing (stdlib
crypto/ed25519) - No external dependencies beyond Go stdlib
Migration from Scope3 RTD module
Scope3 is the first TMP provider. Migration for publishers currently using the Scope3 RTD module:Step 1: Scope3 exposes TMP endpoint
Scope3 adds a TMP-compatible endpoint alongside their existing RTD API. The endpoint acceptsContextMatchRequest and returns ContextMatchResponse.
Scope3’s existing contextual targeting, content classification, and enrichment
signals map directly to TMP offers and signals.
Step 2: Publisher switches config
Before (Scope3 RTD module):Step 3: Deprecate Scope3 RTD module
Once publishers have migrated, the vendor-specific module can be deprecated. Other vendors (DoubleVerify, IAS, etc.) can expose TMP endpoints and join the same config — no new Prebid modules needed.Benefits for Prebid
Fewer modules to maintain
One TMP adapter in Prebid core replaces up to 38 vendor RTD modules (the contextual, audience, brand safety, and bid enrichment categories). Each vendor becomes a provider endpoint in config. New vendors don’t require new Prebid modules, PRs, or releases.Smaller payloads
| RTD module (today) | TMP | |
|---|---|---|
| Request size | 2-10KB (full BidRequest) | 200-600 bytes |
| What’s sent | Everything OpenRTB has | Only page context |
| User data in request | Yes (masked) | No (structural separation) |
Privacy by design
RTD modules send user identity and page context in the same request. Privacy depends on field-level masking — one missed field leaks data. TMP separates context and identity into different requests on different code paths. The context path never has access to identity data. This is structural, not policy-based. TEE attestation can make it independently verifiable.Open provider ecosystem
Any company can become a TMP provider by exposing a standard HTTP/2 endpoint. No Prebid module PR needed. No vendor-specific configuration format. Publishers add providers in config the same way they add bidder adapters.Aligns with Prebid’s direction
Prebid already standardized demand (bidder adapters) and identity (userId modules). TMP standardizes the remaining piece: real-time contextual and identity-based enrichment. The pattern is the same: define a protocol, let vendors implement it, publishers configure endpoints.Reference adapter: Prebid.js
This is a starting point for the Prebid team to adapt to Prebid.js internals. It uses@adcp/client/tmp for data transformation and Prebid’s hooks for
lifecycle integration.
Reference adapter: Prebid Server (Go)
Timeline
- SDK development — Build
@adcp/client/tmpandadcp-go/tmpagainst the TMP schemas shipping in AdCP 3.0. - Reference adapters — Working Prebid.js and Prebid Server adapters that the Prebid team can review and adapt.
- Prebid proposal submission — Submit to Prebid.org with working code, performance benchmarks (payload size, latency), and Scope3 migration plan.
- Scope3 TMP endpoint — Scope3 ships TMP-compatible endpoint.
- Publisher pilot — One publisher runs TMP via Prebid alongside existing Scope3 RTD module, A/B comparison.
- Prebid core merge — Prebid team adapts reference adapters to their codebase standards and merges.