public sealed class LiveSession.Types.GamSettings : IMessage<LiveSession.Types.GamSettings>, IEquatable<LiveSession.Types.GamSettings>, IDeepCloneable<LiveSession.Types.GamSettings>, IBufferMessage, IMessage
Reference documentation and code samples for the Video Stitcher v1 API class LiveSession.Types.GamSettings.
Defines fields related to Google Ad Manager (GAM).
[[["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-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eLiveSession.Types.GamSettings\u003c/code\u003e class in the Video Stitcher v1 API defines the fields necessary for integrating with Google Ad Manager (GAM) for ad-related functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, ensuring compatibility and advanced features like deep cloning.\u003c/p\u003e\n"],["\u003cp\u003eIt provides two constructors: a default constructor and one that allows initialization based on another instance of \u003ccode\u003eLiveSession.Types.GamSettings\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStreamId\u003c/code\u003e property is required for client-side ad tracking when using GAM, and it stores the stream ID generated by Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTargetingParameters\u003c/code\u003e property is used for server-side ad tracking and allows the user to provide key-value pairs for targeting parameters to Ad Manager.\u003c/p\u003e\n"]]],[],null,["# Video Stitcher v1 API - Class LiveSession.Types.GamSettings (3.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.3.0 (latest)](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.LiveSession.Types.GamSettings)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/3.2.0/Google.Cloud.Video.Stitcher.V1.LiveSession.Types.GamSettings)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/3.1.0/Google.Cloud.Video.Stitcher.V1.LiveSession.Types.GamSettings)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/3.0.0/Google.Cloud.Video.Stitcher.V1.LiveSession.Types.GamSettings)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/2.0.0/Google.Cloud.Video.Stitcher.V1.LiveSession.Types.GamSettings)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/1.1.0/Google.Cloud.Video.Stitcher.V1.LiveSession.Types.GamSettings)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/1.0.0/Google.Cloud.Video.Stitcher.V1.LiveSession.Types.GamSettings) \n\n public sealed class LiveSession.Types.GamSettings : IMessage\u003cLiveSession.Types.GamSettings\u003e, IEquatable\u003cLiveSession.Types.GamSettings\u003e, IDeepCloneable\u003cLiveSession.Types.GamSettings\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Video Stitcher v1 API class LiveSession.Types.GamSettings.\n\nDefines fields related to Google Ad Manager (GAM). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e LiveSession.Types.GamSettings \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LiveSession](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.LiveSession)[Types](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.LiveSession.Types)[GamSettings](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.LiveSession.Types.GamSettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LiveSession](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.LiveSession)[Types](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.LiveSession.Types)[GamSettings](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.LiveSession.Types.GamSettings), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LiveSession](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.LiveSession)[Types](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.LiveSession.Types)[GamSettings](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.LiveSession.Types.GamSettings), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Video.Stitcher.V1](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Video.Stitcher.V1.dll\n\nConstructors\n------------\n\n### GamSettings()\n\n public GamSettings()\n\n### GamSettings(GamSettings)\n\n public GamSettings(LiveSession.Types.GamSettings other)\n\nProperties\n----------\n\n### StreamId\n\n public string StreamId { get; set; }\n\nRequired. The stream ID generated by Ad Manager. This must be set if GAM\nis being used for ads and the session uses client-side ad tracking.\n\n### TargetingParameters\n\n public MapField\u003cstring, string\u003e TargetingParameters { get; }\n\n[Targeting\nparameters](https://support.google.com/admanager/answer/7320899) to send\nto Ad Manager to generate a stream ID. This should only be set if the\nsession uses server-side ad tracking."]]