-
Notifications
You must be signed in to change notification settings - Fork 1.3k
greenbids RTD provider #4517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
greenbids RTD provider #4517
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
layout: page_v2 | ||
title: Greenbids Realtime Module | ||
display_name: Greenbids Realtime Module | ||
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 | ||
page_type: module | ||
module_type: rtd | ||
module_code : greenbidsRtdProvider | ||
enable_download : true | ||
vendor_specific: true | ||
sidebarType : 1 | ||
--- | ||
|
||
# Greenbids Realtime Module | ||
{:.no_toc} | ||
|
||
* TOC | ||
{:toc} | ||
|
||
## Overview | ||
|
||
The Greenbids RTD adapter allows to dynamically filter calls to SSP to reduce outgoing call to the programmatics chain, reducing ad serving carbon impact | ||
|
||
## Configuration | ||
|
||
This module is configured as part of the `realTimeData.dataProviders` object. | ||
|
||
{: .table .table-bordered .table-striped } | ||
| Name | Scope | Description | Example | Type | | ||
|------------|----------|----------------------------------------|---------------|----------| | ||
| `name ` | required | Real time data module name | `'greenbidsRtdProvider'` | `string` | | ||
| `waitForIt ` | required (mandatory true value) | Tells prebid auction to wait for the result of this module | `'true'` | `boolean` | | ||
| `params` | required | | | `Object` | | ||
| `params.pbuid` | required | The client site id provided by Greenbids. | `'TEST_FROM_GREENBIDS'` | `string` | | ||
| `params.targetTPR` | optional (default 0.95) | Target True positive rate for the throttling model | `0.99` | `[0-1]` | | ||
| `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` | | ||
|
||
#### Example | ||
|
||
```javascript | ||
const greenbidsDataProvider = { | ||
name: 'greenbidsRtdProvider', | ||
waitForIt: true, | ||
params: { | ||
pbuid: 'TEST_FROM_GREENBIDS', | ||
timeout: 200 | ||
} | ||
}; | ||
pbjs.setConfig({ | ||
realTimeData: { | ||
auctionDelay: 200, | ||
dataProviders: [ greenbidsDataProvider ] | ||
} | ||
}); | ||
jbogp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
|
||
## Integration | ||
To install the module, follow these instructions: | ||
|
||
#### Step 1: Contact Greenbids to get a pbuid and account | ||
|
||
#### Step 2: Integrate the Greenbids Analytics Adapter (see prebid Analytics modules) | ||
|
||
#### Step 3: Prepare the base Prebid file | ||
|
||
- Option 1: Use Prebid [Download](/download.html) page to build the prebid package. Ensure that you do check *Greenbids Realtime Module* module | ||
|
||
- Option 2: From the command line, run `gulp build --modules=greenbidsRtdProvider,...` | ||
|
||
#### Step 4: Set configuration | ||
|
||
Enable Greenbids Real Time Module using `pbjs.setConfig`. Example is provided in Configuration section. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.