BTA Feed
Overview
Section titled “Overview”BTA Feed is a ready-to-use feed designed to display below an article. It consists of a set of configurable widgets, typically including Yaleo placement widgets. Ad serving uses Prebid.js with support for multiple ad providers.
AdConsole Configuration
Section titled “AdConsole Configuration”Located under Yaleo / BTA Feed: https://app.adconsole.com/yaleo/bta-feed/v2
Integration
Section titled “Integration”Direct
Section titled “Direct”The publisher adds the BTA Feed script and initialization directly in their page markup.
Include the script tag on the page:
<script async src="https://cdn.adnz.co/bta-feed/index.js"></script>Initialize the feed:
window.adnzBtaFeed = window.adnzBtaFeed || {};window.adnzBtaFeed.queue = window.adnzBtaFeed.queue || [];window.adnzBtaFeed.queue.push(() => { window.adnzBtaFeed.start({ btaFeedId: '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 BTA Integration Script (Prebid) script from AdConsole / Raw Scripts to the tag.
- Add a new Raw JS script that calls
setupBtaFeedwith the target element ID and BTA Feed ID:
setupBtaFeed('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/bta-feed/. Each script wraps the standard setupBtaFeed call and extends it with publisher-specific logic — for example, resolving the target element via XPath when a stable DOM ID is unavailable, or deferring initialization until a custom lifecycle hook fires.
Applications
Section titled “Applications”| App | Status | Description |
|---|---|---|
js/apps/bta-feed-prebid | Current | Current implementation. Use for all new integrations. |
js/apps/bta-feed | Deprecated | Replaced by js/apps/bta-feed-prebid. Migration details and websites still using this script are tracked in #18279. |