Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
The StreamActivityMonitorService allows you to access information about stream sessions, including session ID, type (VOD or live), and request details.
SamSession objects provide data on stream sessions such as ad breaks, start time, session duration, and content duration.
Stream session data is organized within the https://www.google.com/apis/ads/publisher/v202411 namespace.
StreamCreateRequest can be of three types: general StreamCreateRequest, LinearStreamCreateRequest (for live streams), and VodStreamCreateRequest (for video-on-demand streams).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[],["The `StreamActivityMonitorService` uses `getSamSessionsByStatement()` to retrieve `SamSession` data. Each `SamSession` includes details like `sessionId`, `isVodSession`, and the type of stream creation request (`StreamCreateRequest`, `LinearStreamCreateRequest`, or `VodStreamCreateRequest`). It also contains an array of `AdBreak` objects, `startDateTime`, `sessionDurationMillis`, and `contentDurationMillis`. These components offer information regarding a session and its characteristics, like whether it's a video-on-demand session, start time and duration.\n"]]