Skip to end of banner
Go to start of banner

Custom Slot Tab

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

Custom Slot scripts are scripts that will be shown in ATF Ad Slots, which are Custom format:

<atf-ad-slot id="new_custom_script" atf-customSlot=”adtech_outstream_custom” atf-format="custom"></atf-ad-slot>

e.g.

  1. Custom slot ID - it is ID which will be passed in ad slot definition, so that ATF SDK knows which script to include

e.g. outstream-integration on our food-sites:

<atf-ad-slot id="custom-slot-outstream-1" atf-customSlot="adtech_outstream_custom" atf-format="custom"></atf-ad-slot>

  1. Script input - enter the script here

e.g. outstream-integration via Vlyby

<script type='text/javascript' id='qad_%%CACHEBUSTER%%_%ebuy!_%eaid!_%ecid!'>
    (function () {
      if(typeof window.vlybyRunning === "undefined") {
        var inIframe = (window.parent != window.self && !!window.inDapIF);
        var iframeParent = (inIframe)
            ? window.self.frameElement.parentNode
            : window.document.getElementById('qad_%%CACHEBUSTER%%_%ebuy!_%eaid!_%ecid!').parentNode;
        var target = window.document.createElement('div');
        var id = 'Qad%%CACHEBUSTER%%'; target.setAttribute('id', id);
        iframeParent.appendChild(target);
        if (inIframe) {
            window.self.frameElement.style.position = 'absolute';
            window.self.frameElement.style.display = 'none';
        }
        var s = document.createElement('script');
        s.setAttribute('type', 'text/javascript');
        s.setAttribute('async', 'true');
        s.setAttribute('src', '%%SCHEME%%//cdn.vlyby.com/qad/qad-outer2.js');
        s.setAttribute('data-PubId', '00ufrdho60fMP3nQO0h7');
        s.setAttribute('data-PlacementId', 'Default');
        s.setAttribute('data-DivId', 'Qad%%CACHEBUSTER%%');
        window.top.document.head.appendChild(s);
      }
    })();
  </script>

  • No labels