Yieldmo Bid Adapter: do not bid on or sync COPPA (child-directed) requests - #70
Open
ym-aaron wants to merge 1 commit into
Open
Yieldmo Bid Adapter: do not bid on or sync COPPA (child-directed) requests#70ym-aaron wants to merge 1 commit into
ym-aaron wants to merge 1 commit into
Conversation
ym-aaron
force-pushed
the
TDTN-8831-yieldmo-adapter-coppa-dsa-agent
branch
from
July 31, 2026 18:44
770856f to
cea6859
Compare
ym-aaron
force-pushed
the
TDTN-8831-yieldmo-adapter-coppa-dsa-agent
branch
from
July 31, 2026 20:10
cea6859 to
b6b0907
Compare
…uests When ortb2.regs.coppa is set, buildRequests returns no request so the adapter never bids on child-directed inventory (covers banner and video via one early-out). getUserSyncs likewise returns no syncs when coppaDataHandler.getCoppa() is true, so no cookie-sync pixel is dropped on COPPA traffic. Discards client-side rather than relying on the exchange. Yieldmo internal: TDTN-8831 (COPPA portion). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
ym-aaron
force-pushed
the
TDTN-8831-yieldmo-adapter-coppa-dsa-agent
branch
from
July 31, 2026 20:24
b6b0907 to
1ef6c23
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
When a request is flagged COPPA (child-directed),
yieldmoBidAdapternow discards it at the adapter —buildRequestsreturns no server request, so Yieldmo never bids on child-directed inventory. Previously the adapter forwarded no COPPA signal at all, so child-directed traffic went through unguarded on the prebid-js path.This drops the traffic client-side rather than relying on the exchange to reject it — simpler, and independent of the adserving path.
Yieldmo internal ticket: TDTN-8831 (COPPA portion).
Changes (
modules/yieldmoBidAdapter.js)buildRequests: early-return[]whenortb2.regs.coppais set (core populates it fromconfig.getConfig('coppa')). This short-circuits before either the banner or video request is built, so both media types are covered by the single guard.getUserSyncs: early-return[]whencoppaDataHandler.getCoppa()is true, so no cookie-sync pixel is dropped on child-directed traffic either. (Prebid core does not gate user syncs by COPPA, andgetUserSyncsdoesn't receivebidderRequest, so the COPPA state is read viacoppaDataHandler.)Together these ensure the adapter neither bids on nor sets identifiers for COPPA traffic.
Testing
npx eslint modules/yieldmoBidAdapter.js test/spec/modules/yieldmoBidAdapter_spec.js— clean (no output).npx gulp test --file test/spec/modules/yieldmoBidAdapter_spec.js— 73 passing. Tests: banner request discarded ([]) when coppa set, video request discarded when coppa set, normal banner request still built when coppa unset, and no user syncs registered when COPPA is on.Scope
🤖 Generated with Claude Code