Skip to content

Commit 6f2c0b5

Browse files
jbogpmuuki88
authored andcommitted
greenbids RTD provider (prebid#4517)
* greenbids RTD provider * update doc * code formatting Co-authored-by: Muki Seiler <[email protected]> * Code formatting Co-authored-by: Muki Seiler <[email protected]> --------- Co-authored-by: Muki Seiler <[email protected]>
1 parent 35ed7cc commit 6f2c0b5

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
layout: page_v2
3+
title: Greenbids Realtime Module
4+
display_name: Greenbids Realtime Module
5+
description: The Greenbids RTD adapter allows to dynamically filter calls to SSP to reduce outgoing call to the programmatics chain, reducing ad serving carbon impact
6+
page_type: module
7+
module_type: rtd
8+
module_code : greenbidsRtdProvider
9+
enable_download : true
10+
vendor_specific: true
11+
sidebarType : 1
12+
---
13+
14+
# Greenbids Realtime Module
15+
{:.no_toc}
16+
17+
* TOC
18+
{:toc}
19+
20+
## Overview
21+
22+
The Greenbids RTD adapter allows to dynamically filter calls to SSP to reduce outgoing call to the programmatics chain, reducing ad serving carbon impact
23+
24+
## Configuration
25+
26+
This module is configured as part of the `realTimeData.dataProviders` object.
27+
28+
{: .table .table-bordered .table-striped }
29+
| Name | Scope | Description | Example | Type |
30+
|------------|----------|----------------------------------------|---------------|----------|
31+
| `name ` | required | Real time data module name | `'greenbidsRtdProvider'` | `string` |
32+
| `waitForIt ` | required (mandatory true value) | Tells prebid auction to wait for the result of this module | `'true'` | `boolean` |
33+
| `params` | required | | | `Object` |
34+
| `params.pbuid` | required | The client site id provided by Greenbids. | `'TEST_FROM_GREENBIDS'` | `string` |
35+
| `params.targetTPR` | optional (default 0.95) | Target True positive rate for the throttling model | `0.99` | `[0-1]` |
36+
| `params.timeout` | optional (default 200) | Maximum amount of milliseconds allowed for module to finish working (has to be <= to the realTimeData.auctionDelay property) | `200` | `number` |
37+
38+
#### Example
39+
40+
```javascript
41+
const greenbidsDataProvider = {
42+
name: 'greenbidsRtdProvider',
43+
waitForIt: true,
44+
params: {
45+
pbuid: 'TEST_FROM_GREENBIDS',
46+
timeout: 200
47+
}
48+
};
49+
pbjs.setConfig({
50+
realTimeData: {
51+
auctionDelay: 200,
52+
dataProviders: [greenbidsDataProvider]
53+
}
54+
});
55+
```
56+
57+
## Integration
58+
To install the module, follow these instructions:
59+
60+
#### Step 1: Contact Greenbids to get a pbuid and account
61+
62+
#### Step 2: Integrate the Greenbids Analytics Adapter (see prebid Analytics modules)
63+
64+
#### Step 3: Prepare the base Prebid file
65+
66+
- Option 1: Use Prebid [Download](/download.html) page to build the prebid package. Ensure that you do check *Greenbids Realtime Module* module
67+
68+
- Option 2: From the command line, run `gulp build --modules=greenbidsRtdProvider,...`
69+
70+
#### Step 4: Set configuration
71+
72+
Enable Greenbids Real Time Module using `pbjs.setConfig`. Example is provided in Configuration section.

0 commit comments

Comments
 (0)