Skip to content

Commit

Permalink
eps_aliasing - adding in aliases for epsilon (formerly conversant) fo…
Browse files Browse the repository at this point in the history
…r bidder and analytics (#9961)

Co-authored-by: aarprice@publicisgroupe.net <aaron.price@epsilon.com>
  • Loading branch information
AaronColbyPrice and aarprice@publicisgroupe.net committed May 17, 2023
1 parent a205c6c commit 4b62ff5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
12 changes: 7 additions & 5 deletions modules/conversantAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const DOMAIN = 'https://web.hb.ad.cpe.dotomi.com/';
const ANALYTICS_URL = DOMAIN + 'cvx/event/prebidanalytics';
const ERROR_URL = DOMAIN + 'cvx/event/prebidanalyticerrors';
const ANALYTICS_CODE = 'conversant';
const ANALYTICS_ALIASES = [ANALYTICS_CODE, 'epsilon', 'cnvr'];

export const CNVR_CONSTANTS = {
LOG_PREFIX: 'Conversant analytics adapter: ',
Expand Down Expand Up @@ -688,11 +689,12 @@ conversantAnalytics.disableAnalytics = function () {
conversantAnalyticsEnabled = false;
conversantAnalytics.originDisableAnalytics();
};

adapterManager.registerAnalyticsAdapter({
adapter: conversantAnalytics,
code: ANALYTICS_CODE,
gvlid: GVLID
ANALYTICS_ALIASES.forEach(alias => {
adapterManager.registerAnalyticsAdapter({
adapter: conversantAnalytics,
code: alias,
gvlid: GVLID
});
});

export default conversantAnalytics;
2 changes: 1 addition & 1 deletion modules/conversantBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const URL = 'https://web.hb.ad.cpe.dotomi.com/cvx/client/hb/ortb/25';
export const spec = {
code: BIDDER_CODE,
gvlid: GVLID,
aliases: ['cnvr'], // short code
aliases: ['cnvr', 'epsilon'], // short code
supportedMediaTypes: [BANNER, VIDEO],

/**
Expand Down
3 changes: 2 additions & 1 deletion test/spec/modules/conversantBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ describe('Conversant adapter tests', function() {

it('Verify basic properties', function() {
expect(spec.code).to.equal('conversant');
expect(spec.aliases).to.be.an('array').with.lengthOf(1);
expect(spec.aliases).to.be.an('array').with.lengthOf(2);
expect(spec.aliases[0]).to.equal('cnvr');
expect(spec.aliases[1]).to.equal('epsilon');
expect(spec.supportedMediaTypes).to.be.an('array').with.lengthOf(2);
expect(spec.supportedMediaTypes[1]).to.equal('video');
});
Expand Down

0 comments on commit 4b62ff5

Please sign in to comment.