forked from prebid/prebid.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
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
dailymotion.md file added for DailymotionBidAdapter #1
Closed
Closed
Changes from 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
54c30cf
dailymotion.md file added
Aditi0101 422dfa6
.md updated
Aditi0101 cdd415f
code name updated
Aditi0101 b287617
docs(dailymotion-docs): better indentation & spacings
f3a26c5
xid explaination updated
Aditi0101 db85372
player size updated
Aditi0101 9afdfef
registration email updated
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 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 on **ad-leo-engineering@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 video XID and should be provided to have better contextual data and higher fillrate | ||
kvnsw marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# 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: [640, 480], | ||
}, | ||
}, | ||
bids: [{ | ||
bidder: "dailymotion", | ||
params: {} | ||
}] | ||
} | ||
]; | ||
``` | ||
|
||
|
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.
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.
Same as : https://github.com/dailymotion-oss/Prebid.js/pull/1/files#r1450246334