Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topics Fpd Module: Add vidazoo bidder iframe #11283

Merged
merged 2 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
5 changes: 4 additions & 1 deletion modules/topicsFpdModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}]
}

Expand Down Expand Up @@ -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);
Expand Down
10 changes: 7 additions & 3 deletions modules/topicsFpdModule.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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.

Expand Down Expand Up @@ -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
}]
}
....
Expand Down