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

Information about a single decisioned ad pod in this session. This message
pertains to the smallest unit of ads to insert in a session, and
might be a pod fragment.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ requested_break_type` | `int` Output only. Type of ad break this ad pod was decisioned for. |
| `↳ ad_request_key` | `int|string` Output only. Ad request ID that links to the ad request that resulted in this ad pod. |
| `↳ creatives` | `array|Google\Protobuf\Internal\MapField` Output only. The creatives in this ad pod. Keyed by a unique ID used to reference this creative from a different submessage. |
| `↳ prefetch_stage` | `int` Output only. Indicates the prefetch stage for this ad pod. If prefetch is not enabled this stage is set to the [PrefetchStageType.DISABLED](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.PrefetchStageTypeEnum.PrefetchStageType#_Google_Ads_AdManager_V1_PrefetchStageTypeEnum_PrefetchStageType__DISABLED) value. |
| `↳ ad_break_id` | `string` Output only. Publisher-provided or DAI-generated break ID for the [Ad break API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/pod-serving). |
| `↳ label` | `string` Output only. Descriptive label for this ad pod, used to distinguish ad pods from one another in this session. e.g. "midroll-1", "2". |

### getRequestedBreakType

Output only. Type of ad break this ad pod was decisioned for.

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

### hasRequestedBreakType

### clearRequestedBreakType

### setRequestedBreakType

Output only. Type of ad break this ad pod was decisioned for.

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

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

### getAdRequestKey

Output only. Ad request ID that links to the ad request that resulted in
this ad pod.

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

### hasAdRequestKey

### clearAdRequestKey

### setAdRequestKey

Output only. Ad request ID that links to the ad request that resulted in
this ad pod.

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

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

### getCreatives

Output only. The creatives in this ad pod. Keyed by a unique ID used to
reference this creative from a different submessage.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setCreatives

Output only. The creatives in this ad pod. Keyed by a unique ID used to
reference this creative from a different submessage.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

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

### getPrefetchStage

Output only. Indicates the prefetch stage for this ad pod. If prefetch is
not enabled this stage is set to the
[PrefetchStageType.DISABLED](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.PrefetchStageTypeEnum.PrefetchStageType#_Google_Ads_AdManager_V1_PrefetchStageTypeEnum_PrefetchStageType__DISABLED)
value.

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

### hasPrefetchStage

### clearPrefetchStage

### setPrefetchStage

Output only. Indicates the prefetch stage for this ad pod. If prefetch is
not enabled this stage is set to the
[PrefetchStageType.DISABLED](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.PrefetchStageTypeEnum.PrefetchStageType#_Google_Ads_AdManager_V1_PrefetchStageTypeEnum_PrefetchStageType__DISABLED)
value.

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

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

### getAdBreakId

Output only. Publisher-provided or DAI-generated break ID for the [Ad
break API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/pod-serving).

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

### hasAdBreakId

### clearAdBreakId

### setAdBreakId

Output only. Publisher-provided or DAI-generated break ID for the [Ad
break API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/api/ad-break) or [pod serving
API](https://docs.cloud.google.com/ad-manager/dynamic-ad-insertion/pod-serving).

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

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

### getLabel

Output only. Descriptive label for this ad pod, used to distinguish ad
pods from one another in this session. e.g. "midroll-1", "2".

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

### hasLabel

### clearLabel

### setLabel

Output only. Descriptive label for this ad pod, used to distinguish ad
pods from one another in this session. e.g. "midroll-1", "2".

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

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