feat(read): Kueez header bidding behind a deploy-time switch - #6591
Open
pnvasanth wants to merge 1 commit into
Open
feat(read): Kueez header bidding behind a deploy-time switch#6591pnvasanth wants to merge 1 commit into
pnvasanth wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Prebid.js runs a Kueez auction for each /read ad slot before the AdSense request and renders the winning creative into the slot's own iframe; a slot with no bid falls through to the AdSense unit it always had. There is no ad server: Prebid renders the bid itself, so no line items. PREBID_ENABLED is a hardcoded false. Off, the template is byte-for-byte on its current AdSense path: no script, no preconnects, no auction. The organic post page never opts in.
pnvasanth
force-pushed
the
feat/kueez-prebid-header-bidding
branch
from
September 2, 2026 11:23
839a3e0 to
255e256
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wires the Prebid.js bundle from #6584 into the /read arbitrage template as a Kueez header-bidding layer in front of AdSense.
prebid.ts:PREBID_ENABLED(hardcodedfalse), Kueez display placement params, TCF + iframe-sync config,requestPrebidBid(never rejects: bid or a reason),renderPrebidBidProgrammaticAd: whenheaderBiddingis on, the slot runs a Prebid auction at the moment it would have requested AdSense. A bid renders into the slot's own iframe; no bid, a timeout, or a bundle that never loaded mounts the AdSense<ins>exactly as today. The<ins>stays unmounted until then, so the mount-at-eligibility invariant ofadsbygoogle.pushholds.ArbitrageAdSlot: onlysurface="read"opts in. The organic post page never does./articles/[id]: loads/prebid/prebid.jsand preconnects to the Kueez exchange, only whilePREBID_ENABLED. Same lifetime as adsbygoogle, torn down by the existing hard-navigation guard.request/fill/empty prebid bidevents with bidder, cpm, size and no-bid reason; impressions, viewable impressions and clicks on a Kueez creative carryad_provider_id: kueezrtb.Default behaviour is unchanged. With the switch off nothing here runs: no script, no preconnect, no auction. Flip
PREBID_ENABLEDtotrueand deploy to enable.Before enabling
pIdwith the Kueez AM (the value shared is 23 chars and not hex, unlike thecId)Test plan
prebid.spec.ts: size selection, unit declaration, no-bid / timeout / error results, once-per-page config, render into iframeProgrammaticAd.spec.tsx(switch mocked on): bid renders and AdSense never requested; no bid, timeout fall back to AdSense; size filtering by box width; organic and native formats skip the auction/articles/<id>as anonymous with the switch off shows noprebid.jsrequestPreview domain
https://feat-kueez-prebid-header-bidding.preview.app.daily.dev