Skip to content

Commit

Permalink
removing default config
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Komorski authored and Marcin Komorski committed Jun 3, 2024
1 parent ca1d065 commit a571747
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 29 deletions.
31 changes: 2 additions & 29 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const DEFAULT_MAX_NESTED_IFRAMES = 10;

const DEFAULT_TIMEOUTBUFFER = 400;

const DEFAULT_IFRAMES_CONFIG = {};

export const RANDOM = 'random';
const FIXED = 'fixed';

Expand All @@ -59,35 +61,6 @@ const GRANULARITY_OPTIONS = {

const ALL_TOPICS = '*';

const DEFAULT_IFRAMES_CONFIG = {
maxTopicCaller: 4,
bidders: [{
bidder: 'pubmatic',
iframeURL: 'https://ads.pubmatic.com/AdServer/js/topics/topics_frame.html'
}, {
bidder: 'rtbhouse',
iframeURL: 'https://topics.authorizedvault.com/topicsapi.html'
}, {
bidder: 'openx',
iframeURL: 'https://pa.openx.net/topics_frame.html'
}, {
bidder: 'improvedigital',
iframeURL: 'https://hb.360yield.com/privacy-sandbox/topics.html'
}, {
bidder: 'onetag',
iframeURL: 'https://onetag-sys.com/static/topicsapi.html'
}, {
bidder: 'taboola',
iframeURL: 'https://cdn.taboola.com/libtrc/static/topics/taboola-prebid-browsing-topics.html'
}, {
bidder: 'discovery',
iframeURL: 'https://api.popin.cc/topic/prebid-topics-frame.html'
}, {
bidder: 'undertone',
iframeURL: 'https://creative-p.undertone.com/spk-public/topics_frame.html'
}]
}

export function newConfig() {
let listeners = [];
let defaults;
Expand Down
12 changes: 12 additions & 0 deletions test/spec/modules/topicsFpdModule_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,21 @@ describe('topics', () => {
}]]
);
storage.setDataInLocalStorage(topicStorageName, storedSegments);
config.setConfig({
userSync: {
topics: {
maxTopicCaller: 4,
bidders: [{
bidder: 'pubmatic',
iframeURL: 'https://ads.pubmatic.com/AdServer/js/topics/topics_frame.html'
}]
}
}
})
});
afterEach(() => {
sandbox.restore();
config.resetConfig();
});

it('should return segments for bidder if transmitUfpd is allowed', () => {
Expand Down

0 comments on commit a571747

Please sign in to comment.