Skip to content

Direct Integration

Direct integration loads js/apps/yaleo from CDN and calls window.yaleo.start() with the necessary parameters.

The publisher adds the Yaleo script and initialization directly in their page markup.

Include the script tag on the page:

<script async src="https://cdn.adnz.co/yaleo/index.js"></script>

Call window.yaleo.start() with the placement ID and target element:

window.yaleo.start({
yaleoPlacementId: '00000000-0000-0000-0000-000000000000',
element: document.getElementById('target-element-id'),
});

The integration script is deployed as a Raw JS entry in Headertag.

  1. Assign the Yaleo Integration Script from AdConsole / Raw Scripts to the tag.
  2. Add a new Raw JS script that calls setupYaleo with the target element ID and placement ID:
setupYaleo('target-element-id', '00000000-0000-0000-0000-000000000000');

For publishers with complex or non-standard integration requirements, per-publisher scripts are maintained in js/scripts/yaleo/. Each script wraps the standard window.yaleo.start() call and extends it with publisher-specific logic — for example, resolving the target element dynamically, overriding the default ad index, or deferring initialization until a publisher-specific lifecycle event fires.