Skip to content

Commit 0dcf675

Browse files
authored
Markdown file documentation
1 parent 5807e00 commit 0dcf675

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed

modules/1plusXRtdProvider.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# 1plusX Real-time Data Submodule
2+
3+
## Overview
4+
5+
Module Name: 1plusX Rtd Provider
6+
Module Type: Rtd Provider
7+
Maintainer: [email protected]
8+
9+
## Description
10+
11+
RTD provider for 1plusX.
12+
Enriches the bidding object with Audience & Targeting data
13+
Contact [email protected] for information.
14+
15+
## Usage
16+
17+
### Build
18+
```
19+
gulp build --modules="rtdModule,1plusXRtdProvider,appnexusBidAdapter,..."
20+
```
21+
22+
> Note that the global RTD module, `rtdModule`, is a prerequisite of the 1plusX RTD module.
23+
24+
### Configuration
25+
26+
Use `setConfig` to instruct Prebid.js to initilize the 1plusX RTD module, as specified below.
27+
28+
This module is configured as part of the `realTimeData.dataProviders`
29+
30+
```javascript
31+
var TIMEOUT = 1000;
32+
pbjs.setConfig({
33+
realTimeData: {
34+
auctionDelay: TIMEOUT,
35+
dataProviders: [{
36+
name: '1plusX',
37+
waitForIt: true,
38+
params: {
39+
customerId: 'acme',
40+
bidders: ['appnexus', 'rubicon'],
41+
timeout: TIMEOUT
42+
}
43+
}]
44+
}
45+
});
46+
```
47+
48+
### Parameters
49+
50+
| Name |Type | Description | Notes |
51+
| :------------ | :------------ | :------------ |:------------ |
52+
| name | String | Real time data module name | Always '1plusX' |
53+
| waitForIt | Boolean | Should be `true` if there's an `auctionDelay` defined (optional) | `false` |
54+
| params | Object | | |
55+
| params.customerId | Integer | Your 1plusX customer id | |
56+
| params.biders | Array<string> | List of bidders for which you would like data to be set | To this date only `appnexus` and `rubicon` are supported |
57+
| params.timeout | Integer | timeout (ms) | 1000 |
58+
59+
## Supported Bidders
60+
At the moment only Appnexus (`appnexus`) and Magnite (`rubicon`) are supported
61+
62+
63+
| Bidder | ID (for `bidders` parameter) | Module name (for `gulp build`) |
64+
| ------- | ---------------------------- | ------------------------------ |
65+
| Xandr | `appnexus` | `appnexusBidAdapter` |
66+
| Magnite | `rubicon` | `rubiconBidAdapter` |
67+
68+
## Testing
69+
70+
To view an example of how the 1plusX RTD module works :
71+
72+
`gulp serve --modules=rtdModule,1plusXRtdProvider,appnexusBidAdapter,rubiconBidAdapter`
73+
74+
and then point your browser at:
75+
76+
`http://localhost:9999/integrationExamples/gpt/1plusXRtdProvider_example.html`

0 commit comments

Comments
 (0)