Skip to content

Commit

Permalink
Colossus SSP Bidder Adapter: add onBidWon() (prebid#7758)
Browse files Browse the repository at this point in the history
* add video&native traffic colossus ssp

* Native obj validation

* Native obj validation #2

* Added size field in requests

* fixed test

* fix merge conflicts

* move to 3.0

* move to 3.0

* fix IE11 new URL issue

* fix IE11 new URL issue

* fix IE11 new URL issue

* https for 3.0

* add https test

* add ccp and schain features

* fix test

* sync with upstream, fix conflicts

* Update colossussspBidAdapter.js

remove commented code

* Update colossussspBidAdapter.js

lint fix

* identity extensions

* identity extensions

* fix

* fix

* fix

* fix

* fix

* add tests for user ids

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* add gdpr support

* add gdpr support

* id5id support

* Update colossussspBidAdapter.js

add bidfloor parameter

* Update colossussspBidAdapter.js

check bidfloor

* Update colossussspBidAdapter.js

* Update colossussspBidAdapter.js

* Update colossussspBidAdapter.js

* Update colossussspBidAdapter_spec.js

* use floor module

* Revert "use floor module"

This reverts commit f0c5c24.

* use floor module

* update to 5v

* fix

* add uid2 and bidFloor support

* fix

* add pbadslot support

* fix conflicts

* add onBidWon

* refactor

* add test for onBidWon()

* fix

Co-authored-by: Vladislav Isaiko <[email protected]>
Co-authored-by: Aiholkin <[email protected]>
Co-authored-by: Mykhailo Yaremchuk <[email protected]>
  • Loading branch information
4 people authored and Chris Pabst committed Jan 10, 2022
1 parent 68b943a commit 07c5491
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/colossussspBidAdapter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { getWindowTop, deepAccess, logMessage } from '../src/utils.js';
import { registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import { ajax } from '../src/ajax.js';

const BIDDER_CODE = 'colossusssp';
const G_URL = 'https://colossusssp.com/?c=o&m=multi';
Expand Down Expand Up @@ -175,6 +176,12 @@ export const spec = {
type: 'image',
url: G_URL_SYNC
}];
},

onBidWon: (bid) => {
if (bid.nurl) {
ajax(bid.nurl, null);
}
}
};

Expand Down
9 changes: 9 additions & 0 deletions test/spec/modules/colossussspBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,15 @@ describe('ColossussspAdapter', function () {
});
});

describe('onBidWon', function () {
it('should make an ajax call', function () {
const bid = {
nurl: 'http://example.com/win',
};
expect(spec.onBidWon(bid)).to.equals(undefined);
});
})

describe('getUserSyncs', function () {
let userSync = spec.getUserSyncs();
it('Returns valid URL and type', function () {
Expand Down

0 comments on commit 07c5491

Please sign in to comment.