-
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
XCH-1994: Construct Video ORTB #33
Conversation
…Across/Prebid.js into XCH_1994_construct_video_ortb
|
||
const builtServerRequests = spec.buildRequests(bidRequests, {}); | ||
|
||
expect(JSON.parse(builtServerRequests[0].data)).to.deep.equal(ttxRequest); |
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.
Changing assert to compare the built request rather than server payload serverRequest
since the latter has ttxRequest
stringified and therefore order matters making the tests very brittle.
modules/33acrossBidAdapter.md
Outdated
video: { | ||
playerSize: [300, 250], | ||
context: 'outstream', | ||
placement: '2' |
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.
make it as positives integer
playerSize: [300, 250], | ||
context: 'outstream', | ||
placement: '2' | ||
... // Aditional ORTB video params |
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.
since mimes and protocols are required, better to put it in the doc
ad: { | ||
video: { | ||
content: bid.vastXml, | ||
player_height: bid.playerHeight, |
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.
not sure the bid.playerHeight|Width is standard, that may exist in APNX adapter only, please double check. if it does not exists, then just suggest with w & h
This PR builds the video ORTB and also refines video param validation