0.16.0 (latest) 0.15.1 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 GetDaiSessionRequest.

Request object for `GetDaiSession` method.

Generated from protobuf message `google.ads.admanager.v1.GetDaiSessionRequest`

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The resource name of the DaiSession. The dai_session can be either the session ID or debug key, that DAI returns on stream create. For details, see [Locate a DAI session ID or debug key](https://support.google.com/admanager/answer/7257678). Format: `networks/{network_code}/daiSessions/{dai_session}` Format: `networks/{network_code}/daiSessions/{session_id}` Format: `networks/{network_code}/daiSessions/{debug_key}` |

### getName

Required. The resource name of the DaiSession. The dai_session can be
either the session ID or debug key, that DAI returns on stream create. For
details, see [Locate a DAI session ID or debug
key](https://support.google.com/admanager/answer/7257678).

Format: `networks/{network_code}/daiSessions/{dai_session}`
Format: `networks/{network_code}/daiSessions/{session_id}`
Format: `networks/{network_code}/daiSessions/{debug_key}`

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

### setName

Required. The resource name of the DaiSession. The dai_session can be
either the session ID or debug key, that DAI returns on stream create. For
details, see [Locate a DAI session ID or debug
key](https://support.google.com/admanager/answer/7257678).

Format: `networks/{network_code}/daiSessions/{dai_session}`
Format: `networks/{network_code}/daiSessions/{session_id}`
Format: `networks/{network_code}/daiSessions/{debug_key}`

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The resource name of the DaiSession. The dai_session can be either the session ID or debug key, that DAI returns on stream create. For details, see [Locate a DAI session ID or debug key](https://support.google.com/admanager/answer/7257678). Format: `networks/{network_code}/daiSessions/{dai_session}` Format: `networks/{network_code}/daiSessions/{session_id}` Format: `networks/{network_code}/daiSessions/{debug_key}` Please see DaiSessionServiceClient::daiSessionName() for help formatting this field. |

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