# Class LiveSession (0.11.1)

0.11.1 (latest) 0.11.0 0.10.0 0.9.0 0.8.0 0.7.18 0.6.1 0.5.1 0.4.0 0.3.2 0.2.1 0.1.2

    LiveSession(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Metadata for a live session. The session expires 5 minutes
after the client stops fetching the session's playlists.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. The name of the live session, in the form of `projects/{project}/locations/{location}/liveSessions/{id}`. |
| `play_uri` | `str` Output only. The URI to play the live session's ad-stitched stream. |
| `ad_tag_macros` | `MutableMapping[str, str]` Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion. If the specified ad tag URI has macros, this field provides the mapping to the value that will replace the macro in the ad tag URI. Macros are designated by square brackets, for example: Ad tag URI: "https://doubleclick.google.com/ad/1?geo_id=\[geoId\]" Ad tag macros: `{"geoId": "123"}` Fully qualified ad tag: `"https://doubleclick.google.com/ad/1?geo_id=123"` |
| `manifest_options` | `https://docs.cloud.google.com/python/docs/reference/videostitcher/latest/google.cloud.video.stitcher_v1.types.ManifestOptions` Additional options that affect the output of the manifest. |
| `gam_settings` | `https://docs.cloud.google.com/python/docs/reference/videostitcher/latest/google.cloud.video.stitcher_v1.types.LiveSession.GamSettings` This field should be set with appropriate values if GAM is being used for ads. |
| `live_config` | `str` Required. The resource name of the live config for this session, in the form of `projects/{project}/locations/{location}/liveConfigs/{id}`. |
| `ad_tracking` | `https://docs.cloud.google.com/python/docs/reference/videostitcher/latest/google.cloud.video.stitcher_v1.types.AdTracking` Determines how the ad should be tracked. This overrides the value set in the live config for this session. |

## Classes

### AdTagMacrosEntry

    AdTagMacrosEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |

### GamSettings

    GamSettings(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Defines fields related to Google Ad Manager (GAM).