OpenWeb + AdCP: Using Publisher Engagement Data as Context for Agent Commerce

Focused companion to the Prebid→AdCP guide: how publishers feed OpenWeb engagement data as a context signal into AdCP scoring — anonymized, additive, without building an identity graph. Architecture diagram and production TypeScript code included.

This is a focused companion to the Prebid→AdCP migration guide, addressing a specific question that comes up in every third publisher call: "We run OpenWeb for engagement and Prebid for display. Does the agent-commerce layer replace either? How do they fit together?" Short answer: neither. OpenWeb handles user-to-user and user-to-publisher engagement; Prebid handles header bidding for display inventory; AdCP on MCP handles agent-to-publisher queries. Three different traffic surfaces, three different data models, three different monetization curves. They coexist. The valuable integration isn't replacement — it's using OpenWeb's first-party engagement signal as contextual fuel for AdCP scoring, without ever turning it into an ad-tech identity graph. The three surfaces, clarified Surface What it does Monetization OpenWeb Comments, live conversations, reactions Engagement → retention → indirect ad revenue + direct ad surface Prebid.js Header-bidding auction for display slots Direct CPM revenue AdCP on MCP Tool-based discovery + transaction from AI agents Publisher keeps 90%; CPA, CPM, enriched snippet, rev-share These surfaces do not compete for the same user attention. Three revenue events, one visitor, zero conflict. Why OpenWeb data matters for AdCP AdCP scoring weights five factors: score = 0.3·bid + 0.3·similarity + 0.2·quality + 0.2·context The context term (20% weight) is where OpenWeb data is uniquely valuable. OpenWeb generates: topic clusters the audience actually engages with; sentiment signals per content piece; dwell/return patterns; real engagement depth — not just page views. In ad-tech, this data typically feeds first-party advertiser targeting. In AdCP, the same data can be exposed as anonymized contextual signals that improve how agents match queries to your content. You get better agent-commerce attribution without building an identity graph. The architecture pattern Data flow for publishers running both stacks: CMS/Content feeds into OpenWeb SDK (engagement events) OpenWeb Aggregate API emits anonymized, aggregated data Context Builder (server-side, publisher infrastructure) transforms to AdCP format MCP Server consumes context as metadata on tool calls Agent receives scored response with context-enriched matches Key points: OpenWeb data is aggregated and anonymized before flowing into AdCP context. Never per-user. Context Builder is a server-side component — your code, your control. MCP server consumes context as metadata on tool calls, not as a separate data surface. Concrete code example // lib/adcp/context-builder.ts import { cacheLife, cacheTag } from "next/cache"; export interface AdcpContext { topic_clusters: string[]; engagement_density: number; sentiment_score: number; recency_signal: number; publisher_slug: string; } export async function buildContextForArticle(slug: string): Promise<AdcpContext> { "use cache"; cacheLife("hours"); cacheTag(`openweb:${slug}`); const windows …

Author
Holger von Ellerts
Published
2026-04-17
Topics
Ad Tech, Programmatic, Enrichment, Privacy