0.15.1 (latest) 0.15.0 0.14.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.1 0.3.1 0.2.0 0.1.3 Reference documentation and code samples for the Google Ads Ad Manager V1 Client class LinearInfo.

The [LiveStream](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream) resource
in the stream request that creates the DAI session.

Generated from protobuf message `google.ads.admanager.v1.DaiSession.CreationContext.LinearInfo`

## Namespace

Google \\ Ads \\ AdManager \\ V1 \\ DaiSession \\ CreationContext

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ live_stream` | `string` Output only. The [name](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getName__) field of the [LiveStream](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream) resource. |
| `↳ asset_key` | `string` Output only. The [LiveStream.asset_key](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getAssetKey__) field. Google Ad Manager only generates this field for livestreams with the [dynamic_ad_insertion_type](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getDynamicAdInsertionType__) field set to [DynamicAdInsertionType.LINEAR](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType#_Google_Ads_AdManager_V1_DynamicAdInsertionTypeEnum_DynamicAdInsertionType__LINEAR) value. |
| `↳ custom_asset_key` | `string` Output only. The [LiveStream.custom_asset_key](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getCustomAssetKey__) field. This field is only populated for livestreams with the [dynamic_ad_insertion_type](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getDynamicAdInsertionType__) field set to [DynamicAdInsertionType.POD_SERVING_MANIFEST](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType#_Google_Ads_AdManager_V1_DynamicAdInsertionTypeEnum_DynamicAdInsertionType__POD_SERVING_MANIFEST) value or [DynamicAdInsertionType.POD_SERVING_REDIRECT](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType#_Google_Ads_AdManager_V1_DynamicAdInsertionTypeEnum_DynamicAdInsertionType__POD_SERVING_REDIRECT) value. |
| `↳ prefetch_enabled` | `bool` Output only. Whether the [LiveStream.prefetch_enabled](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getPrefetchEnabled__) field is set to true. |
| `↳ pod_trimming_enabled` | `bool` Output only. Whether ad pod trimming is enabled for the DAI session. |
| `↳ pod_trim_tolerance` | `Google\Protobuf\Duration` Optional. The maximum duration allowed to be trimmed from an ad pod before whole ads are dropped. This field is only populated when pod trimming is enabled. |
| `↳ event_start_time` | `Google\Protobuf\Timestamp` The [LiveStream.start_time](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getStartTime__) field. |
| `↳ event_end_time` | `Google\Protobuf\Timestamp` Output only. The [LiveStream.end_time](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getEndTime__) field. |

### getLiveStream

Output only. The [name](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getName__) field
of the [LiveStream](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream)
resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasLiveStream

### clearLiveStream

### setLiveStream

Output only. The [name](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getName__) field
of the [LiveStream](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream)
resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAssetKey

Output only. The
[LiveStream.asset_key](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getAssetKey__)
field. Google Ad Manager only generates this field for livestreams with
the
[dynamic_ad_insertion_type](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getDynamicAdInsertionType__)
field set to
[DynamicAdInsertionType.LINEAR](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType#_Google_Ads_AdManager_V1_DynamicAdInsertionTypeEnum_DynamicAdInsertionType__LINEAR)
value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasAssetKey

### clearAssetKey

### setAssetKey

Output only. The
[LiveStream.asset_key](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getAssetKey__)
field. Google Ad Manager only generates this field for livestreams with
the
[dynamic_ad_insertion_type](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getDynamicAdInsertionType__)
field set to
[DynamicAdInsertionType.LINEAR](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType#_Google_Ads_AdManager_V1_DynamicAdInsertionTypeEnum_DynamicAdInsertionType__LINEAR)
value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCustomAssetKey

Output only. The
[LiveStream.custom_asset_key](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getCustomAssetKey__)
field. This field is only populated for livestreams with the
[dynamic_ad_insertion_type](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getDynamicAdInsertionType__)
field set to
[DynamicAdInsertionType.POD_SERVING_MANIFEST](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType#_Google_Ads_AdManager_V1_DynamicAdInsertionTypeEnum_DynamicAdInsertionType__POD_SERVING_MANIFEST)
value or
[DynamicAdInsertionType.POD_SERVING_REDIRECT](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType#_Google_Ads_AdManager_V1_DynamicAdInsertionTypeEnum_DynamicAdInsertionType__POD_SERVING_REDIRECT)
value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasCustomAssetKey

### clearCustomAssetKey

### setCustomAssetKey

Output only. The
[LiveStream.custom_asset_key](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getCustomAssetKey__)
field. This field is only populated for livestreams with the
[dynamic_ad_insertion_type](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getDynamicAdInsertionType__)
field set to
[DynamicAdInsertionType.POD_SERVING_MANIFEST](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType#_Google_Ads_AdManager_V1_DynamicAdInsertionTypeEnum_DynamicAdInsertionType__POD_SERVING_MANIFEST)
value or
[DynamicAdInsertionType.POD_SERVING_REDIRECT](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DynamicAdInsertionTypeEnum.DynamicAdInsertionType#_Google_Ads_AdManager_V1_DynamicAdInsertionTypeEnum_DynamicAdInsertionType__POD_SERVING_REDIRECT)
value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPrefetchEnabled

Output only. Whether the
[LiveStream.prefetch_enabled](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getPrefetchEnabled__)
field is set to true.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasPrefetchEnabled

### clearPrefetchEnabled

### setPrefetchEnabled

Output only. Whether the
[LiveStream.prefetch_enabled](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getPrefetchEnabled__)
field is set to true.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPodTrimmingEnabled

Output only. Whether ad pod trimming is enabled for the DAI session.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasPodTrimmingEnabled

### clearPodTrimmingEnabled

### setPodTrimmingEnabled

Output only. Whether ad pod trimming is enabled for the DAI session.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPodTrimTolerance

Optional. The maximum duration allowed to be trimmed from an ad pod
before whole ads are dropped. This field is only populated when pod
trimming is enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Duration|null` |   |

### hasPodTrimTolerance

### clearPodTrimTolerance

### setPodTrimTolerance

Optional. The maximum duration allowed to be trimmed from an ad pod
before whole ads are dropped. This field is only populated when pod
trimming is enabled.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEventStartTime

The
[LiveStream.start_time](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getStartTime__)
field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasEventStartTime

### clearEventStartTime

### setEventStartTime

The
[LiveStream.start_time](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getStartTime__)
field.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEventEndTime

Output only. The
[LiveStream.end_time](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getEndTime__)
field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasEventEndTime

### clearEventEndTime

### setEventEndTime

Output only. The
[LiveStream.end_time](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getEndTime__)
field.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |