-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Create overtoneRtdProvider.md #5827
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -0,0 +1,87 @@ | ||||
# Overtone Real-time Data Submodule | ||||
|
||||
## Overview | ||||
|
||||
Module Name: Overtone Rtd Provider | ||||
Module Type: Rtd Provider | ||||
Maintainer: [email protected] | ||||
|
||||
## Description | ||||
|
||||
The Overtone RTD module appends Contextual segments to the bidding object based on the Overtone taxonomy and custom metrics added by the publisher. Please contact [email protected] in order to be whitelisted for use of our API and to explore dozens of contextual signals. | ||||
Check failure on line 11 in dev-docs/modules/overtoneRtdProvider.md
|
||||
|
||||
## Usage | ||||
|
||||
|
||||
Check failure on line 15 in dev-docs/modules/overtoneRtdProvider.md
|
||||
Comment on lines
+14
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
To install and enable the Overtone RTD module, follow these steps: | ||||
|
||||
### Step 1: Prepare the base Prebid file | ||||
|
||||
* **Option 1**: Use Prebid [Download](https://docs.prebid.org/download.html) page to build the Prebid package. Ensure that you check the **Overtone Real-Time Data Module** checkbox. | ||||
* **Option 2**: From the command line, run `gulp build --modules=overtoneRtdProvider,...`. | ||||
|
||||
### Step 2: Configure the module | ||||
|
||||
### Configuration | ||||
|
||||
Use `setConfig` to instruct Prebid.js to initilize the Overtone RTD module, as specified below. | ||||
|
||||
This module is configured as part of the `realTimeData.dataProviders` | ||||
|
||||
```javascript | ||||
Check failure on line 31 in dev-docs/modules/overtoneRtdProvider.md
|
||||
pbjs.setConfig({ | ||||
realTimeData: { | ||||
dataProviders: [{ | ||||
name: 'overtone', | ||||
params: { | ||||
apiKey: 'YOUR_API_KEY', | ||||
domains: ['example.com'], | ||||
timeout: 500 | ||||
} | ||||
}] | ||||
} | ||||
}); | ||||
``` | ||||
|
||||
| Name | Type | Description | Default | | ||||
| :------------------------ | :------------ | :--------------------------------------------------------------- |:----------------- | | ||||
| name | String | Real time data module name | Always 'overtone' | | ||||
| params | Object | | | | ||||
| params.apiKey | String | Your unique API key provided by Overtone | YOUR_API_KEY | | ||||
| params.domains | Array<string> | Array of whitelisted domains for contextual analysis | | | ||||
| params.timeout | Integer | timeout (ms) | 500ms | | ||||
|
||||
|
||||
Check failure on line 54 in dev-docs/modules/overtoneRtdProvider.md
|
||||
|
||||
Check failure on line 55 in dev-docs/modules/overtoneRtdProvider.md
|
||||
|
||||
Check failure on line 56 in dev-docs/modules/overtoneRtdProvider.md
|
||||
## Validation and Testing | ||||
|
||||
Validation of the Overtone RTD module is essential to ensure proper configuration. Use the provided test suite in the Prebid.js repository: | ||||
|
||||
File: `test/spec/modules/overtoneRtdProvider_spec.mjs` | ||||
|
||||
### Test Scenarios | ||||
|
||||
#### Successful Response | ||||
|
||||
**Input**: Valid domain with contextual data. | ||||
|
||||
**Expected Output**: Populated `categories` array with status `1`. | ||||
|
||||
#### Failed Request | ||||
|
||||
**Input**: Invalid domain or missing API key. | ||||
|
||||
**Expected Output**: Empty `categories` array with status `3`. | ||||
|
||||
#### Ignored URL | ||||
|
||||
**Input**: Domain not whitelisted by Overtone. | ||||
|
||||
**Expected Output**: Empty `categories` array with status `4`. | ||||
|
||||
--- | ||||
|
||||
## Support and Contact | ||||
|
||||
For questions, issues, or support, contact the Overtone technical team at **[email protected]**. | ||||
Check failure on line 87 in dev-docs/modules/overtoneRtdProvider.md
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.