Yield Cortex / Implementation

Wrapper Documentation

A high-performance, modular header-bidding wrapper powered by Prebid.js. This guide covers capabilities, setup, refresh controls, and dynamic-content handling. Your Customer Success Manager provides the codes tailored to your site.

What the wrapper doesBuilt for billions of pageviews, thousands of domains.

Modular architecture

Each domain loads a custom-built, optimized payload, with versioned CI/CD builds on every change.

AI-fueled optimization

Dynamic price flooring, intelligent price adjustments, and ad-delivery tuning.

Prebid.js, client + server

Client-side and hybrid bidding. Works with rich media, identity modules (ID5, UID2), and consent frameworks.

Full GAM automation

No on-page GAM tags required. Handles key-value targeting, creative decisioning, and analytics.

Fast CDN delivery

Ad-tech-optimized CDN: fast loads, adjustable timeouts, smart caching, adjustable lazy-load windows.

Privacy by design

TCF v2.2 and CCPA support, integrates with leading CMPs. Transparent, no black-box reporting.

Also included: bot-traffic filtering for clean auction signals, granular refresh rules, fallback renderers for no-fill, and custom JS hooks for auctions, ad rendering, and bid events. Fully JSON-configurable, with dynamic configs via the Publisher API.

Getting startedYour CSM provides a unique set of codes for your site and layout.

Header

Insert the header code between the <head> and </head> tags. It performs best placed as close to the top as possible.

Header
Header

Example in context:

Example
Example

Body

Place the body tag in the body of the page, where the ad should display.

Body (full page example)
Body (full page example)
The header/body codes above are samples (adv.test.js). Your CSM provides the codes tailored to your site.

SMART RefreshServe additional impressions while holding viewability and user experience.

Always test refresh intervals to balance viewability, user experience, and revenue impact.

Refresh all

Refreshes every ad unit on the page simultaneously.

Code
Code

Parameters: None

Usage
Usage

Refresh specific ad units

Specify which ad units to refresh.

Code
Code

Parameters: An array of strings, each the full GAM path to the ad unit. Syntax: /DFP Account ID/Adunit Code.

Usage
Usage

Refresh by DIV ID

Refresh based on DIV ID.

Code
Code

Parameters: An array of strings (DIV IDs).

Implemented
Implemented

Refresh elements

Refresh ad units defined by their HTML elements.

Code
Code

Parameters: An array of HTML Object Elements.

Implemented
Implemented

Dynamic contentFor ad slots added after load: infinite scroll, AJAX content.

By default the wrapper processes all ad DIVs present at page load. If DIVs are added later, notify the wrapper once the new content is ready. New DIVs can be added by any method as long as they include the required datasets: data-aaad and data-aa-adunit.

Calling a function

Calling a function
Calling a function

Firing a document event

Firing a document event
Firing a document event

Codes are provided per site by your Customer Success Manager. Questions: [email protected]