Skip to content

Conversation

@mdusmanalvi
Copy link
Contributor

@mdusmanalvi mdusmanalvi commented Nov 12, 2025

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

Enhanced the Tercept Analytics Adapter to capture comprehensive bid response data, BIDDER_ERROR event and implement adSlot mapping functionality.

  1. Additional Bid Fields Capture:

    • Added capture of width, height, ttl, dealId fields
    • Added capture of ad, adUrl, adId, size fields
    • Added capture of adserverTargeting, videoCacheKey, native objects
    • Added capture of complete meta object with advertiser information
  2. AdSlot Mapping Implementation:

    • Implemented getAdSlotData() function to extract adSlot information from ortb2Imp.ext.data
    • Added mapping of adserverAdSlot
    • Added mapping of pbAdSlot
    • Applied adSlot mapping to all bid responses (successful bids, no-bids, timeouts, errors, and wins)
  3. BIDDER_ERROR Event Support:

    • Added support for BIDDER_ERROR event tracking
    • Implemented error response mapping with status code 6
    • Added location context (host, path, search) to error events
  4. Render Event Tracking:

    • Added support for AD_RENDER_SUCCEEDED event with renderStatus code 7
    • Added support for AD_RENDER_FAILED event with renderStatus code 8
    • Added renderTimestamp field to capture when render events occur
    • Added reason and message fields for render failure diagnostics
    • Added renderedSize field for successful renders
  5. Enhanced Location Tracking:

    • Added host, path, and search fields to bidWon events for better tracking context
  6. Improved Bid ID Handling:

    • Fixed bid ID assignment logic to properly handle different event types

Other information

@mdusmanalvi
Copy link
Contributor Author

@patmmccann These test errors are from files not in the pr.

Copy link
Collaborator

@robertrmartinez robertrmartinez left a comment

Choose a reason for hiding this comment

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

couple questions

Also please add tests for new logic if you can please!

@mdusmanalvi
Copy link
Contributor Author

@robertrmartinez Have made the requested changes and added some missing test cases as well.

@mdusmanalvi
Copy link
Contributor Author

@robertrmartinez These build failures are not from this PR, as far as I understand.

…ED event tracking

Track render events with renderStatus codes 7 (succeeded) and 8 (failed).
Adds renderTimestamp, reason, and message fields to all bid responses
with null defaults for non-render events.
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.

3 participants