Ad Preview

Summary

Use this when you're dealing with a client who needs you to use their own click and impression tracking URLs. Supports high-resolution images too. Automatic replacement for URLs with [timestamp] macros.

Setup / Inputs

These are the fields / inputs taken to generate this ad. In general, inputs are not required. That said, these inputs are how you customize the ad!

  • Image: The ad image (png, jpg, gif)
    Default value:
    Default Value

  • Width: The desired width of the ad, in pixels
    Default value:
    300

  • Height: The desired height of the ad, in pixels
    Default value:
    250

  • Destination: Where the user should go when they click the ad
    Default value:
    [empty]

  • Third Party Viewability Code: This is pre-filled unless the code changed. No need to fill in macros.
    Default value:
    PHNjcmlwdCBpZD0naWFzLSc+CihmdW5jdGlvbigpIHsKdmFyIGlhc1NjcmlwdFVybCwgaGlkZGVuRnJhbWUsIGhpZGRlbkRvYywgd2hlcmUsIGRvbWFpbjsKaWFzU2NyaXB0VXJsID0gJy8vcGl4ZWwuYWRzYWZlcHJvdGVjdGVkLmNvbS9qbG9hZD9hbklkPTkyOTQ4OCZjYW1wSWQ9TUFDUk8mcHViSWQ9TUFDUk8mY2hhbklkPU1BQ1JPJnBsYWNlbWVudElkPU1BQ1JPJnB1YkNyZWF0aXZlPU1BQ1JPJnB1Yk9yZGVyPU1BQ1JPJzsKaGlkZGVuRnJhbWUgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdpZnJhbWUnKTsKKGhpZGRlbkZyYW1lLmZyYW1lRWxlbWVudCB8fCBoaWRkZW5GcmFtZSkuc3R5bGUuY3NzVGV4dCA9ICJ3aWR0aDogMDsgaGVpZ2h0OiAwOyBib3JkZXI6IDA7IGRpc3BsYXk6IG5vbmU7IjsKaGlkZGVuRnJhbWUuc3JjID0gJ2phdmFzY3JpcHQ6ZmFsc2UnOwp3aGVyZSA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdpYXMtJyk7CndoZXJlLnBhcmVudE5vZGUuaW5zZXJ0QmVmb3JlKGhpZGRlbkZyYW1lLCB3aGVyZSk7CnRyeSB7CmhpZGRlbkRvYyA9IGhpZGRlbkZyYW1lLmNvbnRlbnRXaW5kb3cuZG9jdW1lbnQKfSBjYXRjaCAoZSkgewpkb21haW4gPSBkb2N1bWVudC5kb21haW47CmhpZGRlbkZyYW1lLnNyYyA9ICJqYXZhc2NyaXB0OnZhciBkPWRvY3VtZW50Lm9wZW4oKTtkLmRvbWFpbj0nIiArIGRvbWFpbiArICInO3ZvaWQoMCk7IjsKaGlkZGVuRG9jID0gaGlkZGVuRnJhbWUuY29udGVudFdpbmRvdy5kb2N1bWVudAp9CmhpZGRlbkRvYy5vcGVuKCkud3JpdGUoJzxib2R5IG9ubG9hZD0iJyArICd3aW5kb3cuX19JbnRlZ3JhbEFTVXNlRklGID0gdHJ1ZTsgJyArICd2YXIganMgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KFwnc2NyaXB0XCcpOycgKwonanMuc3JjID0gXCcnICsgaWFzU2NyaXB0VXJsICsgJ1wnOycgKyAnZG9jdW1lbnQuYm9keS5hcHBlbmRDaGlsZChqcyk7Ij4nKTsKaGlkZGVuRG9jLmNsb3NlKCkKfSkoKTsKPC9zY3JpcHQ+

Embed An Example In Your Media Kit

Customers who wish to embed the example on some "Media Kit" page on their website can do so in one of two ways:

  • Option 1: If you have Wordpress and the Broadstreet plugin, you can use this shortcode anywhere in any post to render the example.

    [broadstreet ad=""]
  • Option 2: If you do not have Wordpress, or choose not install the Broadstreet plugin, you can embed this javascript code snippet into your post:

    <div street-address=""></div><script>
    (function(d, s) {
      // CLICK MACRO AND CONFIGURATION SECTION
      var destination = '%%CLICK_URL_ESC%%';
      // DO NOT EDIT BELOW THIS LINE
      var js, bjs = d.getElementsByTagName(s)[0];
      js = d.createElement(s); js.async = true;
      js.src = "//ad.broadstreetads.com/display/.js?sa=1&"
        + (window.broadstreet ? 'init=0' : '')
        + (destination.indexOf('CLICK_URL_ESC') >= 0
          ? '' : '&destination=' + destination);
      bjs.parentNode.insertBefore(js, bjs);
    }(document, 'script'));</script>