Skip to content

Commit

Permalink
Richaudience Bid Adapter : add gvlid to alias (prebid#12330)
Browse files Browse the repository at this point in the history
* add gvlid to alias

Prebid.js doesn't use the `spec.gvlid` for aliases as it seems. In order to avoid `gvlMapping` definitions, the shorter alias also gets a gvlid

* Fix alias test

* Use deep equal
  • Loading branch information
muuki88 authored Oct 19, 2024
1 parent 68f879a commit c84b201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/richaudienceBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let REFERER = '';
export const spec = {
code: BIDDER_CODE,
gvlid: 108,
aliases: ['ra'],
aliases: [{code: 'ra', gvlid: 108}],
supportedMediaTypes: [BANNER, VIDEO],

/***
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/richaudienceBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ describe('Richaudience adapter tests', function () {

it('Verifies bidder aliases', function () {
expect(spec.aliases).to.have.lengthOf(1);
expect(spec.aliases[0]).to.equal('ra');
expect(spec.aliases[0]).to.deep.equal({code: 'ra', gvlid: 108});
});

it('Verifies bidder gvlid', function () {
Expand Down

0 comments on commit c84b201

Please sign in to comment.