Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions dev-docs/modules/overtoneRtdProvider.md
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

View workflow job for this annotation

GitHub Actions / run markdownlint

Bare URL used

dev-docs/modules/overtoneRtdProvider.md:11:164 MD034/no-bare-urls Bare URL used [Context: "[email protected]"] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md034.md
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
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.


## Usage


Check failure on line 15 in dev-docs/modules/overtoneRtdProvider.md

View workflow job for this annotation

GitHub Actions / run markdownlint

Multiple consecutive blank lines

dev-docs/modules/overtoneRtdProvider.md:15 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md012.md
Comment on lines +14 to +15
Copy link
Contributor

Choose a reason for hiding this comment

The 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

View workflow job for this annotation

GitHub Actions / run markdownlint

Code block style

dev-docs/modules/overtoneRtdProvider.md:31 MD046/code-block-style Code block style [Expected: indented; Actual: fenced] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md046.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

View workflow job for this annotation

GitHub Actions / run markdownlint

Multiple consecutive blank lines

dev-docs/modules/overtoneRtdProvider.md:54 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md012.md

Check failure on line 55 in dev-docs/modules/overtoneRtdProvider.md

View workflow job for this annotation

GitHub Actions / run markdownlint

Multiple consecutive blank lines

dev-docs/modules/overtoneRtdProvider.md:55 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 3] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md012.md

Check failure on line 56 in dev-docs/modules/overtoneRtdProvider.md

View workflow job for this annotation

GitHub Actions / run markdownlint

Multiple consecutive blank lines

dev-docs/modules/overtoneRtdProvider.md:56 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 4] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md012.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

View workflow job for this annotation

GitHub Actions / run markdownlint

Bare URL used

dev-docs/modules/overtoneRtdProvider.md:87:77 MD034/no-bare-urls Bare URL used [Context: "[email protected]"] https://github.com/DavidAnson/markdownlint/blob/v0.34.0/doc/md034.md
Loading