Skip to content

Remove pbadslot and customPbAdSlot from GPT Pre-Auction docs#6612

Open
patmmccann wants to merge 1 commit into
masterfrom
codex/fix-issue-6435-on-github
Open

Remove pbadslot and customPbAdSlot from GPT Pre-Auction docs#6612
patmmccann wants to merge 1 commit into
masterfrom
codex/fix-issue-6435-on-github

Conversation

@patmmccann

@patmmccann patmmccann commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Fixes #6435

Motivation

  • Update the GPT Pre-Auction documentation to reflect that pbadslot / customPbAdSlot support has been removed from Prebid.js and the module now focuses on GPID population.
  • Reduce confusion by aligning the docs, examples, and config guidance with the current module behavior and API.

Description

  • Removed all references to pbadslot and the customPbAdSlot example and replaced them with GPID-focused wording and guidance.
  • Updated the configuration table and example to describe useDefaultPreAuction (defaulting to true) and the customPreAuction(adUnit, adServerAdSlot, gptAdUnitPath) signature.
  • Rewrote the “Defining GPID” flow to describe GPID-only population behavior and replaced the example with a customPreAuction sample using gptAdUnitPath.
  • Updated links to point to the GPID anchor (/features/pbAdSlot.html#the-gpid).

Testing

  • Installed markdownlint-cli via npm and ran markdownlint --config .markdownlint.json dev-docs/modules/gpt-pre-auction.md, and linting passed for the edited file.
  • Ran bundle install to ensure Jekyll dependencies were available and then ran bundle exec jekyll build, and the site built successfully without errors for the modified content.
  • No markdown lint or Jekyll build errors remain for the changed file.

Codex Task

@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploy Preview for prebid-docs-preview ready!

Name Link
🔨 Latest commit 047818b
🔍 Latest deploy log https://app.netlify.com/projects/prebid-docs-preview/deploys/6a292cac00e7f0000860a8fc
😎 Deploy Preview https://deploy-preview-6612--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.

@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: 047818b49d

ℹ️ 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 on lines +85 to +86
1. Otherwise, if a customPreAuction function is specified, run that. If the result isn't empty, place it in GPID.
1. Otherwise, if useDefaultPreAuction is true, run the default logic and place the return value in GPID:

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 Clarify that customPreAuction suppresses the default path

With a customPreAuction function configured, the module calls that function and does not fall through to useDefaultPreAuction when it returns an empty value, even though useDefaultPreAuction now defaults to true. As written, publishers can reasonably expect ad units where their custom function returns undefined to still get the default GPID, but those ad units will be left without one unless the custom function supplies it.

Useful? React with 👍 / 👎.

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.

Do you have this information from the prebid.js source code? If so, point to the exact location where this behaviour is implemented.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix pbadslot discussion

2 participants