-
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
initial version of ozone adapter for review #3307
initial version of ozone adapter for review #3307
Conversation
@bretg - do you know if this will get assigned to someone to review automatically ? |
@hhhjort fyi |
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.
@afsheenb See comments. Also please add unit tests
modules/ozoneBidAdapter.js
Outdated
*/ | ||
isBidRequestValid(bid) { | ||
if (!(bid.params.hasOwnProperty('placementId'))) { | ||
console.log('OZONE BID ADAPTER VALIDATION FAILED : missing placementId : siteId, placementId and publisherId are REQUIRED'); |
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.
Use utils.logInfo here and all other places where console.log is used
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.
👍
modules/ozoneBidAdapter.js
Outdated
|
||
const BIDDER_CODE = 'ozone'; | ||
|
||
var OZONEURI = 'https://elb.the-ozone-project.com/openrtb2/auction'; |
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.
Here const can be used. Also use let/const wherever applicable
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.
👍
modules/ozoneBidAdapter.js
Outdated
|
||
export const spec = { | ||
code: BIDDER_CODE, | ||
supportedFormat: ['banner'], |
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.
banner is default. No need to add supportedFormat if you only support banner
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.
👍
Thanks for the review @jaiminpanchal27, we've updated the adapter with your recommended changes. |
* initial version of ozone adapter for review * updates made per prebid.org feedback * Added a new line as failed prebid.org automated test * Unit Tests for Ozone Adaptor * updated URIs to include https protocol which failed tests
Type of change
Description of change
Submitting the first version of the Ozone Project's Prebid.js adapter for review and comments.