Skip to content

Commit

Permalink
Vidazoo Adapter: Feature/bidder-version (#5384)
Browse files Browse the repository at this point in the history
* feat(module): multi size request

* fix getUserSyncs
added tests

* update(module): package-lock.json from master

* feat(client): add bidder and prebid versions to request params

* fix(client): lint quotes error

Co-authored-by: roman <[email protected]>
  • Loading branch information
uditalias and shmoop207 authored Jul 6, 2020
1 parent 7a36ee6 commit 4c35edf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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';

const DEFAULT_SUB_DOMAIN = 'prebid';
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 @@ -51,6 +52,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 @@ -220,6 +223,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, SUPPORTED_ID_SYSTEMS, createDomain } from 'modules/vidazooBidAdapter.js';
import * as utils from 'src/utils.js';
import { version } from 'package.json';

const SUB_DOMAIN = 'openrtb';

Expand Down Expand Up @@ -145,6 +146,8 @@ describe('VidazooBidAdapter', function () {
adUnitCode: 'div-gpt-ad-12345-0',
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

0 comments on commit 4c35edf

Please sign in to comment.