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 off

Picking 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

NameTypeRequiredDefaultDescription
itemsSwAdItem[]✓—Ad creative array (uses title as copy)
slotKeystring✓—Ad slot key → ad_slot_key
slotNamestringundefinedAd slot name → ad_slot_name
pageKeystringundefinedPage key → page_key
pageNamestringundefinedPage name → page_name
showAdLabelbooleanundefined"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
scrollSpeedPxnumber50Scroll speed (px/s)

Events

NamePayloadDescription
load—Rendered
empty—items empty
impressionitems: SwAdItem[]Impression (auto tracking)
clickitem: SwAdItemA 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 by scrollSpeedPx (px/s) — larger is faster.
  • Tracking is built in and gated.