-
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
Vidazoo bid adapter #1916
Vidazoo bid adapter #1916
Conversation
}); | ||
|
||
it('should take default TTL', () => { | ||
const serverResponse = utils.cloneJson(SERVER_RESPONSE); |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bidderCode
will be set automatically by bidderFactory
now, this line can be dropped
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.
@matthewlane How will bidderFactory
know our bidderCode
?
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)); |
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.
@thewizarodofoz remove console.log
@mkendall07 @jaiminpanchal27 good to go? |
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.
LGTM
Thanks for the support and coopororation everyone! |
* Adding Vidazoo bid adapter * Adding Vidazoo bid adapter tests * production url * Update vidazooBidAdapter_spec.js deepClone instead of cloneJson * Update vidazooBidAdapter.js * Update vidazooBidAdapter_spec.js * Update vidazooBidAdapter.js removed dead code (debug url), handled sizes more safely, removed usage of Object.values * Update vidazooBidAdapter_spec.js updates tests to fit changes in adapter * Update vidazooBidAdapter.js * Update vidazooBidAdapter.js * Update vidazooBidAdapter_spec.js
Description of change
test parameters for validating bids
contact email of the adapter’s maintainer: devs@vidazoo.com
*official adapter submission
Other information