Skip to content

Commit

Permalink
Freewheel SSP Adapter: add prebid version in ad request (#9667)
Browse files Browse the repository at this point in the history
* FreeWheel add floor price

* FreeWheel code update

* FreeWheel-SSP-Adapter: Update to use Vast 4.2 by default

* FreeWheel-SSP-Adapter add userIdAsEids support

* Freewheel-SSP-Adapter add test for eids

* Freewheel SSP Adapter: add prebid version in request

* code cleanup
  • Loading branch information
xwang202 authored Mar 15, 2023
1 parent c7e8233 commit 8b92329
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/freewheel-sspBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ export const spec = {
timestamp: timeInMillis,
_fw_bidfloor: (bidfloor > 0) ? bidfloor : 0,
_fw_bidfloorcur: (bidfloor > 0) ? getFloorCurrency(config) : '',
pbjs_version: '$prebid.version$',
pKey: keyCode
};

Expand Down
2 changes: 2 additions & 0 deletions test/spec/modules/freewheel-sspBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { newBidder } from 'src/adapters/bidderFactory.js';
import { createEidsArray } from 'modules/userId/eids.js';

const ENDPOINT = '//ads.stickyadstv.com/www/delivery/swfIndex.php';
const PREBID_VERSION = '$prebid.version$';

describe('freewheelSSP BidAdapter Test', () => {
const adapter = newBidder(spec);
Expand Down Expand Up @@ -166,6 +167,7 @@ describe('freewheelSSP BidAdapter Test', () => {
expect(payload.componentId).to.equal('prebid');
expect(payload.componentSubId).to.equal('mustang');
expect(payload.playerSize).to.equal('300x600');
expect(payload.pbjs_version).to.equal(PREBID_VERSION);
});

it('should return a properly formatted request with schain defined', function () {
Expand Down

0 comments on commit 8b92329

Please sign in to comment.