Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
    <script>
      window.googletag = window.googletag || { cmd: [] };
      googletag.cmd.push(() => {
        googletag.pubads().collapseEmptyDivs();
        googletag
          .defineSlot("/6355419/Travel", [300, 250], "ad-slot-1")
          .addService(googletag.pubads());
        googletag
          .defineSlot("/6355419/Travel", [250, 200], "ad-slot-2")
          .addService(googletag.pubads());
        googletag
          .defineSlot("/6355419/Travel", [200, 150], "ad-slot-3")
          .setTargeting("test", "responsive")
          .addService(googletag.pubads());
        googletag
          .defineSlot("/6355419/Travel", [150, 100], "ad-slot-4")
          .setTargeting("test", "responsive")
          .addService(googletag.pubads());
        googletag.pubads().enableSingleRequest();
        googletag.enableServices();
      });
    </script>
    <style>
      div.ad-container {
        border: solid;
        margin: 40px;
        padding: 20px;
      }
    </style>
  </head>
  <body>
    <div class="ad-container">
      <p>Ad slot #1</p>
      <div id="ad-slot-1" class="ad-slot"></div>
    </div>
    <div class="ad-container">
      <p>Ad slot #2</p>
      <div id="ad-slot-2" class="ad-slot" style="width: 250px; height: 200px"></div>
    </div>
    <div class="ad-container">
      <p>Ad slot #3</p>
      <div id="ad-slot-3" class="ad-slot" style="width: 200px; height: 150px"></div>
    </div>
    <div class="ad-container">
      <p>Ad slot #4</p>
      <div id="ad-slot-4" class="ad-slot"></div>
    </div>
    <script>
      googletag.cmd.push(() => {
        googletag.display("ad-slot-1");
      });
    </script>
  </body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers