Skip to content
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

Merged
merged 13 commits into from
Oct 20, 2020

Conversation

curlyblueeagle
Copy link
Collaborator

This PR builds the video ORTB and also refines video param validation


const builtServerRequests = spec.buildRequests(bidRequests, {});

expect(JSON.parse(builtServerRequests[0].data)).to.deep.equal(ttxRequest);
Copy link
Collaborator Author

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.

video: {
playerSize: [300, 250],
context: 'outstream',
placement: '2'

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

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,

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

@curlyblueeagle curlyblueeagle merged commit 660e716 into feature/video Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants