-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Documentation for 152media RTD module #6135
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
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
89de0a0
add documentation for 152media RTD module
arezitopedia cb741ed
fix linting errors in 152media RTD module documentation
arezitopedia 215b5f6
Update dev-docs/modules/oftmediaRtdProvider.md
arezitopedia 9a09109
Update dev-docs/modules/oftmediaRtdProvider.md
muuki88 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,86 @@ | ||
| --- | ||
| layout: page_v2 | ||
| title: 152media RTD Module | ||
| display_name: 152media | ||
| description: Real-time data enrichment from 152media | ||
| page_type: module | ||
| module_type: rtd | ||
| module_code : oftmediaRtdProvider | ||
| enable_download : true | ||
| sidebarType : 1 | ||
| --- | ||
|
|
||
| # 152media (Oftmedia) Real-time Data Submodule | ||
|
|
||
| {:.no_toc} | ||
|
|
||
| * TOC | ||
| {:toc} | ||
|
|
||
| ## Overview | ||
|
|
||
| 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: | ||
|
|
||
| * Improve bid relevance with enriched targeting data | ||
| * Filter unqualified or low-value bid requests | ||
| * Leverage AI-based deal optimization | ||
|
|
||
| This module is maintained by [152media](mailto:hello@152media.com) and requires the global `rtdModule` to function. | ||
|
|
||
|
arezitopedia marked this conversation as resolved.
|
||
| {% include dev-docs/loads-external-javascript.md %} | ||
|
|
||
| ## Usage | ||
|
|
||
| ### Build | ||
|
|
||
| To include the 152media RTD module in your Prebid.js build: | ||
|
|
||
| ```bash | ||
| gulp build --modules="rtdModule,oftmediaRtdProvider" | ||
| ```` | ||
|
|
||
| > **Note:** `rtdModule` is required as a dependency. | ||
|
|
||
| ## Configuration | ||
|
|
||
| Use `pbjs.setConfig` to initialize the 152media RTD module with the following syntax: | ||
|
|
||
| ```javascript | ||
| pbjs.setConfig({ | ||
| realTimeData: { | ||
| auctionDelay: 500, // Recommended setting | ||
| dataProviders: [ | ||
| { | ||
| name: "oftmedia", | ||
| waitForIt: true, // Ensures data is available before auction starts | ||
| params: { | ||
| publisherId: "0653b3fc-a645-4bcc-bfee-b8982974dd53", // Required: Get this ID from 152media | ||
| keywords: ["red", "blue", "white"], // Optional: Contextual keywords | ||
| bidderCode: "appnexus", // Required: Targeted bidder | ||
| enrichRequest: true // Optional: Adds additional targeting fields | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| }); | ||
| ``` | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter | Type | Description | Default | | ||
| | ---------------------- | ---------------- | ------------------------------------------------------------ | ------------ | | ||
| | `name` | String | Always `"oftmedia"` | | | ||
| | `waitForIt` | Boolean | Ensures auction is delayed until data is ready | `false` | | ||
| | `params.publisherId` | String | Your unique Publisher ID provided by 152media | **Required** | | ||
| | `params.keywords` | Array of Strings | Contextual keywords for enhancing relevance | `[]` | | ||
| | `params.bidderCode` | String | Bidder code that should receive the enriched data | **Required** | | ||
| | `params.enrichRequest` | Boolean | Enriches the request object with extra targeting information | `false` | | ||
| | `params.timeout` | Integer (ms) | Timeout for data retrieval (optional) | `1000` | | ||
|
|
||
| ## Output | ||
|
|
||
| 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. | ||
|
|
||
| ## Support | ||
|
|
||
| For questions, help, or to obtain a publisher ID, please contact [hello@152media.com](mailto:hello@152media.com). | ||
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.
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.
Is
enable_download: truemeant to signify to publishers that this module employs third-party script injection as a part of its operation?And if true, does this meet the definition of "prominent disclosure"?
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.
No no 😁 It means that it can be downloaded from the download page. True is a solid value!
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.
@muuki88 - thanks!
Do you know if, as this documentation currently stands, there is enough "disclosure" that the RTD module downloads third-party scripts as a part of its work? It looks like pubs have to register with 152media to work with them and their module, so maybe it becomes obvious at that point. Curious what you think.
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.
You are right 👍 Thanks for pointing this out. Added a suggestion below
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.
Perfect, I have updated the doc with the suggestion