-
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
Add Sortable bid adapter #2824
Add Sortable bid adapter #2824
Conversation
- [x] New bidder adapter This change adds the Sortable adapter to Prebid.js.
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 @shannonAB,
Thanks for submitting this adapter. Overall, everything seems good. There is a unit test that should be reviewed as well as a potential update based on the feedback that was made in the related docs PR.
Once these items are addressed; we should be good to merge.
|
||
it('sends screen dimensions', () => { | ||
expect(requestBody.site.device.w).to.equal(800); | ||
expect(requestBody.site.device.h).to.equal(600); |
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.
These checks are failing when I run gulp test
locally. Could you look into a different approach than hard-coded values?
modules/sortableBidAdapter.js
Outdated
supportedMediaTypes: [BANNER], | ||
|
||
isBidRequestValid: function(bid) { | ||
const haveSiteId = !!config.getConfig('sortableId'); |
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 lieu of the feedback provided on the docs PR (prebid/prebid.github.io#872); this may need to be updated.
Hi @jsnellbaker , I'll be helping out while Shannon is on vacation for the next few days. I've made the requested changes, let me know what you think. |
Hi @bgahagan, Thanks for making the updates. Those changes look good; however when I went to retest the adapter, I'm now getting a Bad Request response from the server. The only error it's providing is Below is a copy of the request object:
|
Hi @jsnellbaker , apologies, I when I updated the |
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 making the updates; the test deliveries are working fine now.
@bgahagan & @shannonAB |
* Add Sortable bid adapter - [x] New bidder adapter This change adds the Sortable adapter to Prebid.js. * move global sortable config into its own object * update siteId * config can be undefined when module loads * support floor param
* Add Sortable bid adapter - [x] New bidder adapter This change adds the Sortable adapter to Prebid.js. * move global sortable config into its own object * update siteId * config can be undefined when module loads * support floor param
* Add Sortable bid adapter - [x] New bidder adapter This change adds the Sortable adapter to Prebid.js. * move global sortable config into its own object * update siteId * config can be undefined when module loads * support floor param
* Add Sortable bid adapter - [x] New bidder adapter This change adds the Sortable adapter to Prebid.js. * move global sortable config into its own object * update siteId * config can be undefined when module loads * support floor param
* Add Sortable bid adapter - [x] New bidder adapter This change adds the Sortable adapter to Prebid.js. * move global sortable config into its own object * update siteId * config can be undefined when module loads * support floor param
Type of change
Description of change
Add the Sortable bidder adapter.
Be sure to test the integration with your adserver using the Hello World sample page.
For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:
Other information