From ecf428ad2b38676144f6a96a305fb5c44751c3a6 Mon Sep 17 00:00:00 2001 From: saar120 Date: Wed, 3 Apr 2024 13:48:05 +0300 Subject: [PATCH] Add vidazoo bidder to topicsFpdModule. --- modules/topicsFpdModule.js | 5 ++++- modules/topicsFpdModule.md | 10 +++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/modules/topicsFpdModule.js b/modules/topicsFpdModule.js index 715f1ca735a..5042fb89a26 100644 --- a/modules/topicsFpdModule.js +++ b/modules/topicsFpdModule.js @@ -44,6 +44,9 @@ const bidderIframeList = { }, { bidder: 'discovery', iframeURL: 'https://api.popin.cc/topic/prebid-topics-frame.html' + }, { + bidder: 'vidazoo', + iframeURL: 'https://static.vidazoo.com/topics_api/topics_frame.html' }] } @@ -242,7 +245,7 @@ export function loadTopicsForBidders(doc = document) { if (topics) { listenMessagesFromTopicIframe(); const randomBidders = getRandomBidders(topics.bidders || [], topics.maxTopicCaller || 1) - randomBidders && randomBidders.forEach(({ bidder, iframeURL, fetchUrl, fetchRate }) => { + randomBidders && randomBidders.forEach(({bidder, iframeURL, fetchUrl, fetchRate}) => { if (bidder && iframeURL) { let ifrm = doc.createElement('iframe'); ifrm.name = 'ifrm_'.concat(bidder); diff --git a/modules/topicsFpdModule.md b/modules/topicsFpdModule.md index 8ebddacf613..bccb8b1b42c 100644 --- a/modules/topicsFpdModule.md +++ b/modules/topicsFpdModule.md @@ -3,9 +3,9 @@ Module Name: topicsFpdModule # Description -Purpose of this module is to call the Topics API (document.browsingTopics()) which will fetch the first party domain as well third party domain(Iframe) topics data which will be sent onto user.data in bid stream. +Purpose of this module is to call the Topics API (document.browsingTopics()) which will fetch the first party domain as well third party domain(Iframe) topics data which will be sent onto user.data in bid stream. -The intent of the Topics API is to provide callers (including third-party ad-tech or advertising providers on the page that run script) with coarse-grained advertising topics that the page visitor might currently be interested in. +The intent of the Topics API is to provide callers (including third-party ad-tech or advertising providers on the page that run script) with coarse-grained advertising topics that the page visitor might currently be interested in. Topics Module(topicsFpdModule) should be included in prebid final package to call topics API. Module topicsFpdModule helps to call the Topics API which will send topics data in bid stream (onto user.data) @@ -22,7 +22,7 @@ try { # Topics Iframe Configuration -Topics iframe implementation is the enhancements of existing module under topicsFpdModule.js where different bidders will call the topic API under their domain to fetch the topics for respective domain and the segment data will be part of ORTB request under user.data object. Default config is maintained in the module itself. +Topics iframe implementation is the enhancements of existing module under topicsFpdModule.js where different bidders will call the topic API under their domain to fetch the topics for respective domain and the segment data will be part of ORTB request under user.data object. Default config is maintained in the module itself. Below are the configuration which can be used to configure and override the default config maintained in the module. @@ -64,6 +64,10 @@ pbjs.setConfig({ bidder: 'discovery', iframeURL: 'https://api.popin.cc/topic/prebid-topics-frame.html', expiry: 7 // Configurable expiry days + },{ + bidder: 'vidazoo', + iframeURL: 'https://static.vidazoo.com/topics_api/topics_frame.html', + expiry: 7 // Configurable expiry days }] } ....