Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 5423870

Browse files
Merge pull request #26 from guardian/kc-xhb-alias
Add Xaxis as alias of AppNexus adapter
2 parents d32c905 + 50ebe48 commit 5423870

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

build/dist/prebid.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modifications.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# Guardian-specific modifications
22
These are the ways in which the Guardian optimised build differs from the [generic Prebid](https://github.com/prebid/Prebid.js) build:
3+
## General
34
* Ad server targeting includes a `hb_ttr` parameter, whose value will be one of:
45
* the time to respond for the winning bid in ms (ie. time between bid request sent and bid response received)
56
* -1 if the auction timed out without a winning bid and still waiting for at least one bid response
67
* otherwise not passed at all
7-
* We have built our own custom [Index Exchange bid adapter](https://github.com/guardian/Prebid.js/blob/master/modules/guIndexExchangeBidAdapter.js)
8-
* The [Sonobi bid adapter](https://github.com/guardian/Prebid.js/blob/master/modules/sonobiBidAdapter.js):
8+
## Bid adapters
9+
* We have built our own custom [Index Exchange adapter](https://github.com/guardian/Prebid.js/blob/master/modules/guIndexExchangeBidAdapter.js)
10+
* The [Sonobi adapter](https://github.com/guardian/Prebid.js/blob/master/modules/sonobiBidAdapter.js):
911
* has an extra request parameter, `gmgt`, holding AppNexus targeting key-values
1012
* has a customised `pv` parameter, holding the Ophan-generated pageview ID
13+
* The [AppNexus adapter](https://github.com/guardian/Prebid.js/blob/master/modules/appnexusBidAdapter.js) has an alias `xhb` for Xaxis
14+
## Analytics adapters
1115
* We have built two analytics adapters:
1216
* an [adapter](https://github.com/guardian/Prebid.js/blob/master/modules/guAnalyticsAdapter.js) to send analytics to the data lake
1317
* a simple console-logging [adapter](https://github.com/guardian/Prebid.js/blob/master/modules/consoleLoggingAnalyticsAdapter.js)

modules/appnexusBidAdapter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const SOURCE = 'pbjs';
2929

3030
export const spec = {
3131
code: BIDDER_CODE,
32-
aliases: ['appnexusAst', 'brealtime', 'pagescience', 'defymedia', 'gourmetads', 'matomy', 'featureforward', 'oftmedia', 'districtm'],
32+
aliases: ['appnexusAst', 'brealtime', 'pagescience', 'defymedia', 'gourmetads', 'matomy', 'featureforward', 'oftmedia', 'districtm', 'xhb'],
3333
supportedMediaTypes: [BANNER, VIDEO, NATIVE],
3434

3535
/**

0 commit comments

Comments
 (0)