Skip to content

Yieldmo Bid Adapter: remove dead Topics handling (Chrome/Prebid killed Topics) - #68

Open
ym-aaron wants to merge 1 commit into
masterfrom
bugfix/yieldmo-topics-segment-id
Open

Yieldmo Bid Adapter: remove dead Topics handling (Chrome/Prebid killed Topics)#68
ym-aaron wants to merge 1 commit into
masterfrom
bugfix/yieldmo-topics-segment-id

Conversation

@ym-aaron

@ym-aaron ym-aaron commented Jul 28, 2026

Copy link
Copy Markdown

Type of change

  • Bugfix
  • Refactoring (removes dead code; no functional change on Prebid 11.26+)

Description of change

Chrome removed the Privacy-Sandbox Topics API, and Prebid made topicsFpdModule a no-op as of 11.26 (#15369) — processFpd now returns first-party data untouched and writes nothing to ortb2.user.data. The Yieldmo adapter's getTopics reads ortb2.user.data for segtax 600–609, so it now reads a signal that no longer exists.

This removes the dead topics handling:

  • getTopics() and its call site
  • the banner (serverRequest.topics = JSON.stringify(...)) and video (serverRequest.topics = ...) send-sites
  • the two topics unit tests

It also eliminates a latent bug in that path: getTopics built the array with Object.values(topicsData.segment).map(i => Number(i)), but ORTB user.data[].segment is an array of { id } objects, so Number({id}) was NaN → the request sent topics:[null,null,null] whenever topics were present on Prebid < 11.26.

Surfaced during the TDTN-8800 Prebid 9.53 → 11.x release audit.

Testing

  • gulp test --file test/spec/modules/yieldmoBidAdapter_spec.js: 67 passing.
  • eslint clean.

Refs TDTN-8800.

🤖 Generated with Claude Code

Chrome removed the Privacy-Sandbox Topics API and Prebid made topicsFpdModule a
no-op as of 11.26 (prebid#15369) — processFpd now writes nothing to ortb2.user.data.
The adapter's getTopics reads ortb2.user.data for segtax 600-609, so it now reads
a signal that no longer exists.

Remove getTopics(), its call site, and the banner/video `topics` send-sites (plus
the two topics unit tests). This also drops a latent bug in that path: getTopics
built the array with Object.values(segment).map(Number), but ortb2 segments are
[{ id }] objects, so it emitted topics:[null,null,null] whenever topics were
present (Prebid < 11.26).

Surfaced during the TDTN-8800 Prebid 9.53->11.x release audit.

Refs TDTN-8800.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ym-aaron
ym-aaron force-pushed the bugfix/yieldmo-topics-segment-id branch from 3a61c96 to b7d27ab Compare July 28, 2026 22:11
@ym-aaron ym-aaron changed the title Yieldmo Bid Adapter: fix topics segment mapping (was sending null ids) Yieldmo Bid Adapter: remove dead Topics handling (Chrome/Prebid killed Topics) Jul 28, 2026
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.

1 participant