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

Eplanning Bid Adapter: add support for video #9044

Merged
merged 6 commits into from
Oct 11, 2022
Merged

Eplanning Bid Adapter: add support for video #9044

merged 6 commits into from
Oct 11, 2022

Conversation

ChrisHuie
Copy link
Collaborator

Resubmit of pr #9020

@ChrisHuie
Copy link
Collaborator Author

@fndigrazia looks like there are some unit tests failing if you can check.

@fndigrazia
Copy link
Contributor

Hello @ChrisHuie, thanks for creating the pr. The tests failed because you have to delete line 121 "ad: ad.adm,". In the original pr that line was deleted.

@ChrisHuie
Copy link
Collaborator Author

Hello @ChrisHuie, thanks for creating the pr. The tests failed because you have to delete line 121 "ad: ad.adm,". In the original pr that line was deleted.

Fixed. Thanks 🙏

Copy link
Collaborator

@osazos osazos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

function cleanName(name) {
return name.replace(/_|\.|-|\//g, '').replace(/\)\(|\(|\)|:/g, '_').replace(/^_+|_+$/g, '');
}

function getSpaces(bidRequests, ml) {
let impType = bidRequests.reduce((previousBits, bid) => (bid.mediaTypes && bid.mediaTypes[VIDEO]) ? (bid.mediaTypes[VIDEO].context == 'outstream' ? (previousBits | 2) : (previousBits | 1)) : previousBits, 0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required, but for better readability, would you want to replace the part
bid.mediaTypes[VIDEO].context == 'outstream' ? (previousBits | 2) : (previousBits | 1)

by

bid.mediaTypes[VIDEO].context == 'outstream' ? (previousBits | VAST_OUTSTREAM) : (previousBits | VAST_INSTREAM)

@osazos osazos merged commit 7287486 into master Oct 11, 2022
@osazos osazos deleted the eplanningPR branch October 11, 2022 11:07
JacobKlein26 pushed a commit to nextmillenniummedia/Prebid.js that referenced this pull request Feb 9, 2023
* add video

* move up imptypes logic

* fix linting

* update curly braces

* fix spaces linting

* fix line
jorgeluisrocha pushed a commit to jwplayer/Prebid.js that referenced this pull request May 23, 2023
* add video

* move up imptypes logic

* fix linting

* update curly braces

* fix spaces linting

* fix line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants