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"
This field should be set with appropriate values if GAM is being used for ads.
↳ live_config
string
Required. The resource name of the live config for this session, in the form ofprojects/{project}/locations/{location}/liveConfigs/{id}.
↳ ad_tracking
int
Determines how the ad should be tracked. This overrides the value set in the live config for this session.
getName
Output only. The name of the live session, in the form ofprojects/{project}/locations/{location}/liveSessions/{id}.
Returns
Type
Description
string
setName
Output only. The name of the live session, in the form ofprojects/{project}/locations/{location}/liveSessions/{id}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPlayUri
Output only. The URI to play the live session's ad-stitched stream.
Returns
Type
Description
string
setPlayUri
Output only. The URI to play the live session's ad-stitched stream.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getAdTagMacros
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"
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"
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Video Stitcher V1 Client - Class LiveSession (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-video-stitcher/latest/V1.LiveSession)\n- [1.0.3](/php/docs/reference/cloud-video-stitcher/1.0.3/V1.LiveSession)\n- [0.9.1](/php/docs/reference/cloud-video-stitcher/0.9.1/V1.LiveSession)\n- [0.8.4](/php/docs/reference/cloud-video-stitcher/0.8.4/V1.LiveSession)\n- [0.7.3](/php/docs/reference/cloud-video-stitcher/0.7.3/V1.LiveSession)\n- [0.6.2](/php/docs/reference/cloud-video-stitcher/0.6.2/V1.LiveSession)\n- [0.5.1](/php/docs/reference/cloud-video-stitcher/0.5.1/V1.LiveSession)\n- [0.3.4](/php/docs/reference/cloud-video-stitcher/0.3.4/V1.LiveSession) \nReference documentation and code samples for the Google Cloud Video Stitcher V1 Client class LiveSession.\n\nMetadata for a live session. The session expires 5 minutes after the client\nstops fetching the session's playlists.\n\nGenerated from protobuf message `google.cloud.video.stitcher.v1.LiveSession`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Video \\\\ Stitcher \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. The name of the live session, in the form of\n`projects/{project}/locations/{location}/liveSessions/{id}`.\n\n### setName\n\nOutput only. The name of the live session, in the form of\n`projects/{project}/locations/{location}/liveSessions/{id}`.\n\n### getPlayUri\n\nOutput only. The URI to play the live session's ad-stitched stream.\n\n### setPlayUri\n\nOutput only. The URI to play the live session's ad-stitched stream.\n\n### getAdTagMacros\n\nKey value pairs for ad tag macro replacement, only available for live\nsessions that do not implement Google Ad manager ad insertion. If the\nspecified ad tag URI has macros, this field provides the mapping to the\nvalue that will replace the macro in the ad tag URI.\n\nMacros are designated by square brackets, for example:\nAd tag URI: \"https://doubleclick.google.com/ad/1?geo_id=\\[geoId\\]\"\nAd tag macros: `{\"geoId\": \"123\"}`\nFully qualified ad tag:\n`\"https://doubleclick.google.com/ad/1?geo_id=123\"`\n\n### setAdTagMacros\n\nKey value pairs for ad tag macro replacement, only available for live\nsessions that do not implement Google Ad manager ad insertion. If the\nspecified ad tag URI has macros, this field provides the mapping to the\nvalue that will replace the macro in the ad tag URI.\n\nMacros are designated by square brackets, for example:\nAd tag URI: \"https://doubleclick.google.com/ad/1?geo_id=\\[geoId\\]\"\nAd tag macros: `{\"geoId\": \"123\"}`\nFully qualified ad tag:\n`\"https://doubleclick.google.com/ad/1?geo_id=123\"`\n\n### getManifestOptions\n\nAdditional options that affect the output of the manifest.\n\n### hasManifestOptions\n\n### clearManifestOptions\n\n### setManifestOptions\n\nAdditional options that affect the output of the manifest.\n\n### getGamSettings\n\nThis field should be set with appropriate values if GAM is being used for\nads.\n\n### hasGamSettings\n\n### clearGamSettings\n\n### setGamSettings\n\nThis field should be set with appropriate values if GAM is being used for\nads.\n\n### getLiveConfig\n\nRequired. The resource name of the live config for this session, in the\nform of `projects/{project}/locations/{location}/liveConfigs/{id}`.\n\n### setLiveConfig\n\nRequired. The resource name of the live config for this session, in the\nform of `projects/{project}/locations/{location}/liveConfigs/{id}`.\n\n### getAdTracking\n\nDetermines how the ad should be tracked. This overrides the value set in\nthe live config for this session.\n\n### setAdTracking\n\nDetermines how the ad should be tracked. This overrides the value set in\nthe live config for this session."]]