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 CreationContext.

Context data to create the DAI session.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ linear_info` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DaiSession.CreationContext.LinearInfo` Output only. 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. |
| `↳ vod_info` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DaiSession.CreationContext.VodInfo` Output only. The [Content](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Content) resource in the stream request that creates the DAI session. |
| `↳ debug_key` | `string` Output only. The string the `dai-sam-id` parameter sets in the DAI stream request. For details, see [Locate a DAI session ID or debug key](https://support.google.com/admanager/answer/7257678). |
| `↳ content_title` | `string` Output only. The [LiveStream.display_name](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getDisplayName__) field or [Content.display_name](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Content#_Google_Ads_AdManager_V1_Content__getDisplayName__) field associated with the DAI session. |
| `↳ session_title` | `string` Output only. The string the `session_title` parameter sets in the DAI stream request. For details, see [CreateStreamOptions](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions). |
| `↳ stream_create_request` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DaiSession.HttpRequest` Output only. The HTTP request creating the DAI session. For details, see [Linear API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream), [VOD API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream), [pod serving live API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream) and [pod serving VOD API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream). |
| `↳ stitching_type` | `int` Output only. Whether the stream request is for [Full-service DAI](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/full-service) or [Pod serving](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/pod-serving). |
| `↳ reporting_type` | `int` Output only. Whether ad tracking URLs are pinged on the client side or server side. If IMA SDK is used to make the stream requests, IMA SDK pings the ad tracking URLs on the client side. For server-side beaconing, see [Integrate with DAI using server-side beaconing (SSB)](https://support.google.com/admanager/answer/7299051). |
| `↳ interstitial_enabled` | `bool` Output only. Whether the parameter `dai-istl` on the stream request is set to true. This parameter is only accepted for [LiveStream](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream) resources 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. |

### getLinearInfo

Output only. 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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DaiSession.CreationContext.LinearInfo|null` |   |

### hasLinearInfo

### setLinearInfo

Output only. 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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DaiSession.CreationContext.LinearInfo` |

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

### getVodInfo

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DaiSession.CreationContext.VodInfo|null` |   |

### hasVodInfo

### setVodInfo

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DaiSession.CreationContext.VodInfo` |

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

### getDebugKey

Output only. The string the `dai-sam-id` parameter sets in the DAI stream
request. For details, see [Locate a DAI session ID or debug
key](https://support.google.com/admanager/answer/7257678).

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

### hasDebugKey

### clearDebugKey

### setDebugKey

Output only. The string the `dai-sam-id` parameter sets in the DAI stream
request. For details, see [Locate a DAI session ID or debug
key](https://support.google.com/admanager/answer/7257678).

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

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

### getContentTitle

Output only. The
[LiveStream.display_name](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getDisplayName__)
field or
[Content.display_name](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Content#_Google_Ads_AdManager_V1_Content__getDisplayName__)
field associated with the DAI session.

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

### hasContentTitle

### clearContentTitle

### setContentTitle

Output only. The
[LiveStream.display_name](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream#_Google_Ads_AdManager_V1_LiveStream__getDisplayName__)
field or
[Content.display_name](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.Content#_Google_Ads_AdManager_V1_Content__getDisplayName__)
field associated with the DAI session.

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

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

### getSessionTitle

Output only. The string the `session_title` parameter sets in the DAI
stream request. For details, see
[CreateStreamOptions](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).

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

### hasSessionTitle

### clearSessionTitle

### setSessionTitle

Output only. The string the `session_title` parameter sets in the DAI
stream request. For details, see
[CreateStreamOptions](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#createstreamoptions).

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

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

### getStreamCreateRequest

Output only. The HTTP request creating the DAI session. For details, see
[Linear
API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
[VOD
API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
[pod serving live
API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
and [pod serving VOD
API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DaiSession.HttpRequest|null` |   |

### hasStreamCreateRequest

### clearStreamCreateRequest

### setStreamCreateRequest

Output only. The HTTP request creating the DAI session. For details, see
[Linear
API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/full-service/reference/live#method_stream),
[VOD
API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/full-service/reference/vod#method_stream),
[pod serving live
API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/live#method_stream)
and [pod serving VOD
API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/pod-serving/reference/vod#method_create_stream).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DaiSession.HttpRequest` |

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

### getStitchingType

Output only. Whether the stream request is for [Full-service
DAI](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/full-service)
or [Pod
serving](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/pod-serving).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasStitchingType

### clearStitchingType

### setStitchingType

Output only. Whether the stream request is for [Full-service
DAI](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/full-service)
or [Pod
serving](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/pod-serving).

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

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

### getReportingType

Output only. Whether ad tracking URLs are pinged on the client side or
server side. If IMA SDK is used to make the stream requests, IMA SDK
pings the ad tracking URLs on the client side. For server-side beaconing,
see [Integrate with DAI using server-side beaconing
(SSB)](https://support.google.com/admanager/answer/7299051).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasReportingType

### clearReportingType

### setReportingType

Output only. Whether ad tracking URLs are pinged on the client side or
server side. If IMA SDK is used to make the stream requests, IMA SDK
pings the ad tracking URLs on the client side. For server-side beaconing,
see [Integrate with DAI using server-side beaconing
(SSB)](https://support.google.com/admanager/answer/7299051).

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

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

### getInterstitialEnabled

Output only. Whether the parameter `dai-istl` on the stream request is
set to true. This parameter is only accepted for
[LiveStream](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream) resources
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** |
| `bool` |   |

### hasInterstitialEnabled

### clearInterstitialEnabled

### setInterstitialEnabled

Output only. Whether the parameter `dai-istl` on the stream request is
set to true. This parameter is only accepted for
[LiveStream](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LiveStream) resources
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` | `bool` |

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

### getContentInfo

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