KEMBAR78
Advertising Bid Adapter: update parsing bid.impid to support the change to UUID format for bid ids by pratik-chavan-advertising-dot-com · Pull Request #13879 · prebid/Prebid.js · GitHub
Skip to content

Conversation

pratik-chavan-advertising-dot-com
Copy link
Contributor

Type of change

  • Bugfix

  • Feature

  • New bidder adapter

  • Updated bidder adapter

  • Code style update (formatting, local variables)

  • Refactoring (no functional changes, no api changes)

  • Build related changes

  • CI related changes

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

  • Other

Description of change

In Prebid 10.7.0, a change was released that updated how the request bid ids are formed (See #13698)

In advertising.com's bid adapter (bidderCode: advertising), we have a regex that we use to parse the incoming bid.impid. We do this since we prepend the request bid id by b or v in our response to indicate whether the impression is banner or video. The existing regex expected alphanumeric characters to follow after the b or v which was the case per the previous bid id format. However, with the new UUID based format, - characters are introduced too which breaks the bid.impid parsing.

So, an incoming response bid.impid of b07d74d2f-27ce-4f98-915b-211bc91f7d71 would actually be parsed to 07d74d2f as opposed to expected 07d74d2f-27ce-4f98-915b-211bc91f7d71 after correctly stripping off b. This causes a mismatch between bid request id and bid response id and results in our adapter completely breaking since the incoming bids are discarded. Warnings like the following are logged.

WARNING: Bidder advertising made bid for unknown request ID: 07d74d2f. Ignoring.

I have updated the regex to accept everything after 'b' or 'v' and have confirmed that this fixes the issue.

Other information

Related PR: #13698

Since this issue breaks our adapter in versions 10.7.0, 10.8.0, 10.9.0, and 10.10.0, would it be possible to get a patch release for those versions?

I am also considering opening a docs PR once this fix is merged and released to add a note next to our adapter on the download page to flag to publishers that they should avoid using the affected versions.

Let me know your thoughts.

…support the change to UUID format for bid ids
…ingcom-request-response-id-mismatch-bugfix

Advertising Bid Adapter: Update the regex while parsing bid.impid to support the change to UUID format for bid ids
@pratik-chavan-advertising-dot-com
Copy link
Contributor Author

@patmmccann Any feedback on this?

@ChrisHuie ChrisHuie changed the title Advertising Bid Adapter: Update the regex while parsing bid.impid to support the change to UUID format for bid ids Advertising Bid Adapter: update parsing bid.impid to support the change to UUID format for bid ids Sep 24, 2025
@ChrisHuie ChrisHuie self-requested a review September 24, 2025 16:33
@ChrisHuie ChrisHuie self-assigned this Sep 24, 2025
@ChrisHuie ChrisHuie merged commit 6006f4a into prebid:master Sep 30, 2025
19 of 20 checks passed
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.

2 participants