Skip to content

Yieldmo Bid Adapter: do not bid on or sync COPPA (child-directed) requests - #70

Open
ym-aaron wants to merge 1 commit into
masterfrom
TDTN-8831-yieldmo-adapter-coppa-dsa-agent
Open

Yieldmo Bid Adapter: do not bid on or sync COPPA (child-directed) requests#70
ym-aaron wants to merge 1 commit into
masterfrom
TDTN-8831-yieldmo-adapter-coppa-dsa-agent

Conversation

@ym-aaron

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

Copy link
Copy Markdown

Summary

When a request is flagged COPPA (child-directed), yieldmoBidAdapter now discards it at the adapterbuildRequests returns 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 [] when ortb2.regs.coppa is set (core populates it from config.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 [] when coppaDataHandler.getCoppa() is true, so no cookie-sync pixel is dropped on child-directed traffic either. (Prebid core does not gate user syncs by COPPA, and getUserSyncs doesn't receive bidderRequest, so the COPPA state is read via coppaDataHandler.)

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

  • Adapter-only and self-contained — no exchange-side change is required for the prebid-js path, since the discard happens before any request leaves the browser. (The other integration paths — OpenRTB header / Prebid Server — already enforce COPPA exchange-side.)

🤖 Generated with Claude Code

@ym-aaron
ym-aaron force-pushed the TDTN-8831-yieldmo-adapter-coppa-dsa-agent branch from 770856f to cea6859 Compare July 31, 2026 18:44
@ym-aaron ym-aaron changed the title Yieldmo Bid Adapter: forward COPPA + DSA signals and surface DSA in bid meta Yieldmo Bid Adapter: forward COPPA signal on prebid-js requests Jul 31, 2026
@ym-aaron
ym-aaron force-pushed the TDTN-8831-yieldmo-adapter-coppa-dsa-agent branch from cea6859 to b6b0907 Compare July 31, 2026 20:10
@ym-aaron ym-aaron changed the title Yieldmo Bid Adapter: forward COPPA signal on prebid-js requests Yieldmo Bid Adapter: do not bid on COPPA (child-directed) requests Jul 31, 2026
…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
ym-aaron force-pushed the TDTN-8831-yieldmo-adapter-coppa-dsa-agent branch from b6b0907 to 1ef6c23 Compare July 31, 2026 20:24
@ym-aaron ym-aaron changed the title Yieldmo Bid Adapter: do not bid on COPPA (child-directed) requests Yieldmo Bid Adapter: do not bid on or sync COPPA (child-directed) requests Jul 31, 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