SwAdMarquee

廣告位四要素

  • 使用場景:公告位 / 頂欄橫向滾動文字廣告(slotKey 例 home_marquee)
  • 業界形態:Marquee(中國大陸常見形態;AdSDK 格式 marquee)
  • 表現形態:文字橫向無縫滾動跑馬燈
  • 打點事件:同 banner —— adImpression(IntersectionObserver 進入視窗一次)/ adClick;自動內建零組態,gate 關閉靜默 no-op

選錯場景 = 埋點 ad_type / 時機全錯。按場景選元件見 廣告元件選型。

SwAdMarquee 是跑馬燈文字廣告位元件,屬廣告底座「文字卡片類」自渲染元件。多條文案橫向無縫滾動,適合通知欄 / 滾動公告位。內建曝光 / 點擊埋點。

跑馬燈滾動

加载中...

scrollSpeedPx 速度對比

加载中...

左端 inline 角標(台標式)

加载中...

事件總覽

加载中...

空資料 @empty

加载中...

Props

名稱類型必填預設值說明
itemsSwAdItem[]✓—廣告創意陣列(用 title 作文案)
slotKeystring✓—廣告位鍵 → ad_slot_key
slotNamestringundefined廣告位名 → ad_slot_name
pageKeystringundefined頁面鍵 → page_key
pageNamestringundefined頁面名 → page_name
showAdLabelbooleanundefined「廣告」合規角標(inline 行內形態,固定在條帶左端不隨內容滾動,滾動文字從其右側滾過);不傳時跟隨全域 swiftConfig.ad.showLabel(預設 true),顯式傳值始終優先
scrollSpeedPxnumber50滾動速度(px/s)

Events

名稱攜帶說明
load—渲染完成
empty—items 為空
impressionitems: SwAdItem[]曝光(自動埋點)
clickitem: SwAdItem點擊某條文案(自動埋點)
error—渲染 / 載入錯誤
<SwAdMarquee :items="notices" slot-key="top_marquee" :scroll-speed-px="40" show-ad-label />

注意事項

  • 文案取 item.title;速度由 scrollSpeedPx(px/s)控制,越大越快。
  • 埋點內建,受 tracker 雙重 gate。