Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions modules/cadent_aperture_mxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import { parseDomain } from '../src/refererDetection.js';
import { getDNT } from '../libraries/dnt/index.js';

const BIDDER_CODE = 'cadent_aperture_mx';
const ENDPOINT = 'hb.emxdgt.com';
const RENDERER_URL = 'https://js.brealtime.com/outstream/1.30.0/bundle.js';
const ENDPOINT = 'hb-pub.ssp.cadent.com';
const RENDERER_URL = 'https://js.ssp.cadent.com/outstream/1.30.0/bundle.js';
const ADAPTER_VERSION = '1.5.1';
const DEFAULT_CUR = 'USD';
const ALIASES = [
Expand Down Expand Up @@ -281,7 +281,8 @@ export const spec = {
// adding gpid support
const gpid =
deepAccess(bid, 'ortb2Imp.ext.gpid') ||
deepAccess(bid, 'ortb2Imp.ext.data.adserver.adslot');
deepAccess(bid, 'ortb2Imp.ext.data.adserver.adslot') ||
deepAccess(bid, 'ortb2Imp.ext.data.pbadslot');

if (gpid) {
data.ext = { gpid: gpid.toString() };
Expand Down Expand Up @@ -374,7 +375,7 @@ export const spec = {
const syncs = [];
const consentParams = [];
if (syncOptions.iframeEnabled) {
let url = 'https://biddr.brealtime.com/check.html';
let url = 'https://js.ssp.cadent.com/check.html';
if (gdprConsent && typeof gdprConsent.consentString === 'string') {
// add 'gdpr' only if 'gdprApplies' is defined
if (typeof gdprConsent.gdprApplies === 'boolean') {
Expand Down
12 changes: 6 additions & 6 deletions test/spec/modules/cadent_aperture_mxBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ describe('cadent_aperture_mx Adapter', function () {
it('should add gpid to request if present in ext.data.pbadslot', () => {
const gpid = '/12345/my-gpt-tag-0';
const bid = utils.deepClone(bidderRequest.bids[0]);
bid.ortb2Imp = { ext: { data: {}, gpid } };
bid.ortb2Imp = { ext: { data: { pbadslot: gpid } } };
let requestWithGPID = spec.buildRequests([bid], bidderRequest);
requestWithGPID = JSON.parse(requestWithGPID.data);
expect(requestWithGPID.imp[0].ext.gpid).to.exist.and.equal(gpid);
Expand Down Expand Up @@ -751,7 +751,7 @@ describe('cadent_aperture_mx Adapter', function () {
const ad0 = result[0];
const ad1 = result[1];
expect(ad0.renderer).to.exist.and.to.be.a('object');
expect(ad0.renderer.url).to.equal('https://js.brealtime.com/outstream/1.30.0/bundle.js');
expect(ad0.renderer.url).to.equal('https://js.ssp.cadent.com/outstream/1.30.0/bundle.js');
expect(ad0.renderer.id).to.equal('987654321cba');
expect(ad1.renderer).to.equal(undefined);
});
Expand Down Expand Up @@ -794,7 +794,7 @@ describe('cadent_aperture_mx Adapter', function () {
expect(syncs).to.not.be.an('undefined');
expect(syncs).to.have.lengthOf(1);
expect(syncs[0].type).to.equal('iframe');
expect(syncs[0].url).to.equal('https://biddr.brealtime.com/check.html');
expect(syncs[0].url).to.equal('https://js.ssp.cadent.com/check.html');
});

it('should pass gdpr params', function () {
Expand All @@ -805,7 +805,7 @@ describe('cadent_aperture_mx Adapter', function () {
expect(syncs).to.have.lengthOf(1);
expect(syncs[0].type).to.equal('iframe');
expect(syncs[0].url).to.contains('gdpr=0');
expect(syncs[0].url).to.equal('https://biddr.brealtime.com/check.html?gdpr=0&gdpr_consent=test');
expect(syncs[0].url).to.equal('https://js.ssp.cadent.com/check.html?gdpr=0&gdpr_consent=test');
});

it('should pass us_privacy string', function () {
Expand All @@ -832,7 +832,7 @@ describe('cadent_aperture_mx Adapter', function () {
expect(syncs[0].type).to.equal('iframe');
expect(syncs[0].url).to.contains('gdpr=1');
expect(syncs[0].url).to.contains('usp=test');
expect(syncs[0].url).to.equal('https://biddr.brealtime.com/check.html?gdpr=1&gdpr_consent=test&usp=test');
expect(syncs[0].url).to.equal('https://js.ssp.cadent.com/check.html?gdpr=1&gdpr_consent=test&usp=test');
});

it('should pass gpp string and section id', function() {
Expand Down Expand Up @@ -865,7 +865,7 @@ describe('cadent_aperture_mx Adapter', function () {
expect(syncs[0].url).to.contains('gdpr=1');
expect(syncs[0].url).to.contains('usp=test');
expect(syncs[0].url).to.contains('gpp=abcdefgs');
expect(syncs[0].url).to.equal('https://biddr.brealtime.com/check.html?gdpr=1&gdpr_consent=test&usp=test&gpp=abcdefgs&gpp_sid=1,2,4');
expect(syncs[0].url).to.equal('https://js.ssp.cadent.com/check.html?gdpr=1&gdpr_consent=test&usp=test&gpp=abcdefgs&gpp_sid=1,2,4');
});
});
});
Loading