-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New adapter - Playstream #6454
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
+137
−0
Merged
New adapter - Playstream #6454
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
54d195b
New adapter - Playstream
YashAdsolut aa53be2
Merge branch 'prebid:master' into master
KushAdsolut ed94154
Merge branch 'prebid:master' into master
KushAdsolut 6c10562
Merge branch 'prebid:master' into master
KushAdsolut 4efb3ba
update Playstream bidder documentation: add missing gvl_id and remove…
YashAdsolut 7d1b9ed
add missing line break in Playstream bidder documentation
YashAdsolut 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,137 @@ | ||
| --- | ||
| layout: bidder | ||
| title: Playstream Media | ||
| description: Prebid.js Playstream Media Bid Adapter | ||
| biddercode: playstream | ||
| pbjs: true | ||
| media_types: video, banner | ||
| multiformat_supported: will-bid-on-one | ||
| userIds: all | ||
| fpd_supported: true | ||
| tcfeu_supported: true | ||
| gvl_id: 1524 | ||
| usp_supported: some | ||
| coppa_supported: some | ||
| schain_supported: true | ||
| prebid_member: false | ||
| ortb_blocking_supported: some | ||
| floors_supported: true | ||
| sidebarType: 1 | ||
| --- | ||
|
|
||
| ## Description | ||
|
|
||
| **Playstream Media** Prebid.js adapter supports **banner** and **video** demand using an **OpenRTB 2.x** request/response flow. | ||
|
|
||
| The adapter sends a **POST** request to: | ||
|
|
||
| - `https://<host>/server/adserver/hb?adUnitId=<adUnitId>&publisherId=<publisherId>` | ||
|
|
||
| > Note: `host` should be a hostname only (no protocol, no path). The adapter uses HTTPS. | ||
| > | ||
| > Note: `getUserSyncs()` currently returns an empty array (no user sync pixels are triggered by this adapter). | ||
|
|
||
| ## Bid Params | ||
|
|
||
| {: .table .table-bordered .table-striped } | ||
|
|
||
| | Name | Scope | Description | Example | Type | | ||
| |:----------------|:---------|:-------------------------------------------------------------------------|:-------------------------------|:---------| | ||
| | `host` | required | Playstream bidder host (hostname only; no protocol/path) | `'exchange.ortb.net'` | `string` | | ||
| | `adUnitId` | required | adUnit ID from Playstream Platform | `'697871ac0ec1c6100e1f9121'` | `string` | | ||
| | `publisherId` | required | Publisher ID from Playstream Platform | `'697871ac0ec1c6100e1f9122'` | `string` | | ||
| | `type` | required | Type of request: `'video'` or `'banner'` | `'banner'` | `string` | | ||
| | `price` | optional | Bid floor in `USD` only (defaults to Playstream dashboard configuration) | `0.5` | `number` | | ||
| | `ip` | optional | User IP (targeting) | `'192.168.1.1'` | `string` | | ||
| | `maxAdDuration` | optional | Max ad pod duration (seconds) | `120` | `number` | | ||
| | `maxSlotPerPod` | optional | Max ad slots per pod | `3` | `number` | | ||
|
|
||
| ## Required Params | ||
|
|
||
| Playstream Media client-side Prebid.js adapter requires only: | ||
|
|
||
| - `host` | ||
| - `adUnitId` | ||
| - `publisherId` | ||
| - `type` | ||
|
|
||
| ## Supported Media Types | ||
|
|
||
| This adapter supports only: | ||
|
|
||
| - `banner` | ||
| - `video` | ||
|
|
||
| It does **not** support `native` or `audio`. | ||
|
|
||
| ## First Party Data and User IDs | ||
|
|
||
| - **FPD (First Party Data):** When available, the adapter forwards `bidderRequest.ortb2` and impression-level `bidRequest.ortb2Imp` into the OpenRTB request (`site/app/user/device/regs/ext`). | ||
| - **User IDs:** If your Prebid build includes User ID modules, their EIDs typically appear under `ortb2.user.ext.eids` and are forwarded in the OpenRTB request. | ||
|
|
||
| ## Privacy Support Notes | ||
|
|
||
| - **TCF-EU (GDPR):** If Prebid populates consent into `ortb2.regs` / `ortb2.user.ext.consent`, the adapter forwards it. | ||
| - **USP/CCPA & COPPA:** If these signals are present in `ortb2.regs` (or related fields), they will be forwarded as part of the OpenRTB request. | ||
|
|
||
| ## schain Support | ||
|
|
||
| If the `schain` module is enabled in Prebid, the adapter forwards supply chain information in the OpenRTB request (typically `source.ext.schain`). | ||
|
|
||
| ## Sample Bids | ||
|
|
||
| ### Display | ||
|
|
||
| Replace the values below with the Host / Ad Unit ID / Publisher ID shared by the Admin/Support team. Do not use the sample IDs in production. | ||
|
|
||
| ```javascript | ||
| var adUnits = [ | ||
| { | ||
| code: 'div-1', | ||
| mediaTypes: { | ||
| banner: { | ||
| sizes: [[300, 250], [728, 90]] | ||
| } | ||
| }, | ||
| sizes: [[300, 250], [728, 90]], | ||
| bids: [{ | ||
| bidder: 'playstream', | ||
| params: { | ||
| host: 'asia-southeast.ortb.net', // Provided by Admin/Support team | ||
| adUnitId: '697871ac0ec1c6100e1f9121', // Provided by Admin/Support team | ||
| publisherId: '697871ac0ec1c6100e1f9122', // Provided by Admin/Support team | ||
| type: 'banner', | ||
| } | ||
| }] | ||
| } | ||
| ]; | ||
| ``` | ||
|
|
||
| ### Video | ||
|
|
||
| Replace the values below with the Host / Ad Unit ID / Publisher ID shared by the Admin/Support team. Do not use the sample IDs in production. | ||
|
|
||
| ```javascript | ||
| var adUnits = [ | ||
| { | ||
| code: 'div-2', | ||
| mediaTypes: { | ||
| video: { | ||
| context: 'instream', | ||
| playerSize: [640, 360] | ||
| } | ||
| }, | ||
| sizes: [640, 360], | ||
| bids: [{ | ||
| bidder: 'playstream', | ||
| params: { | ||
| host: 'asia-southeast.ortb.net', // Provided by Admin/Support team | ||
| adUnitId: '697871ac0ec1c6100e1f9121', // Provided by Admin/Support team | ||
| publisherId: '697871ac0ec1c6100e1f9122', // Provided by Admin/Support team | ||
| type: 'video', | ||
| price: 0.4 | ||
| } | ||
| }] | ||
| } | ||
| ]; | ||
| ``` | ||
Oops, something went wrong.
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.