pbjs

HTML

<!DOCTYPE html>
<html>

  <head>
    <meta charset="UTF-8">
    <script async src="https://www.googletagservices.com/tag/js/gpt.js"></script>
    <script async src="prebid1.38.0.js"></script>
    <script>
      var sizes = [
        [300, 250]
      ];
      var PREBID_TIMEOUT = 1000;
      var FAILSAFE_TIMEOUT = 3000;

      var adUnits = [{
        code: 'adUnitCode',
        mediaTypes: {
          banner: {
            sizes: sizes
          }
        },
        bids: [{
            bidder: 'XXXX',
            params: {
              //params
            }
          },
          {
            bidder: 'XXXX',
            params: {
              //params
            }
          }
        ]
      }];

      const customConfigObject = {
        "buckets": [{
            "precision": 2,
            "min": 0,
            "max": 5,
            "increment": 0.5
          },
          {
            "precision": 2,
            "min": 5,
            "max": 8,
            "increment": 0.5
          },
          {
            "precision": 2,
            "min": 8,
            "max": 20,
            "increment": 0.5
          },
          {
            "precision": 2,
            "min": 20,
            "max": 99,
            "increment": 1.00
          }
        ]
      };

      var googletag = googletag || {};
      googletag.cmd = googletag.cmd || [];
      googletag.cmd.push(function() {
        googletag.pubads().disableInitialLoad();
      });

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

      pbjs.que.push(function() {
        pbjs.addAdUnits(adUnits);
        pbjs.setConfig({
          priceGranularity: customConfigObject,
          enableSendAllBids: true
        });
        pbjs.requestBids({
          bidsBackHandler: initAdserver,
          timeout: PREBID_TIMEOUT
        });
      });

      function initAdserver() {
        if (pbjs.initAdserverSet) return;
        pbjs.initAdserverSet = true;
        googletag.cmd.push(function() {
        ...