Skip to content

Commit

Permalink
Tappx Bid Adapter: add vendor id (#7709)
Browse files Browse the repository at this point in the history
* Tappx :: Add vendor id

* add unit test

Co-authored-by: Albert Grandes <[email protected]>
Co-authored-by: Chris Huie <[email protected]>
  • Loading branch information
3 people authored Nov 15, 2021
1 parent 0d6b3ed commit 35bb363
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/tappxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import { config } from '../src/config.js';
import { Renderer } from '../src/Renderer.js';

const BIDDER_CODE = 'tappx';
const GVLID_CODE = 628;
const TTL = 360;
const CUR = 'USD';
const TAPPX_BIDDER_VERSION = '0.1.1004';
const TAPPX_BIDDER_VERSION = '0.1.1005';
const TYPE_CNN = 'prebidjs';
const LOG_PREFIX = '[TAPPX]: ';
const VIDEO_SUPPORT = ['instream', 'outstream'];
Expand Down Expand Up @@ -42,6 +43,7 @@ var hostDomain;

export const spec = {
code: BIDDER_CODE,
gvlid: GVLID_CODE,
supportedMediaTypes: [BANNER, VIDEO],

/**
Expand Down
4 changes: 4 additions & 0 deletions test/spec/modules/tappxBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ describe('Tappx bid adapter', function () {
badBidRequest_v.bids.mediaTypes.video.playerSize = [320, 250];
assert.isFalse(spec.isBidRequestValid(badBidRequest_v.bids));
});

it('should export the TCF vendor ID', function () {
expect(spec.gvlid).to.equal(628);
})
});

/**
Expand Down

0 comments on commit 35bb363

Please sign in to comment.