-
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
- New Adapter: Innity #1074
- New Adapter: Innity #1074
Conversation
Innity Adapter
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.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use
|
||
it('bid request for single placement', function () { | ||
|
||
var params = { |
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.
Format this file properly.
adapters.json
Outdated
@@ -18,6 +18,7 @@ | |||
"gumgum", | |||
"hiromedia", | |||
"indexExchange", | |||
"innity", |
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.
align "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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) ...
* Oct 27 Oct 27 * Added Innity Innity Adapter * Innity GPT Test Page * Restore Master pbjs_example_gpt.html * Changes based on jaiminpanchal27 feedback - Align innity in adapters.json - Format innity_spec.js - Add bidRequest into innity.js * Fixed formatting and remove unnecessary code (prebid#1074)
Type of change
Description of change
Hi, new Innity Prebid.js adapter
Other information
Thanks.