Skip to content

Commit ac02f5f

Browse files
Bill Newmanvladis-teqblazeAiholkinMykhailo Yaremchuk
authored
Colossus SSP Bidder Adapter: add onBidWon() (prebid#7758)
* 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]>
1 parent 001781f commit ac02f5f

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

modules/colossussspBidAdapter.js

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { getWindowTop, deepAccess, logMessage } from '../src/utils.js';
22
import { registerBidder } from '../src/adapters/bidderFactory.js';
33
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
4+
import { ajax } from '../src/ajax.js';
45

56
const BIDDER_CODE = 'colossusssp';
67
const G_URL = 'https://colossusssp.com/?c=o&m=multi';
@@ -175,6 +176,12 @@ export const spec = {
175176
type: 'image',
176177
url: G_URL_SYNC
177178
}];
179+
},
180+
181+
onBidWon: (bid) => {
182+
if (bid.nurl) {
183+
ajax(bid.nurl, null);
184+
}
178185
}
179186
};
180187

test/spec/modules/colossussspBidAdapter_spec.js

+9
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,15 @@ describe('ColossussspAdapter', function () {
186186
});
187187
});
188188

189+
describe('onBidWon', function () {
190+
it('should make an ajax call', function () {
191+
const bid = {
192+
nurl: 'http://example.com/win',
193+
};
194+
expect(spec.onBidWon(bid)).to.equals(undefined);
195+
});
196+
})
197+
189198
describe('getUserSyncs', function () {
190199
let userSync = spec.getUserSyncs();
191200
it('Returns valid URL and type', function () {

0 commit comments

Comments
 (0)