Skip to content

Commit

Permalink
add alias support to riseBidAdapter (prebid#10956)
Browse files Browse the repository at this point in the history
  • Loading branch information
lasloche authored Jan 17, 2024
1 parent 2e4b98e commit 34e6192
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/riseBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const BIDDER_CODE = 'rise';
const ADAPTER_VERSION = '6.0.0';
const TTL = 360;
const DEFAULT_CURRENCY = 'USD';
const DEFAULT_GVLID = 1043;
const DEFAULT_SELLER_ENDPOINT = 'https://hb.yellowblue.io/';
const MODES = {
PRODUCTION: 'hb-multi',
Expand All @@ -32,7 +33,11 @@ const SUPPORTED_SYNC_METHODS = {

export const spec = {
code: BIDDER_CODE,
gvlid: 1043,
aliases: [
{ code: 'risexchange', gvlid: DEFAULT_GVLID },
{ code: 'openwebxchange', gvlid: 280 }
],
gvlid: DEFAULT_GVLID,
version: ADAPTER_VERSION,
supportedMediaTypes: SUPPORTED_AD_TYPES,
isBidRequestValid: function (bidRequest) {
Expand Down
6 changes: 6 additions & 0 deletions test/spec/modules/riseBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ describe('riseAdapter', function () {
});
});

describe('bid adapter', function () {
it('should have aliases', function () {
expect(spec.aliases).to.be.an('array').that.is.not.empty;
});
});

describe('isBidRequestValid', function () {
const bid = {
'bidder': spec.code,
Expand Down

0 comments on commit 34e6192

Please sign in to comment.