Conversation
Innity Adapter
jaiminpanchal27
left a comment
There was a problem hiding this comment.
@engtat Please check the comments.
Thanks.
src/adapters/innity.js
Outdated
| var bidObject = {}, callbackID, libURL = window.location.protocol + "//cdn.innity.net/frame_util.js"; | ||
| callbackID = response.callback_uid; | ||
| if (response.cpm > 0) { | ||
| bidObject = bidfactory.createBid(CONSTANTS.STATUS.GOOD); |
There was a problem hiding this comment.
use bidRequest object as second argument to match bid request/response pair
src/adapters/innity.js
Outdated
| bidObject.width = response.width; | ||
| bidObject.height = response.height; | ||
| } else { | ||
| bidObject = bidfactory.createBid(CONSTANTS.STATUS.NO_BID); |
There was a problem hiding this comment.
use bidRequest object as second argument to match bid request/response pair
test/spec/adapters/innity_spec.js
Outdated
| var utils = require('src/utils'); | ||
| var CONSTANTS = require('src/constants.json'); | ||
|
|
||
| window.pbjs = window.pbjs || {}; |
There was a problem hiding this comment.
use
|
|
||
| it('bid request for single placement', function () { | ||
|
|
||
| var params = { |
There was a problem hiding this comment.
Format this file properly.
adapters.json
Outdated
| "gumgum", | ||
| "hiromedia", | ||
| "indexExchange", | ||
| "innity", |
test/spec/adapters/innity_spec.js
Outdated
| var adapter = require('src/adapters/innity'); | ||
| var adLoader = require('src/adloader'); | ||
| var bidmanager = require('src/bidmanager'); | ||
| var utils = require('src/utils'); |
There was a problem hiding this comment.
You are not using utils, CONSTANTS anywhere. Remove them if not required
test/spec/adapters/innity_spec.js
Outdated
| if (typeof(pbjs._bidsRequested) === "undefined") { | ||
| pbjs._bidsRequested = []; | ||
| } | ||
| if (typeof(pbjs._adsReceived) === "undefined") { |
There was a problem hiding this comment.
Why do you need _adsReceived here ? How are you using this ?
- Align innity in adapters.json - Format innity_spec.js - Add bidRequest into innity.js
|
@jaiminpanchal27 We have made the necessary changes, thanks. |
|
LGTM. |
|
This is merged into master. Please submit a PR to the docs repo to add a file for your adapter to the bidders directory so your adapter's params will appear on the bidders page. Thank you for contributing |
…built * 'master' of https://github.com/prebid/Prebid.js: (38 commits) Add optional domain parameter to AdButler adapter (prebid#1078) Send transactionID to Criteo Services (prebid#1113) Fix `buildMasterVideoTagFromAdserverTag()` not selecting winning bid (prebid#1106) Remove placement size selection and filtering (prebid#1107) revert `srcdoc` change (prebid#1130) Add new Adapter- Beachfront Media (prebid#1062) Fixes SpringServe adapter (prebid#1101) Update Widespace request param (prebid#1098) - New Adapter: Innity (prebid#1074) Update Roxot prebid analytic adapter (prebid#1034) Yarn Package Manager (prebid#1109) allow writing into current document if prebid is loaded inside an iframe (prebid#1066) Adapter bug fix (prebid#1096) fix typo added pr review process and governance model (prebid#1103) added support for sampling in ga and base adapter, fixed up some tests (prebid#1011) Add Inneractive adapter (prebid#1048) Add alias freewheel-ssp to stickyadstv bidder adapter (prebid#1043) Add Facebook Audience Network adapter (prebid#1068) Add Atomx support (prebid#1056) ...
support for gzip compression for ssp bid requests to ssp endpoints
Type of change
Description of change
Hi, new Innity Prebid.js adapter
Other information
Thanks.