SwAdMarquee
Ad Placement Four Essentials
- Use case: announcement slot / top-bar horizontally scrolling text ad (slotKey e.g.
home_marquee)- Industry form: Marquee (a common format in the domestic market; AdSDK format
marquee)- Visual form: seamless horizontally scrolling text marquee
- Tracking events: same as banner —
adImpression(once on entering the viewport via IntersectionObserver) /adClick; built-in zero-config, silent no-op when the tracker gate is offPicking the wrong scenario = wrong
ad_type/ timing in tracking. See Ad Component Selection.
SwAdMarquee is the marquee text ad slot component — a "text-card-type" self-rendering component of the ad foundation. Multiple lines of copy scroll horizontally and seamlessly, ideal for a notice bar / scrolling announcement slot. Impression / click tracking is built in.
Marquee scrolling
加载中...
scrollSpeedPx comparison
加载中...
Left-pinned inline badge
加载中...
Events
加载中...
Empty @empty
加载中...
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
items | SwAdItem[] | ✓ | — | Ad creative array (uses title as copy) |
slotKey | string | ✓ | — | Ad slot key → ad_slot_key |
slotName | string | undefined | Ad slot name → ad_slot_name | |
pageKey | string | undefined | Page key → page_key | |
pageName | string | undefined | Page name → page_name | |
showAdLabel | boolean | undefined | "Ad" compliance badge (inline variant, pinned at the left end of the strip; scrolling text passes to its right); when not set it follows the global swiftConfig.ad.showLabel (default true), an explicit value always wins | |
scrollSpeedPx | number | 50 | Scroll speed (px/s) |
Events
| Name | Payload | Description |
|---|---|---|
load | — | Rendered |
empty | — | items empty |
impression | items: SwAdItem[] | Impression (auto tracking) |
click | item: SwAdItem | A line clicked (auto tracking) |
error | — | Render / load error |
<SwAdMarquee :items="notices" slot-key="top_marquee" :scroll-speed-px="40" show-ad-label />
Caveats
- Copy comes from
item.title; speed is controlled byscrollSpeedPx(px/s) — larger is faster. - Tracking is built in and gated.