Direct Integration
Overview
Section titled “Overview”Direct integration loads js/apps/yaleo from CDN and calls window.yaleo.start() with the necessary parameters.
On Publisher’s Side
Section titled “On Publisher’s Side”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'),});Headertag Raw JS
Section titled “Headertag Raw JS”The integration script is deployed as a Raw JS entry in Headertag.
- Assign the Yaleo Integration Script from AdConsole / Raw Scripts to the tag.
- Add a new Raw JS script that calls
setupYaleowith the target element ID and placement ID:
setupYaleo('target-element-id', '00000000-0000-0000-0000-000000000000');Helper Scripts
Section titled “Helper Scripts”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.