forked from prebid/prebid.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dailymotion Bid Adaptor: initial release
- Loading branch information
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,80 @@ | ||
--- | ||
layout: bidder | ||
title: Dailymotion | ||
description: Dailymotion Prebid Bidder Adapter | ||
pbjs: true | ||
pbs: false | ||
biddercode: dailymotion | ||
media_types: video | ||
gvl_id: 573 | ||
tcfeu_supported: true | ||
usp_supported: true | ||
coppa_supported: true | ||
deals_supported: true | ||
floors_supported: true | ||
sidebarType: 1 | ||
safeframes_ok: true | ||
ortb_blocking_supported: false | ||
--- | ||
|
||
### Registration | ||
|
||
To use the adapter with any non-test request, you first need to ask an API key from Dailymotion. Please contact us through **DailymotionPrebid.js@dailymotion.com**. | ||
|
||
This API key will ensure proper identification of your inventory and allow you to get real bids. | ||
|
||
# Configuration options | ||
|
||
Before calling this adapter, you need to set its configuration with a call to setConfig like this: | ||
|
||
``` | ||
config.setConfig({ | ||
dailymotion: { | ||
api_key: 'test_api_key', | ||
position: 'test_position', | ||
xid: 'x123456' | ||
} | ||
}); | ||
``` | ||
|
||
This call must be made before each auction. Here's a description of each parameter: | ||
* `api_key` is your publisher API key. For testing purpose, you can use "dailymotion-testing". | ||
* `position` parameter is the ad position in the video and must either be "preroll", "midroll" or "postroll". | ||
* `xid` is the Dailymotion video identifier and should be provided to have better contextual data and higher fillrate. | ||
|
||
# Test Parameters | ||
|
||
By setting the following configuration options, you'll get a constant response to any request to validate your adapter integration: | ||
|
||
``` | ||
config.setConfig({ | ||
dailymotion: { | ||
api_key: 'dailymotion-testing', | ||
position: 'preroll' | ||
} | ||
}); | ||
``` | ||
|
||
Please note that failing to set these configuration options will result in the adapter not bidding at all. | ||
|
||
## Sample video AdUnit | ||
|
||
``` | ||
const adUnits = [ | ||
{ | ||
code: 'test-ad-unit', | ||
mediaTypes: { | ||
video: { | ||
context: 'instream', | ||
playerSize: [1280, 720], | ||
}, | ||
}, | ||
bids: [{ | ||
bidder: "dailymotion", | ||
params: {} | ||
}] | ||
} | ||
]; | ||
``` | ||
|
||
|