The script fills hooks inside the slot. With no hooks it builds a simple link. Ad title and text are required; image is optional.
data-hads-slot
- Slot container. The value is the slot name (for your analytics and layout).
data-hads-topic
- Free-form topical hint for the page/context. The engine maps it to the topic catalog in the background and prefers matching ads; blank, not-yet-mapped, or unmatched hints are ignored.
data-hads-title
- Filled with the ad title.
data-hads-text
- Filled with the ad body text.
data-hads-url
- Ad link (href). Empty <a> gets the advertiser domain; your own text or nested title/text/image hooks are kept. Prefer <a data-hads-url></a> (not <a …/>): <a> is not void; the script drops spare empty anchors from self-closing markup.
data-hads-source
- Domain name of the site that owns the ad. Hook inside the link: <a data-hads-url><svg…></svg><span data-hads-source></span></a>. If the link only has element children (no text, no source hook), the script appends <span class="hads-source">.
data-hads-attribution
- Optional credit link to HADS. An empty <a data-hads-attribution></a> becomes a hads.run link labelled hads.run; custom text inside the link is preserved.
data-hads-image
- Image URL (src on <img>). JPEG/PNG/WebP, max 100 KB. Prefer 16:9; use object-fit: cover in the slot.