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>

e.g.

  1. Custom slot ID

...

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

Code Block

...

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

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

...

  1. Use User consent: when you switch on the toggle then a field opens in which the Vendor ID for the corresponding service provider must be entered. If you only give partial consent on the first page call, the script is no longer written to the page.

  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-DivId', 'vlyby-custom');
              window.top.document.head.appendChild(s);
            }
      })();
</script>
<div id="vlyby-custom"></div>