Skip to content

Video examples: don't depend on live bidders; remove adpod examples - #6865

Open
patmmccann wants to merge 2 commits into
prebid:masterfrom
patmmccann:agent-video-examples-5248
Open

patmmccann wants to merge 2 commits into
prebid:masterfrom
patmmccann:agent-video-examples-5248

Conversation

@patmmccann

@patmmccann patmmccann commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #5248.

The video examples relied on the msft test placement bidding, which it often doesn't. On production today, with Prebid.js loaded, the outstream examples get no bid at all. Bids are now simulated with the debugging module, as the issue suggests. The shared setup lives in Jekyll includes rather than a separate JS file, following the existing _includes/video/mock-video-bid.html that the instream examples already used.

  • New _includes/video/mock-outstream-bid.html: intercepts every bid as a video bid without vastXml/vastUrl, so the debugging module supplies its demo VAST and outstream renderer. Used by:
    • pb-os-nas (Outstream, No Server),
    • pb-os-nas-renderer (No Server with a publisher-specified renderer; the ad unit's renderer plays the demo VAST),
    • pb-os-dfp (Outstream with Google Ad Manager).
  • examples/video/outstream/basic-ima.html: now includes the existing mock-video-bid.html, since it plays bid.vastXml itself through IMA. Also removes a stray s printed after its Prebid.js include.
  • Ad pod examples removed: the adpod, freewheel and categoryTranslation modules are gone from Prebid.js, so examples/video/long-form/ (both pages and their assets) and _includes/video/pb-lf-fw.html are deleted. Their links are removed from examples/video/index.md and prebid-video/video-long-form.md. That getting-started page itself still documents adpod and may need its own cleanup.
  • The code listings on the pages are unchanged and still show the real-world msft setup; the mock runs only in the page header, as with the existing instream examples.

Verified on the deploy preview (headless Chrome, CMP-gated scripts loaded manually)

  • Outstream No Server, No Server with renderer, basic IMA: a simulated video bid with VAST and renderer, adRenderSucceeded, no page errors.
  • Instream VideoJS and both JW Player pages: the simulated VAST bid, as before.
  • Outstream with GAM: the simulated bid and hb_pb=1.00 targeting are set. Whether GAM serves the outstream creative depends on that network's line items. GPT waits for TCF consent, which I couldn't grant headlessly, so that last step is unverified.
  • Production, same method, for comparison: none of the outstream pages got a bid.

Not changed, separate issue: the Video Module (videojs) example already uses its own intercept, but sends no bid request either here or on production. Its page script configures the videojs provider before the consent-gated video.js loads.

🤖 Generated with Claude Code

… examples

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for prebid-docs-preview ready!

Name Link
🔨 Latest commit b87e450
🔍 Latest deploy log https://app.netlify.com/projects/prebid-docs-preview/deploys/6ade2f2aa6eee469e67e515b
😎 Deploy Preview https://deploy-preview-6865--prebid-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@patmmccann
patmmccann marked this pull request as ready for review October 24, 2026 21:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T21:37:55.237372Z 1e3ac79 Draft marked ready
ℹ️ 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: 1e3ac79e61

ℹ️ 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 _includes/video/mock-outstream-bid.html
Comment thread examples/video/index.md
Disable persisted debugging overrides when leaving video demos and
restore the mock when returning via the back/forward cache. Update
the video examples description to omit removed long-form examples.

Authored with assistance from ChatGPT.

This branch has not been deployed

No deployments
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.

Update video examples to not rely on a bidder being available and willing to bid

1 participant