-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Adding Video Support to Conversant Adapter #1153
Conversation
Hey. Since your params are changing, could you also open a PR to update the docs? We'll also need some valid bid params we can use for testing. See the PR process |
Hi @dbemiller you can use site ID 108060 to test with. And thank for the info on the doc PR, will do. |
I'm not seeing any valid bids coming from your adapter... using this cannibalized source code from the example page:
Am I missing something? |
src/adapters/conversant.js
Outdated
var banner = Array.isArray(format) ? {format: format} : {w: adW, h: adH}; | ||
|
||
if(pos !== '') | ||
banner.pos = pos; |
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.
The code coverage on all these optional params is pretty thin... these could do with some more unit tests. Definitely less than 80% coverage on the changed code here.
src/adapters/conversant.js
Outdated
adW = bidSizes[0][0]; | ||
adH = bidSizes[0][1]; | ||
format = []; | ||
utils._each(bidSizes,function(bidSize){ |
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.
Lots of style issues (here and throughout). Please conform to standard javascript, except for the exclusions listed here . You'll probably be forced to by the CI anyway, since #1111 will probably be merged very soon.
PR for Docs: prebid/prebid.github.io#240 |
For testing video, please test with site_id 88563. |
Please fix linting errors. You can use |
@trex-conversant After that merge, the diff shows 211 files changed. Please rebase, or open a new PR, to get a clean diff. |
@trex-conversant Bids are coming back invalid with site_id 88563... |
Unfortunate timing, the test campaign just happened to end today, but I've renewed it. It should be good now. |
@trex-conversant Looks like another conflict popped up |
* Added support for video * Added tag_id parameter * Added position parameter * Changed API endpoint * Added support for multiple sizes per ad unit
* Added support for video * Added tag_id parameter * Added position parameter * Changed API endpoint * Added support for multiple sizes per ad unit
* Added support for video * Added tag_id parameter * Added position parameter * Changed API endpoint * Added support for multiple sizes per ad unit
Type of change
Description of change
Added in support for video, the bulk of this PR. Added in additional parameters which required minor changes. Now supporting multiple sizes per ad unit via new API endpoint.
Other information