# Event

- [JSON representation](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Event#SCHEMA_REPRESENTATION)
- [EventType](https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Event#EventType)

Describes an event and a trigger URI.

| JSON representation |
|---|
| ``` { "type": enum (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Event#EventType`), "uri": string, "id": string, "offset": string } ``` |

| Fields ||
|---|---|
| `type` | ``enum (`https://docs.cloud.google.com/video-stitcher/docs/reference/rest/v1/Event#EventType`)`` Describes the event that occurred. |
| `uri` | `string` The URI to trigger for this event. |
| `id` | `string` The ID of the event. |
| `offset` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#duration` format)`` The offset in seconds if the event type is `PROGRESS`. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |

## EventType

Describes the event that occurred.

| Enums ||
|---|---|
| `EVENT_TYPE_UNSPECIFIED` | The event type is unspecified. |
| `CREATIVE_VIEW` | First frame of creative ad viewed. |
| `START` | Creative ad started. |
| `BREAK_START` | Start of an ad break. |
| `BREAK_END` | End of an ad break. |
| `IMPRESSION` | Impression. |
| `FIRST_QUARTILE` | First quartile progress. |
| `MIDPOINT` | Midpoint progress. |
| `THIRD_QUARTILE` | Third quartile progress. |
| `COMPLETE` | Ad progress completed. |
| `PROGRESS` | Specific progress event with an offset. |
| `MUTE` | Player muted. |
| `UNMUTE` | Player unmuted. |
| `PAUSE` | Player paused. |
| `CLICK` | Click event. |
| `CLICK_THROUGH` | Click-through event. |
| `REWIND` | Player rewinding. |
| `RESUME` | Player resumed. |
| `ERROR` | Error event. |
| `EXPAND` | Ad expanded to a larger size. |
| `COLLAPSE` | Ad collapsed to a smaller size. |
| `CLOSE` | Non-linear ad closed. |
| `CLOSE_LINEAR` | Linear ad closed. |
| `SKIP` | Ad skipped. |
| `ACCEPT_INVITATION` | Accept invitation event. |