• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

prebid / Prebid.js / 24801750822
96%
master: 96%

Build:
Build:
LAST BUILD BRANCH: codex/import-types-for-ftrack-id
DEFAULT BRANCH: master
Ran 22 Apr 2026 08:57PM UTC
Jobs 1
Files 1837
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Apr 2026 08:45PM UTC coverage: 96.394% (-0.003%) from 96.397%
24801750822

Pull #14778

github

275880
mastap150
pgamdirectAnalytics: address Codex review on #14778

Two P1s flagged by Codex on the initial commit:

1. ad_unit_code semantic inconsistency

Original code pulled ad_unit_code from args.adUnitCode on BID_WON
but from args.adId on AD_RENDER_*, so the same field represented
different identifiers across event types. In auctions with multiple
ad units (or repeated wins from the same bidder), this prevented
reliable win → render reconciliation and could misattribute render
outcomes.

Fix: render events now read ad_unit_code from args.bid.adUnitCode
(stable across the BID_WON ↔ AD_RENDER_* join for the same slot).
adId moves to its own field `ad_id` so per-bid traceability is
preserved. Type definition updated with a comment explaining the
split so future contributors don't re-conflate them.

2. Missing fetch keepalive

Prebid AGENTS.md §71 requires low-priority telemetry calls to set
fetch keepalive. Without it, BID_WON + AD_RENDER_* events emitted
near page unload get dropped before reaching the endpoint — and
those are exactly the events that fire in that window.

Added `keepalive: true` to the ajax call. Prebid's ajax helper
already supports the flag (src/ajax.ts option); no adapter-side
polyfill needed.

Tests: +1 spec case covering "missing bid object on AD_RENDER_*
still captures ad_id cleanly." Existing render-event assertions
updated to verify the ad_unit_code-vs-ad_id split explicitly.
13/13 pass (was 12).
Pull Request #14778: Add pgamdirect Analytics Adapter

43400 of 53362 branches covered (81.33%)

98 of 111 new or added lines in 2 files covered. (88.29%)

221565 of 229853 relevant lines covered (96.39%)

72.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
68.29
modules/pgamdirectAnalyticsAdapter.ts
Jobs
ID Job ID Ran Files Coverage
1 24801750822.1 22 Apr 2026 08:57PM UTC 2963
84.04
GitHub Action Run
Source Files on build 24801750822
  • Tree
  • List 1837
  • Changed 198
  • Source Changed 0
  • Coverage Changed 198
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24801750822
  • Pull Request #14778
  • PR Base - master (#24797375847)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc