Advertisement
inodorotnuk

KLY Prebid Config - Getter

Jun 12th, 2024 (edited)
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clear();
  2.  
  3. var bidderList = [], display = null, video = null;
  4.  
  5. display = GAMLibrary.prebidDisplay ? GAMLibrary.prebidDisplay : adUnitsDisplay;
  6. video = GAMLibrary.prebidVideo ? GAMLibrary.prebidVideo : adUnitsVideo;
  7.  
  8. display && display.forEach((v)=>{
  9.     v.bids.forEach(val=>{ bidderList.push(val.bidder);})
  10. })
  11.  
  12. video && video.forEach((v)=>{
  13.     v.bids.forEach(val=>{ bidderList.push(val.bidder);})
  14. })
  15.  
  16. console.log([...new Set(bidderList)].join("|"));
  17.  
  18. //console.table({'adapter':pbjs.installedModules.filter(v=>v.match(/BidAdapter/ig,'')).map(v=>v.replace(/(BidAdapter)/ig,'')).join('|'),'modules':pbjs.installedModules.filter(v=>!v.match(/BidAdapter/ig,'')).join('|')})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement