如何实现类Google Viewability的视频可见性?SSP端VAST环境下JS加载求指引
Hey there! Since you can't load custom JavaScript on the SSP side and only have access to send standard VAST XML, let's focus on leveraging VAST's native capabilities and SSP-specific extensions to build viewability tracking similar to Google's solution. Here are actionable directions to explore:
Core Strategies to Implement
Leverage VAST Native & SSP-Extended Tracking Events
VAST has standard tracking events, but most SSPs extend these to support viewability-specific triggers. First, dig into your target SSP's VAST documentation to check if they support events likeviewableImpression,viewable50(50% of video in viewport for X seconds), orviewable100. If they do, you can add<Tracking>elements in your VAST XML with the correspondingeventattribute pointing to your tracking endpoint. For example:<Tracking event="viewable50"> <![CDATA[https://your-tracking-service.com/record?viewability=50]]> </Tracking>Integrate Third-Party Viewability Provider Pixels
Most major ad viewability providers offer pre-built VAST-compatible tracking pixels that work directly with SSPs—no custom JS needed. These providers have existing integrations with SSPs to handle viewability detection on their side. All you need to do is include their tracking URLs in your VAST's<Tracking>sections, following their specific formatting rules (e.g., adding account IDs or video metadata as URL parameters). For example, a provider might ask you to add aviewableevent tracker pointing to their pixel URL with your campaign ID.Use VAST's
ViewableImpressionStandard
The VAST 4.0+ specification includes a<ViewableImpression>element designed specifically for viewability tracking. This element lets you define multiple trackers that fire when the ad meets specific viewability criteria (like 50% visibility for 2 seconds). While support varies by SSP, many modern platforms adhere to this standard. Here's a quick example:<ViewableImpression id="viewable-1"> <Tracking event="viewable"> <![CDATA[https://your-tracking.com/viewable-trigger]]> </Tracking> <Tracking event="notViewable"> <![CDATA[https://your-tracking.com/not-viewable-trigger]]> </Tracking> </ViewableImpression>Fallback: Companion Ad Indirect Tracking
If your SSP doesn't support direct video viewability triggers, you could use a transparent, zero-sized<CompanionAd>placed in the same container as the video. Some SSPs track companion ad visibility, so when the companion enters the viewport, you can infer the video is likely visible too. This is a workaround, not a perfect solution, but it can work as a fallback for less flexible SSPs.
Key Next Steps
- Audit Your SSP's VAST Documentation: This is non-negotiable—every SSP has unique support for viewability events and extensions. Look for sections on "viewability tracking", "custom events", or "VAST 4.x support".
- Test with SSP Sandboxes: Most SSPs provide testing tools or sandboxes where you can submit your VAST XML and verify if tracking requests fire under the right viewability conditions.
- Validate with Provider Support: If using a third-party viewability provider, reach out to their support team to confirm their VAST setup works with your target SSP—they often have pre-built templates or troubleshooting tips.
内容的提问来源于stack exchange,提问作者Mohit Patil

