Prebid.js
Prebid.js copied to clipboard
Tercept Analytics Adapter: Ehanced bid response fields capture & BIDDER_ERROR support
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.
-
Additional Bid Fields Capture:
- Added capture of
width,height,ttl,dealIdfields - Added capture of
ad,adUrl,adId,sizefields - Added capture of
adserverTargeting,videoCacheKey,nativeobjects - Added capture of complete
metaobject with advertiser information
- Added capture of
-
AdSlot Mapping Implementation:
- Implemented
getAdSlotData()function to extract adSlot information fromortb2Imp.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)
- Implemented
-
BIDDER_ERROR Event Support:
- Added support for
BIDDER_ERRORevent tracking - Implemented error response mapping with status code 6
- Added location context (host, path, search) to error events
- Added support for
-
Enhanced Location Tracking:
- Added
host,path, andsearchfields tobidWonevents for better tracking context
- Added
-
Improved Bid ID Handling:
- Fixed bid ID assignment logic to properly handle different event types
Other information
@patmmccann These test errors are from files not in the pr.
@robertrmartinez Have made the requested changes and added some missing test cases as well.