Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

Tercept Analytics Adapter: Ehanced bid response fields capture & BIDDER_ERROR support

Open mdusmanalvi opened this issue 2 months ago • 1 comments

Type of change

  • [ ] Bugfix
  • [ ] Feature
  • [ ] New bidder adapter
  • [ ] Updated bidder adapter
  • [x] 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. Enhanced Location Tracking:

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

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

Other information

mdusmanalvi avatar Nov 12 '25 06:11 mdusmanalvi

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

mdusmanalvi avatar Nov 12 '25 10:11 mdusmanalvi

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

mdusmanalvi avatar Dec 22 '25 06:12 mdusmanalvi