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

Vidazoo Adapter: Feature/bidder-version #5384

Merged
merged 9 commits into from
Jul 6, 2020
4 changes: 4 additions & 0 deletions modules/vidazooBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { BANNER } from '../src/mediaTypes.js';

export const URL = 'https://prebid.cootlogix.com';
const BIDDER_CODE = 'vidazoo';
const BIDDER_VERSION = '1.0.0';
const CURRENCY = 'USD';
const TTL_SECONDS = 60 * 5;
const INTERNAL_SYNC_TYPE = {
Expand Down Expand Up @@ -46,6 +47,8 @@ function buildRequest(bid, topWindowUrl, sizes, bidderRequest) {
publisherId: pId,
sizes: sizes,
dealId: dealId,
bidderVersion: BIDDER_VERSION,
prebidVersion: '$prebid.version$',
res: `${screen.width}x${screen.height}`
};

Expand Down Expand Up @@ -215,6 +218,7 @@ function setStorageItem(key, value) {

export const spec = {
code: BIDDER_CODE,
version: BIDDER_VERSION,
supportedMediaTypes: [BANNER],
isBidRequestValid,
buildRequests,
Expand Down
3 changes: 3 additions & 0 deletions test/spec/modules/vidazooBidAdapter_spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { expect } from 'chai';
import { spec as adapter, URL, SUPPORTED_ID_SYSTEMS } from 'modules/vidazooBidAdapter.js';
import * as utils from 'src/utils.js';
import { version } from 'package.json';

const BID = {
'bidId': '2d52001cabd527',
Expand Down Expand Up @@ -140,6 +141,8 @@ describe('VidazooBidAdapter', function () {
bidId: '2d52001cabd527',
publisherId: '59ac17c192832d0011283fe3',
dealId: 1,
bidderVersion: adapter.version,
prebidVersion: version,
res: `${window.top.screen.width}x${window.top.screen.height}`,
'ext.param1': 'loremipsum',
'ext.param2': 'dolorsitamet',
Expand Down