[[["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\u003eCompanion\u003c/code\u003e class in the Google Cloud Video Stitcher v1 API provides metadata for companion ads used alongside video content.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, offering functionalities like message handling, equality checks, deep cloning, and buffer message support.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCompanion\u003c/code\u003e supports various ad resources including HTML, IFrame, and static resources, each associated with specific properties such as dimensions, ad slot ID, and API framework.\u003c/p\u003e\n"],["\u003cp\u003eThe class also offers methods for tracking events associated with the companion ad, enabling insights into user interaction.\u003c/p\u003e\n"],["\u003cp\u003eSeveral versions of the \u003ccode\u003eCompanion\u003c/code\u003e class are documented, ranging from version 1.0.0 to the latest version 3.3.0.\u003c/p\u003e\n"]]],[],null,["# Video Stitcher v1 API - Class Companion (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.Companion)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/3.2.0/Google.Cloud.Video.Stitcher.V1.Companion)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/3.1.0/Google.Cloud.Video.Stitcher.V1.Companion)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/3.0.0/Google.Cloud.Video.Stitcher.V1.Companion)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/2.0.0/Google.Cloud.Video.Stitcher.V1.Companion)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/1.1.0/Google.Cloud.Video.Stitcher.V1.Companion)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/1.0.0/Google.Cloud.Video.Stitcher.V1.Companion) \n\n public sealed class Companion : IMessage\u003cCompanion\u003e, IEquatable\u003cCompanion\u003e, IDeepCloneable\u003cCompanion\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Video Stitcher v1 API class Companion.\n\nMetadata for a companion. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Companion \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Companion](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.Companion), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Companion](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.Companion), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Companion](/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.Companion), [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### Companion()\n\n public Companion()\n\n### Companion(Companion)\n\n public Companion(Companion other)\n\nProperties\n----------\n\n### AdResourceCase\n\n public Companion.AdResourceOneofCase AdResourceCase { get; }\n\n### AdSlotId\n\n public string AdSlotId { get; set; }\n\nThe ID used to identify the desired placement on a publisher's page.\nValues to be used should be discussed between publishers and\nadvertisers.\n\n### ApiFramework\n\n public string ApiFramework { get; set; }\n\nThe API necessary to communicate with the creative if available.\n\n### AssetHeightPx\n\n public int AssetHeightPx { get; set; }\n\nThe pixel height of the creative.\n\n### AssetWidthPx\n\n public int AssetWidthPx { get; set; }\n\nThe pixel width of the creative.\n\n### Events\n\n public RepeatedField\u003cEvent\u003e Events { get; }\n\nThe list of tracking events for the companion.\n\n### ExpandedHeightPx\n\n public int ExpandedHeightPx { get; set; }\n\nThe maximum pixel height of the creative in its expanded state.\n\n### ExpandedWidthPx\n\n public int ExpandedWidthPx { get; set; }\n\nThe maximum pixel width of the creative in its expanded state.\n\n### HeightPx\n\n public int HeightPx { get; set; }\n\nThe pixel height of the placement slot for the intended creative.\n\n### HtmlAdResource\n\n public HtmlAdResource HtmlAdResource { get; set; }\n\nThe HTML ad resource associated with the companion ad.\n\n### IframeAdResource\n\n public IframeAdResource IframeAdResource { get; set; }\n\nThe IFrame ad resource associated with the companion ad.\n\n### StaticAdResource\n\n public StaticAdResource StaticAdResource { get; set; }\n\nThe static ad resource associated with the companion ad.\n\n### WidthPx\n\n public int WidthPx { get; set; }\n\nThe pixel width of the placement slot for the intended creative."]]