Skip to content

Tercept Analytics Adapter: make auction window configurable#14858

Open
mdusmanalvi wants to merge 4 commits into
prebid:masterfrom
mdusmanalvi:tercept-configurable-timeout
Open

Tercept Analytics Adapter: make auction window configurable#14858
mdusmanalvi wants to merge 4 commits into
prebid:masterfrom
mdusmanalvi:tercept-configurable-timeout

Conversation

@mdusmanalvi
Copy link
Copy Markdown
Contributor

@mdusmanalvi mdusmanalvi commented May 8, 2026

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Updated bidder adapter
  • Updated analytics 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

The Tercept analytics adapter was using a hardcoded 1.5s window after AUCTION_END to collect post-auction events before sending the batched payload. In some publishers, many BID_WON events fire more than 1.5s after AUCTION_END. This caused win events to be missed from the analytics payload.

  • Increased the default batch timeout from 1500ms to 5000ms.
  • Made the timeout configurable via analyticsBatchTimeout in initOptions.

Other information

…nce many BID_WON events were happening after 1.5 secs.
@mdusmanalvi mdusmanalvi changed the title Changing auction timer to configurable with a 5 secs default value since many BID_WON events were happening after 1.5 secs. Tercept Analytics Adapter: make auction window configurable May 8, 2026
@review-assignment-bot review-assignment-bot Bot requested a review from gwhigs May 8, 2026 04:27
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 34fedf6b88

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread modules/terceptAnalyticsAdapter.js Outdated
// 1.5s window to collect BID_WON, AD_RENDER_SUCCEEDED, AD_RENDER_FAILED, BIDDER_ERROR
auction.timer = setTimeout(() => flush(args.auctionId), 1500);
// configurable window (default 5s) to collect BID_WON, AD_RENDER_SUCCEEDED, AD_RENDER_FAILED, BIDDER_ERROR
const timeout = initOptions?.analyticsBatchTimeout ?? DEFAULT_ANALYTICS_BATCH_TIMEOUT;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please type your init options similar to #14773 or #14774

Copy link
Copy Markdown
Collaborator

@patmmccann patmmccann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please define a type on your new param

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.

2 participants