Skip to content

Vanegraph RTD Provider: initial release - #16189

Open
Syntarix wants to merge 3 commits into
prebid:masterfrom
Syntarix:vanegraph-rtd-provider-agent
Open

Syntarix wants to merge 3 commits into
prebid:masterfrom
Syntarix:vanegraph-rtd-provider-agent

Conversation

@Syntarix

Copy link
Copy Markdown

Type of change

  • Feature

  • Does this change affect user-facing APIs or examples documented on http://prebid.org?

Description of change

New Real-Time Data submodule: Vanegraph (vanegraphRtdProvider), a contextual provider that uses no personal data, sets no cookies and uses no storage.

For the current page it merges into ortb2Fragments.global:

  • site.content.cat with cattax: 9 (IAB Content Taxonomy 3.1)
  • site.content.data segments with segtax 9 and 6 (CT 3.1 and CT 2.2), plus vendor segments for the brand-safety tier, reader intent and the publisher's own segments
  • optionally, Google Ad Manager key-values (vg_cat, vg_safety, vg_intent, vg_seg) through googletag.cmd

Pages are classified once and served from cache. An unseen page answers 202 pending, so the auction is never held for a model; the callback always runs, including on errors. The browser uses a publishable key (pk_…) that only works for the publisher's own domains.

Files:

  • modules/vanegraphRtdProvider.ts: the submodule, typed params (VanegraphRtdParams, declared on ProviderConfig), requests through qualifiedAjaxBuilder(MODULE_TYPE_RTD, 'vanegraph')
  • modules/vanegraphRtdProvider.md: module docs
  • modules/.submodules.json: registered under rtdModule
  • test/spec/modules/vanegraphRtdProvider_spec.js: 10 tests

Test parameters:

pbjs.setConfig({
  realTimeData: {
    auctionDelay: 150,
    dataProviders: [{ name: 'vanegraph', waitForIt: true, params: { publishableKey: 'pk_...' } }]
  }
});

Maintainer contact: hello@vanegraph.com

Checks run locally

  • npx gulp lint --nolintfix --files modules/vanegraphRtdProvider.ts,test/spec/modules/vanegraphRtdProvider_spec.js: clean
  • npx gulp ts and npx gulp ts-strict: clean
  • npx gulp test-only --file test/spec/modules/vanegraphRtdProvider_spec.js: 10 passed; coverage of the module 100% lines, 100% functions, 83% branches
  • Full browser suite (vitest run --config test/vitest/vitest.config.mjs): 954 files, 29,087 tests passed
  • npx gulp test-build-logic: 3 timeouts in test/build-logic/noSynchronousLayoutRead_spec.mjs. These also fail on unmodified master on the same Windows machine, so they look environmental and unrelated to this PR.

metadata/modules/*.json is left to gulp update-metadata as the guidelines ask.

Other information

Docs PR: prebid/prebid.github.io#6963
Suggested labels: feature, minor.

🤖 Generated with Claude Code on behalf of @Syntarix

Copilot AI balanced review requested due to automatic review settings November 15, 2026 01:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T01:10:45.851123Z 93ce761 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 93ce761930

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread modules/vanegraphRtdProvider.ts Outdated
/** The page to classify, without its fragment. */
export function pageUrl(params?: Partial<VanegraphRtdParams>): string {
const url = params?.url || getRefererInfo().page || window.location.href;
return String(url).split('#')[0];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Gate sensitive page URLs before transmission

When params.url or the current page has user-specific query values, such as an account identifier or reset token, this strips only the fragment and then sends the remaining URL in the url= query to Vanegraph; it also ignores the RTD consent data passed to the provider. Please redact sensitive query values or require consent before making the third-party request.

AGENTS.md reference: AGENTS.md:L116-L116

Useful? React with 👍 / 👎.

Comment thread modules/vanegraphRtdProvider.ts Outdated
} else {
const data = JSON.parse(response) as VanegraphResponse;
if (data && data.status === 'ready' && data.ortb2) {
mergeDeep(reqBidsConfigObj.ortb2Fragments.global, data.ortb2);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve existing content taxonomies when merging labels

When a publisher already has site.content.cat under a different site.content.cattax, this merge appends Vanegraph's category IDs to the existing array but overwrites the shared taxonomy with 9, so the publisher's existing IDs are interpreted as IAB CT 3.1. Keep Vanegraph's IDs separate or avoid changing cattax when an existing category set uses another taxonomy.

Useful? React with 👍 / 👎.

… without GDPR consent string, keep publisher categories in other taxonomies
@aleksUIX

Copy link
Copy Markdown
Contributor

This comment was written by the AI agent Codex on behalf of @aleksUIX.

After a classified page sets vg_safety=none, an SPA navigation to a page returning 202 pending leaves that value, along with the old vg_cat and vg_seg, in GAM. The pending branch only calls the callback, and setGptTargeting never clears previous keys. Direct-sold line items can therefore match the previous page's safety classification. Can we clear the module-owned keys on page changes and add a ready-page A to pending-page B regression test?

…ore setting new ones, and when the page has no labels (pending, not classified, error, no consent), so SPA navigations never keep the previous page's vg_* targeting; regression tests for ready -> pending, dropped segments, errors and missing consent
@Syntarix

Copy link
Copy Markdown
Author

Thanks — confirmed and fixed in 21fdb00. The module now owns its four GAM keys (vg_cat, vg_safety, vg_intent, vg_seg): it clears them before setting new labels, and clears them alone whenever the page has none (202 pending, not classified, request error, invalid response, or GDPR without a consent string). Added regression tests for ready-page A → pending-page B, dropped segments, errors and missing consent; the publisher's own keys are untouched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants