Vidazoo bid adapter#1916
Conversation
| }); | ||
|
|
||
| it('should take default TTL', () => { | ||
| const serverResponse = utils.cloneJson(SERVER_RESPONSE); |
There was a problem hiding this comment.
In #1910 utils.cloneJson was renamed to utils.deepClone, updating this line should get the test passing again
modules/vidazooBidAdapter.js
Outdated
| try { | ||
| return [{ | ||
| requestId: bidId, | ||
| bidderCode: BIDDER_CODE, |
There was a problem hiding this comment.
bidderCode will be set automatically by bidderFactory now, this line can be dropped
There was a problem hiding this comment.
@matthewlane How will bidderFactory know our bidderCode?
There was a problem hiding this comment.
you call:
registerBidder({
code: BIDDER_CODE,
...
})
It keeps track internally.
deepClone instead of cloneJson
|
@matthewlane @dbemiller Thanks for all you help - tests are now passing. Anything else you need from me? |
|
@thewizarodofoz Changes look good. Currently getting back a |
|
@matthewlane Please use these params: bids: [{
bidder: 'vidazoo',
params: {
cId: '5a3a543645ea6b0004869360',
pId: '59ac17c192832d0011283fe3',
bidFloor: 0.0001
}
}]They will return a valid response. |
|
@jaiminpanchal27 Do you need anything from us? Anything we can do to finish this up? |
|
@thewizarodofoz |
|
@mkendall07 any updates on this? |
|
Hey @mkendall07, just wanted to let you know that @rmloveland commented on our docs pull request:
So it's your move now :-) |
modules/vidazooBidAdapter.js
Outdated
| const CURRENCY = 'USD'; | ||
| const TTL_SECONDS = 60 * 5; | ||
| export const URL = '//prebid.cliipa.com'; | ||
| // export const URL = '//localhost:8067'; |
There was a problem hiding this comment.
dead code should be removed.
modules/vidazooBidAdapter.js
Outdated
| method: 'GET', | ||
| url: `${URL}/prebid/${cId}`, | ||
| data: { | ||
| width: size[0], |
There was a problem hiding this comment.
this may break for double size arrays (ie [[300,250]] ). See https://github.com/prebid/Prebid.js/blob/master/src/utils.js#L113 for help parsing. You can use this function.
modules/vidazooBidAdapter.js
Outdated
| } | ||
| }); | ||
| }); | ||
| return Object.values(syncs); |
There was a problem hiding this comment.
Object.values isn't supported yet. Please re-write.
|
@thewizarodofoz |
removed dead code (debug url), handled sizes more safely, removed usage of Object.values
updates tests to fit changes in adapter
|
@mkendall07 Thanks! Waiting for your re-review. |
|
|
||
| it('should build request for each size', () => { | ||
| const requests = adapter.buildRequests([BID]); | ||
| console.log(JSON.stringify(requests)); |
|
@mkendall07 @jaiminpanchal27 good to go? |
|
Thanks for the support and coopororation everyone! |
Description of change
test parameters for validating bids
contact email of the adapter’s maintainer: devs@vidazoo.com
*official adapter submission
Other information