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 8130495 commit fdd8fe5
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 @@ -40,6 +40,8 @@ const DEFAULT_MAXBID_VALUE = 5000

const DEFAULT_TIMEOUTBUFFER = 400;

const DEFAULT_IFRAMES_CONFIG = {};

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

Expand All @@ -60,35 +62,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 fdd8fe5

Please sign in to comment.