JSFiddle - React, Tailwind, and code Playground

First integration and test of prebid in html page.

by Karmik Patel

HTML

<html>

  <head>
    <!-- Prebid Config Section START -->
    <!-- Make sure this is inserted before your GPT tag -->
    <script>
      var PREBID_TIMEOUT = 700;

      var adUnits = [{
        code: 'div-gpt-ad-1460505748561-0',
        sizes: [
          [300, 250],
          [300, 600]
        ],
        bids: [
          //------------Karmiks code starts
          //Driverweekly.com KB 300x250
          {
            bidder: 'komoona',
            params: {
              hbid: "1146a8f11be94d5ab12674d36df2d9f2",
              placementId: "b52cb2eaae51f35a441309f5585266f9"
            }
          }
          //------------Karmiks code ends
        ]
      }, {
        code: 'div-gpt-ad-1460505661639-0',
        sizes: [
          [728, 90],
          [970, 90]
        ],
        bids: [
          //------------Karmiks code starts
          //Driverweekly.com KB 728x90
          {
            bidder: 'komoona',
            params: {
              hbid: "1146a8f11be94d5ab12674d36df2d9f2",
              placementId: "c38bd2f0248e506114c4b10bff7686ca"
            }
          }
          //------------Karmiks code ends
        ]
      }];

      var pbjs = pbjs || {};
      pbjs.que = pbjs.que || [];

    </script>
    <!-- Prebid Config Section END -->

    <!-- Prebid Boilerplate Section START. No Need to Edit. -->
    <script type="text/javascript" src="//acdn.adnxs.com/prebid/not-for-prod/prebid.js" async></script>
    <script>
      var googletag = googletag || {};
      googletag.cmd = googletag.cmd || [];
      googletag.cmd.push(function() {
        googletag.pubads().disableInitialLoad();
      });

      pbjs.que.push(function() {
        pbjs.addAdUnits(adUnits);
        pbjs.requestBids({
          bidsBackHandler: sendAdserverRequest
        });
      });

      function sendAdserverRequest() {
        if (pbjs.adserverRequestSent) return;
        pbjs.adserverRequestSent = true;
        googletag.cmd.push(function() {
         ...