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

Add new adapter districtmDMX #811

Merged
merged 3 commits into from
Dec 5, 2016
Merged

Conversation

stevealliance
Copy link
Contributor

@stevealliance stevealliance commented Nov 17, 2016

Type of change

  • [ x] New bidder adapter

Description of change

added districtmDMX to adapters.json
added districtmDMX.js to folder src/adapters
added districtm_specs.js to test for unit testing

  • test parameters for validating bids
{
  bidder: 'districtmDMX',
  params: {
        id:109800, // required
        floor: 1.10,  // not required
        revShare: 0.90  // not required
        currency: 'cad' // not required will default to 'usd'
  }
}
  • contact email of the adapter’s maintainer
  • [steve@districtm.ca ] official adapter submission

Other information

test @97%, two files added one updated

test @97%, two files added one updated
Copy link
Collaborator

@matthewlane matthewlane left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Two requested changes noted below

it('it\'s now time to play with the response ...', ()=>{
let result = districtm.handlerRes(PREBID_RESPONSE(), PREBID_PARAMS);
_each(result, function(k, v){
console.log(11, `${k} value is ${v}`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

In the test directory we try to avoid logging to the console to avoid having non-build related activity displayed during the build process. Please convert this to an assertion if it makes sense or remove the line


var DistrictmAdaptor = function districtmAdaptor(){
let districtmUrl = window.location.protocol + '//prebid.districtm.ca/lib.js';
this.callBids = params =>{
Copy link
Collaborator

Choose a reason for hiding this comment

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

The spacing on this line 6 and this line is causing a jscs error: Expected indentation of 2 characters. Please use two spaces on these lines rather than 3, or alternatively, place // jscs:disable at the top of this file to avoid these errors from displaying during the build process

@stevealliance
Copy link
Contributor Author

I just make some change please review

@matthewlane
Copy link
Collaborator

Thanks for the update. It looks like this adapter is making a call to the same /jpt endpoint as the AppNexus adapter, any reason to not alias the AppNexus adapter instead?

@stevealliance
Copy link
Contributor Author

Yes, we are adding addtional features such as the currency parameter which allows us to send the bid in foreign currency in the ad server. We take care of updating currencies on a daily basis on behalf of the publisher

@mkendall07
Copy link
Member

@stevealliance
So you are taking the bid returned by the Bidder and applying a currency conversion to it? How does it compete in the auction with other bidders of different currencies? Just curious how this works. Thanks

@stevealliance
Copy link
Contributor Author

If the publisher has an ad server setup in Canadian as an example, we apply convertion to it.
This is in the case that other end points would also be able to convert, and/or are applying a bid multiplier to reflect the same currency.

Many publishers are having Canadian ad servers, we tought this feature would be an option to simplify the process for them.

They have to be aware that this have to be used in a context of comparing apples to apples.

A little bit like gross vs net.

Thanks

@mkendall07 mkendall07 added this to the Prebid 0.16.0 milestone Dec 5, 2016
@matthewlane matthewlane merged commit 1d32623 into prebid:master Dec 5, 2016
mp-12301 pushed a commit to aol/Prebid.js that referenced this pull request Apr 10, 2017
…ebid-official-0.16.0 to release/1.10.0

* commit 'fd16420d7034b1f82e571e2b122b7fa73b88d929':
  Add changelog entry.
  Add new adapters for AOL analytics.
  Updated Prebid version
  Catch cross-origin DOMException (prebid#861)
  Add GumGum adapter (prebid#833)
  Remove duplicate log line in request bids (prebid#859)
  Utility function getBidIdParamater is misspelled
  Allow Conversant sizes to be overridden per placement (prebid#816)
  Add districtmDMX adapter (prebid#811)
  Truncate bids requested on clearPlacements (prebid#825) (prebid#828)
  Update adapters.json (prebid#803)
  Add usersyncing to AppNexus adapters (prebid#845)
  fixes for bugs in test suite (prebid#810)
  Pass user object parameters on bid request (prebid#821)
  fix rubicon deals to be per ad instead of per response (prebid#838)
  Links bidId in request with adId in response for analytics purposes (prebid#836)
  Bugfix/issue building from npm (prebid#823)
  Update build to only run `webpack` to improve build time performance (prebid#809)
  Cast all Conversant site_ids to a string (prebid#829)
  Increment pre version
mp-12301 pushed a commit to aol/Prebid.js that referenced this pull request Apr 10, 2017
…10.0 to master

* commit 'b39f2b12a8ddfa650a8e04e3abd358e60371950a':
  Add changelog entry.
  Add new adapters for AOL analytics.
  Updated Prebid version
  Catch cross-origin DOMException (prebid#861)
  Add GumGum adapter (prebid#833)
  Remove duplicate log line in request bids (prebid#859)
  Utility function getBidIdParamater is misspelled
  Allow Conversant sizes to be overridden per placement (prebid#816)
  Add districtmDMX adapter (prebid#811)
  Truncate bids requested on clearPlacements (prebid#825) (prebid#828)
  Update adapters.json (prebid#803)
  Add usersyncing to AppNexus adapters (prebid#845)
  fixes for bugs in test suite (prebid#810)
  Pass user object parameters on bid request (prebid#821)
  fix rubicon deals to be per ad instead of per response (prebid#838)
  Links bidId in request with adId in response for analytics purposes (prebid#836)
  Bugfix/issue building from npm (prebid#823)
  Update build to only run `webpack` to improve build time performance (prebid#809)
  Cast all Conversant site_ids to a string (prebid#829)
  Increment pre version
@internetchris
Copy link

@stevealliance/ @mkendall07 - I'm upgrading prebid from 0.24. to 1.10 and don't see an adapter listed in the modules folder for districtmDMX. Subsequently, I'm getting this error now in my prebid output: Adapter trying to be called which does not exist: districtmDMX adaptermanager.callBids

Can you advise if this adapter is still supported and the proper module I should be including in my build. FWIW, I did compile prebid with all of the adapters and still received the same message.

@ghost
Copy link

ghost commented Jun 12, 2018

Can someone answer @internetchris's question? And I have the same issue right now. Thanks!

@lizardslair
Copy link

@stevealliance Any news on if there will be a DistrictmDMX module compatable with > 1.10? We are currently performing an (overdue) upgrade from PB 0.21 and while DistrictmDMX is still listed in the official list of bidders, there is no districtmDMXBidAdapter.js file under /modules. Are you the point person for this update or is the community of devs supposed to chime in? We have several properties that use DistrictM and don't want to push our upgrade live until we get them working again. @matthewlane

@stevealliance
Copy link
Contributor Author

@lizardslair I have a PR in review for next release #2765
You can also use our AppNexus alias, but please confirm with you account manager before doing the switch.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants