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

Freewheel SSP Adapter: add prebid version in ad request #9667

Merged
merged 9 commits into from
Mar 15, 2023
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