3.4.0 (latest) 3.3.0 3.2.0 3.1.0 3.0.0 2.0.0 1.1.0 1.0.0

    public sealed class Companion : IMessage<Companion>, IEquatable<Companion>, IDeepCloneable<Companion>, IBufferMessage, IMessage

Reference documentation and code samples for the Video Stitcher v1 API class Companion.

Metadata for a companion.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Companion

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Companion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.Companion.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Companion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.Companion.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Companion](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.Companion.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Video.Stitcher.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Video.Stitcher.V1/latest/Google.Cloud.Video.Stitcher.V1.md.txt)

## Assembly

Google.Cloud.Video.Stitcher.V1.dll

## Constructors

### Companion()

    public Companion()

### Companion(Companion)

    public Companion(Companion other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Companion` |

## Properties

### AdResourceCase

    public Companion.AdResourceOneofCase AdResourceCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `CompanionAdResourceOneofCase` |   |

### AdSlotId

    public string AdSlotId { get; set; }

The ID used to identify the desired placement on a publisher's page.
Values to be used should be discussed between publishers and
advertisers.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ApiFramework

    public string ApiFramework { get; set; }

The API necessary to communicate with the creative if available.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### AssetHeightPx

    public int AssetHeightPx { get; set; }

The pixel height of the creative.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### AssetWidthPx

    public int AssetWidthPx { get; set; }

The pixel width of the creative.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### Events

    public RepeatedField<Event> Events { get; }

The list of tracking events for the companion.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldEvent` |   |

### ExpandedHeightPx

    public int ExpandedHeightPx { get; set; }

The maximum pixel height of the creative in its expanded state.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### ExpandedWidthPx

    public int ExpandedWidthPx { get; set; }

The maximum pixel width of the creative in its expanded state.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### HeightPx

    public int HeightPx { get; set; }

The pixel height of the placement slot for the intended creative.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### HtmlAdResource

    public HtmlAdResource HtmlAdResource { get; set; }

The HTML ad resource associated with the companion ad.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `HtmlAdResource` |   |

### IframeAdResource

    public IframeAdResource IframeAdResource { get; set; }

The IFrame ad resource associated with the companion ad.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `IframeAdResource` |   |

### StaticAdResource

    public StaticAdResource StaticAdResource { get; set; }

The static ad resource associated with the companion ad.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `StaticAdResource` |   |

### WidthPx

    public int WidthPx { get; set; }

The pixel width of the placement slot for the intended creative.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `int` |   |