Skip to content
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

Merged
merged 10 commits into from
Apr 14, 2017
Merged

- New Adapter: Innity #1074

merged 10 commits into from
Apr 14, 2017

Conversation

engtat
Copy link
Contributor

@engtat engtat commented Mar 24, 2017

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other

Description of change

Hi, new Innity Prebid.js adapter

  • test parameters for validating bids
{
  bidder: 'innity',
  params: {
    pub: 267,
    zone: 62546
  }
}

Other information

Thanks.

Copy link
Collaborator

@jaiminpanchal27 jaiminpanchal27 left a 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.

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);
Copy link
Collaborator

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

bidObject.width = response.width;
bidObject.height = response.height;
} else {
bidObject = bidfactory.createBid(CONSTANTS.STATUS.NO_BID);
Copy link
Collaborator

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

var utils = require('src/utils');
var CONSTANTS = require('src/constants.json');

window.pbjs = window.pbjs || {};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use $$PREBID_GLOBAL$$ instead of pbjs in this file.


it('bid request for single placement', function () {

var params = {
Copy link
Collaborator

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",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align "innity"

var adapter = require('src/adapters/innity');
var adLoader = require('src/adloader');
var bidmanager = require('src/bidmanager');
var utils = require('src/utils');
Copy link
Collaborator

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

if (typeof(pbjs._bidsRequested) === "undefined") {
pbjs._bidsRequested = [];
}
if (typeof(pbjs._adsReceived) === "undefined") {
Copy link
Collaborator

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 ?

@engtat
Copy link
Contributor Author

engtat commented Apr 6, 2017

@jaiminpanchal27 We have made the necessary changes, thanks.

@mkendall07
Copy link
Member

LGTM.

@mkendall07 mkendall07 merged commit 4257158 into prebid:master Apr 14, 2017
@mkendall07
Copy link
Member

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

outoftime added a commit to Genius/Prebid.js that referenced this pull request Apr 19, 2017
…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)
  ...
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants