Skip to content

Commit

Permalink
Expose vendor ID for TCFv2 enforcement (#7927)
Browse files Browse the repository at this point in the history
Co-authored-by: slimkrazy <sam@slimkrazy.com>
  • Loading branch information
slimkrazy and slimkrazy authored Jan 18, 2022
1 parent 150e402 commit d86b409
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/yahoosspBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Renderer } from '../src/Renderer.js';

const INTEGRATION_METHOD = 'prebid.js';
const BIDDER_CODE = 'yahoossp';
const GVLID = 25;
const ADAPTER_VERSION = '1.0.2';
const PREBID_VERSION = '$prebid.version$';
const DEFAULT_BID_TTL = 300;
Expand Down Expand Up @@ -515,6 +516,7 @@ function createRenderer(bidderRequest, bidResponse) {

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

Expand Down
10 changes: 10 additions & 0 deletions test/spec/modules/yahoosspBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,16 @@ describe('YahooSSP Bid Adapter:', () => {
expect(obj).to.be.an('object');
});

describe('Validate basic properties', () => {
it('should define the correct bidder code', () => {
expect(spec.code).to.equal('yahoossp')
});

it('should define the correct vendor ID', () => {
expect(spec.gvlid).to.equal(25)
});
});

describe('getUserSyncs()', () => {
const IMAGE_PIXEL_URL = 'http://image-pixel.com/foo/bar?1234&baz=true';
const IFRAME_ONE_URL = 'http://image-iframe.com/foo/bar?1234&baz=true';
Expand Down

0 comments on commit d86b409

Please sign in to comment.