MediaNet
Features
Registration
Please visit www.media.net for more information. A Media.net customer ID (cid) is required.
Configuration
pbjs.enableAnalytics({
provider: 'medianetAnalytics',
options: {
cid: '8CUX0H51C'
}
});
| Name | Scope | Type | Description |
|---|---|---|---|
cid |
required | string | Media.net customer ID. If missing, the adapter logs an error and is not enabled. |
enabledUids |
optional | array of strings | User ID keys (as returned by pbjs.getUserIds()) whose values are logged. Default: []; only the names of available IDs are logged. |
loggingConfig |
optional | object | Inline logging configuration used instead of fetching it from Media.net. Supports percentage (number, auction log sampling percentage), loggingDelay (number, ms), and domain (object mapping a domain to its own { percentage }). |
loggingDelay |
optional | number | Milliseconds to wait after auctionEnd for pending bidders before sending the auction log. Default: 500. |
sampling |
optional | number | Not applied as Prebid sampling: the adapter always forces it to 1 and only reports the configured value to Media.net. |
Data Collection
The adapter listens to auctionInit, bidRequested, bidResponse, bidRejected (floor not met), noBid, bidTimeout, bidderDone, auctionEnd, bidWon, adRenderFailed, adRenderSucceeded, and staleRender. It also listens to GPT slotResponseReceived events to capture the line item and creative IDs of winning slots.
- Configuration: unless
loggingConfigis set, the adapter fetches its sampling percentage fromprebid.media.net. Auction logs are sampled at 10% by default. Onlocalhostor when the page URL containsmedianet_test, all auctions are logged. - Auction logs: for each ad unit, once all bidders have responded after
auctionEnd(or afterloggingDelay, or when the page is hidden), all bids are sent with status, CPM (converted to USD), price bucket, size, timing, floors, ad server targeting, page URL, referrer, and consent strings (GDPR, USP, GPP), and the COPPA flag. - Win logs: every
bidWonis logged, regardless of sampling. - Auction and win logs are sent with
sendBeacontonavvy.media.net, falling back to an ajaxPOST. - Errors and render events are sent as image pixels to
qsearch-a.akamaihd.net. - For instream video, when Prebid Cache (
cache.url) is configured, the adapter adds a VAST impression tracker pointing topb-logs.media.net.