-
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
Dianomi Bid adapter: add new bid adapter #8519
Conversation
… with ortb native 1.2
removed nested request in buildRequests/native object to align better with ortb native 1.2
update md, tried to make it similar to adform's
added userSync and allow changing of all endpoints
updated Maintainer email
…ld be testing that
added tests, need to look at coppa tests still as not sure if we should be testing that
Is there any update here? Can someone review please. |
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.
Hi @DianomiJH,
While running the unit tests locally, I see quite a few tests are failing. Can you run this command, gulp test
locally and check if all tests pass?
I see the following messages when I run the tests.
LOG: '[Failure f2b4b2dac1-21] XHR mock state after failure (for test 'Dianomi adapter buildRequests bids price floors should add correct floor values'): 0 requests'
LOG: '[Failure f2b4b2dac1-22] XHR mock state after failure (for test 'Dianomi adapter buildRequests bids multiple media types should use all configured media types for bidding'): 0 requests'
LOG: '[Failure f2b4b2dac1-23] XHR mock state after failure (for test 'Dianomi adapter buildRequests bids banner should convert sizes to openrtb format'): 0 requests'
LOG: '[Failure f2b4b2dac1-24] XHR mock state after failure (for test 'Dianomi adapter buildRequests bids video should pass video mediatype config'): 0 requests'
LOG: '[Failure f2b4b2dac1-25] XHR mock state after failure (for test 'Dianomi adapter buildRequests bids native assets should set correct asset id'): 0 requests'
LOG: '[Failure f2b4b2dac1-26] XHR mock state after failure (for test 'Dianomi adapter buildRequests bids native assets should add required key if it is necessary'): 0 requests'
LOG: '[Failure f2b4b2dac1-27] XHR mock state after failure (for test 'Dianomi adapter buildRequests bids native assets should map img and data assets'): 0 requests'
LOG: '[Failure f2b4b2dac1-28] XHR mock state after failure (for test 'Dianomi adapter buildRequests bids native assets should utilise aspect_ratios'): 0 requests'
LOG: '[Failure f2b4b2dac1-29] XHR mock state after failure (for test 'Dianomi adapter buildRequests bids native assets should not throw error if aspect_ratios config is not defined'): 0 requests'
LOG: '[Failure f2b4b2dac1-30] XHR mock state after failure (for test 'Dianomi adapter buildRequests bids native assets icon/image sizing should flatten sizes and utilise first pair'): 0 requests'
Hi @Fawke , that's odd, i feel like they were working when i ran them before, I'll look into it and get that fixed for you :) |
small change to tests
Hi @Fawke , running the tests locally and they are all passing: |
Hi @DianomiJH, I think in Prebid v7, we can't get reference to the ortb2 object from I think the test are passing for you locally because you haven't pulled in the latest changes from master after Prebid v7 release. Please pull in the master branch and then run the test, you'd see them fail. To fix them, pull the ortb2 info from bidrequest object. |
Hi @Fawke , Thanks for the info, i totally missed the v7 release :) i've updated the code and tests to work with the new version. Let me know if you need anything else |
* start of dianomi adapter * improving adapter * Rename and add the missing "i" * our bidder supports native (or it will) * Updated dianomiAdapter * dianomi adapter update endpoint and smartadId paramter * removed nested request in buildRequests/native object to align better with ortb native 1.2 * dianomi adapter upddate, remove native {request} nesting * update md, tried to make it similar to adform's * updated urls to live endpoints * a couple little tweaks to md * added userSync and allow changing of endpoint * updated Maintainer email * added tests, need to look at coppa tests still as not sure if we should be testing that * couple of test changes * small change to tests * switched to v7 Co-authored-by: Michael Stevens <[email protected]> Co-authored-by: Chris Almeida-Symons <[email protected]> Co-authored-by: Martin Hill <[email protected]>
* start of dianomi adapter * improving adapter * Rename and add the missing "i" * our bidder supports native (or it will) * Updated dianomiAdapter * dianomi adapter update endpoint and smartadId paramter * removed nested request in buildRequests/native object to align better with ortb native 1.2 * dianomi adapter upddate, remove native {request} nesting * update md, tried to make it similar to adform's * updated urls to live endpoints * a couple little tweaks to md * added userSync and allow changing of endpoint * updated Maintainer email * added tests, need to look at coppa tests still as not sure if we should be testing that * couple of test changes * small change to tests * switched to v7 Co-authored-by: Michael Stevens <[email protected]> Co-authored-by: Chris Almeida-Symons <[email protected]> Co-authored-by: Martin Hill <[email protected]>
* start of dianomi adapter * improving adapter * Rename and add the missing "i" * our bidder supports native (or it will) * Updated dianomiAdapter * dianomi adapter update endpoint and smartadId paramter * removed nested request in buildRequests/native object to align better with ortb native 1.2 * dianomi adapter upddate, remove native {request} nesting * update md, tried to make it similar to adform's * updated urls to live endpoints * a couple little tweaks to md * added userSync and allow changing of endpoint * updated Maintainer email * added tests, need to look at coppa tests still as not sure if we should be testing that * couple of test changes * small change to tests * switched to v7 Co-authored-by: Michael Stevens <[email protected]> Co-authored-by: Chris Almeida-Symons <[email protected]> Co-authored-by: Martin Hill <[email protected]>
Type of change
Description of change
New bid adapter for Dianomi plc.
Native example
Banner example
Be sure to test the integration with your adserver using the Hello World sample page.
[email protected]
For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:
Dianomi bid adapter: new bid adapter prebid.github.io#3825
Other information