# Interstitials

- [JSON representation](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Interstitials#SCHEMA_REPRESENTATION)
- [VodSessionAdBreak](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Interstitials#VodSessionAdBreak)
  - [JSON representation](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Interstitials#VodSessionAdBreak.SCHEMA_REPRESENTATION)
- [VodSessionAd](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Interstitials#VodSessionAd)
  - [JSON representation](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Interstitials#VodSessionAd.SCHEMA_REPRESENTATION)
- [VodSessionContent](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Interstitials#VodSessionContent)
  - [JSON representation](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Interstitials#VodSessionContent.SCHEMA_REPRESENTATION)

Describes what was stitched into a VOD session's manifest.

| JSON representation |
|---|
| ``` { "adBreaks": [ { object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Interstitials#VodSessionAdBreak`) } ], "sessionContent": { object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Interstitials#VodSessionContent`) } } ``` |

| Fields ||
|---|---|
| `adBreaks[]` | ``object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Interstitials#VodSessionAdBreak`)`` List of ad breaks ordered by time. |
| `sessionContent` | ``object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Interstitials#VodSessionContent`)`` Information related to the content of the VOD session. |

## VodSessionAdBreak

Metadata for an inserted ad break.

| JSON representation |
|---|
| ``` { "progressEvents": [ { object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/ProgressEvent`) } ], "ads": [ { object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Interstitials#VodSessionAd`) } ], "endTimeOffset": string, "startTimeOffset": string } ``` |

| Fields ||
|---|---|
| `progressEvents[]` | ``object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/ProgressEvent`)`` List of events that are expected to be triggered, ordered by time. |
| `ads[]` | ``object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Interstitials#VodSessionAd`)`` Ordered list of ads stitched into the ad break. |
| `endTimeOffset` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` format)`` Ad break end time in seconds relative to the start of the VOD asset. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `startTimeOffset` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` format)`` Ad break start time in seconds relative to the start of the VOD asset. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## VodSessionAd

Metadata for an inserted ad in a VOD session.

| JSON representation |
|---|
| ``` { "duration": string, "companionAds": { object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/CompanionAds`) }, "activityEvents": [ { object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Event`) } ] } ``` |

| Fields ||
|---|---|
| `duration` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` format)`` Duration in seconds of the ad. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `companionAds` | ``object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/CompanionAds`)`` Metadata of companion ads associated with the ad. |
| `activityEvents[]` | ``object (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Event`)`` The list of progress tracking events for the ad break. These can be of the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`, `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`, `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`, `CLOSE_LINEAR`, `SKIP`. |

## VodSessionContent

Metadata for the entire stitched content in a VOD session.

| JSON representation |
|---|
| ``` { "duration": string } ``` |

| Fields ||
|---|---|
| `duration` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration` format)`` The total duration in seconds of the content including the ads stitched in. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |