Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

...

Info

The slot ID must be the same as on the ad-slot on the page (see below).

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

...

  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:

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

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

...

2. Script input - enter the script here

e.g. outstream-direct-integration via Vlyby

Code Block
<script type='text/javascript'>
      (function () {
            if(typeof window.vlybyRunning === "undefined") {
              var s = document.createElement('script');
              s.setAttribute('type', 'text/javascript');
              s.setAttribute('async', 'true');
              s.setAttribute('src', '//cdn.vlyby.com/qad/qad-outer2.js');
              s.setAttribute('data-PubId', '00ufrdho60fMP3nQO0h7');
              s.setAttribute('data-PlacementId', 'custom');
              s.setAttribute('data-PubRef', 'burdahome.de');        //ONLY FOR TEST-SITE!
              s.setAttribute('data-DivId', 'adtech_outstream_custom');
              window.top.document.head.appendChild(s);
            }
      })();
</script>

...