# Class Companion (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

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

Metadata for a companion.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `iframe_ad_resource` | `https://docs.cloud.google.com/python/docs/reference/videostitcher/latest/google.cloud.video.stitcher_v1.types.IframeAdResource` The IFrame ad resource associated with the companion ad. This field is a member of `oneof`_ `ad_resource`. |
| `static_ad_resource` | `https://docs.cloud.google.com/python/docs/reference/videostitcher/latest/google.cloud.video.stitcher_v1.types.StaticAdResource` The static ad resource associated with the companion ad. This field is a member of `oneof`_ `ad_resource`. |
| `html_ad_resource` | `https://docs.cloud.google.com/python/docs/reference/videostitcher/latest/google.cloud.video.stitcher_v1.types.HtmlAdResource` The HTML ad resource associated with the companion ad. This field is a member of `oneof`_ `ad_resource`. |
| `api_framework` | `str` The API necessary to communicate with the creative if available. |
| `height_px` | `int` The pixel height of the placement slot for the intended creative. |
| `width_px` | `int` The pixel width of the placement slot for the intended creative. |
| `asset_height_px` | `int` The pixel height of the creative. |
| `expanded_height_px` | `int` The maximum pixel height of the creative in its expanded state. |
| `asset_width_px` | `int` The pixel width of the creative. |
| `expanded_width_px` | `int` The maximum pixel width of the creative in its expanded state. |
| `ad_slot_id` | `str` The ID used to identify the desired placement on a publisher's page. Values to be used should be discussed between publishers and advertisers. |
| `events` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/videostitcher/latest/google.cloud.video.stitcher_v1.types.Event]` The list of tracking events for the companion. |