Skip to content

NoBid Bid Adapter: forward ortb2Imp and preserve special characters in payload - version 1.4.2 - #15897

Open
redaguermas wants to merge 2 commits into
prebid:masterfrom
redaguermas:NoBid-version-1.4.2
Open

redaguermas wants to merge 2 commits into
prebid:masterfrom
redaguermas:NoBid-version-1.4.2

Conversation

@redaguermas

Copy link
Copy Markdown
Contributor

Type of change

  • Updated bidder adapter

Description of change

Forward each ad unit's ortb2Imp to the NoBid endpoint so impression-level
first-party data, including the GPID (ortb2Imp.ext.gpid), reaches the server.

The payload previously stripped ', & and #, which corrupted values such as
GPIDs ("/1234/home#div-1" arrived as "/1234/homediv-1"). These characters are
now JSON unicode-escaped, so the body still contains no raw ', & or #, but
values decode intact.

Tests added for ortb2Imp forwarding, its omission when absent, and the escaping.

…n payload

Forward each ad unit's ortb2Imp to the NoBid endpoint so impression-level
first-party data reaches the server, including the GPID (ortb2Imp.ext.gpid).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 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-29T00:27:43.688781Z 4d7d64e 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: 4d7d64e3b3

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

ad_type: adType,
params: bid.params,
floor: floor,
ortb2Imp: bid.ortb2Imp,

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 Publish the 1.4.2 adapter version

When publishers load this 1.4.2 change, the new ortb2Imp behavior is active but the module still assigns window.nobidVersion = '1.3.4' at line 20. Consumers and support tooling that identify the loaded NoBid adapter through this exposed global therefore continue to report the previous release, so update the constant to 1.4.2 as part of this change.

Useful? React with 👍 / 👎.

@barecheck

barecheck Bot commented Oct 29, 2026

Copy link
Copy Markdown

Barecheck - Code coverage report

Total: 91.75%

Your code coverage diff: 0.01% ▴

Uncovered files and lines
FileLines
modules/nobidBidAdapter.js43, 92, 97, 102, 132, 182-183, 190-192, 198, 210, 218, 224, 249-250, 290, 333, 336, 339, 350-357, 359, 365-372, 409-411, 419-420, 471, 475-477, 480-483

var filterAdUnitsByIds = function(divIds, adUnits) {
var filtered = [];
if (!divIds.length) {
filtered = adUnits;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It seems your coverage issues are quite substantial, can you add fixes for those on this pr amd address codex feedback

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.

2 participants