Skip to content

Commit f00dad3

Browse files
Documentation for 152media RTD module (prebid#6135)
* add documentation for 152media RTD module * fix linting errors in 152media RTD module documentation * Update dev-docs/modules/oftmediaRtdProvider.md Updat with disclaimer about external js file Co-authored-by: Muki Seiler <muuki88@users.noreply.github.com> * Update dev-docs/modules/oftmediaRtdProvider.md --------- Co-authored-by: Muki Seiler <muuki88@users.noreply.github.com>
1 parent df3d09f commit f00dad3

1 file changed

Lines changed: 86 additions & 0 deletions

File tree

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
layout: page_v2
3+
title: 152media RTD Module
4+
display_name: 152media
5+
description: Real-time data enrichment from 152media
6+
page_type: module
7+
module_type: rtd
8+
module_code : oftmediaRtdProvider
9+
enable_download : true
10+
sidebarType : 1
11+
---
12+
13+
# 152media (Oftmedia) Real-time Data Submodule
14+
15+
{:.no_toc}
16+
17+
* TOC
18+
{:toc}
19+
20+
## Overview
21+
22+
The 152media Real-time Data (RTD) module enhances programmatic advertising performance by providing contextual and audience-based data at runtime. Integrated into Prebid.js, it enables publishers to:
23+
24+
* Improve bid relevance with enriched targeting data
25+
* Filter unqualified or low-value bid requests
26+
* Leverage AI-based deal optimization
27+
28+
This module is maintained by [152media](mailto:hello@152media.com) and requires the global `rtdModule` to function.
29+
30+
{% include dev-docs/loads-external-javascript.md %}
31+
32+
## Usage
33+
34+
### Build
35+
36+
To include the 152media RTD module in your Prebid.js build:
37+
38+
```bash
39+
gulp build --modules="rtdModule,oftmediaRtdProvider"
40+
````
41+
42+
> **Note:** `rtdModule` is required as a dependency.
43+
44+
## Configuration
45+
46+
Use `pbjs.setConfig` to initialize the 152media RTD module with the following syntax:
47+
48+
```javascript
49+
pbjs.setConfig({
50+
realTimeData: {
51+
auctionDelay: 500, // Recommended setting
52+
dataProviders: [
53+
{
54+
name: "oftmedia",
55+
waitForIt: true, // Ensures data is available before auction starts
56+
params: {
57+
publisherId: "0653b3fc-a645-4bcc-bfee-b8982974dd53", // Required: Get this ID from 152media
58+
keywords: ["red", "blue", "white"], // Optional: Contextual keywords
59+
bidderCode: "appnexus", // Required: Targeted bidder
60+
enrichRequest: true // Optional: Adds additional targeting fields
61+
}
62+
}
63+
]
64+
}
65+
});
66+
```
67+
68+
## Parameters
69+
70+
| Parameter | Type | Description | Default |
71+
| ---------------------- | ---------------- | ------------------------------------------------------------ | ------------ |
72+
| `name` | String | Always `"oftmedia"` | |
73+
| `waitForIt` | Boolean | Ensures auction is delayed until data is ready | `false` |
74+
| `params.publisherId` | String | Your unique Publisher ID provided by 152media | **Required** |
75+
| `params.keywords` | Array of Strings | Contextual keywords for enhancing relevance | `[]` |
76+
| `params.bidderCode` | String | Bidder code that should receive the enriched data | **Required** |
77+
| `params.enrichRequest` | Boolean | Enriches the request object with extra targeting information | `false` |
78+
| `params.timeout` | Integer (ms) | Timeout for data retrieval (optional) | `1000` |
79+
80+
## Output
81+
82+
When active, the module appends targeting and/or deal data into the ad unit targeting objects and/or modifies the request payload, depending on the configuration and support by the selected bidder.
83+
84+
## Support
85+
86+
For questions, help, or to obtain a publisher ID, please contact [hello@152media.com](mailto:hello@152media.com).

0 commit comments

Comments
 (0)