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

Request object for `CreateAdBreak` method.

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent resource where this `AdBreak` will be created identified by an asset key or custom asset key. Formats: `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` |
| `↳ ad_break` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.AdBreak` Required. The `AdBreak` to create. |

### getParent

Required. The parent resource where this `AdBreak` will be created
identified by an asset key or custom asset key.

Formats:
`networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
`networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`

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

### setParent

Required. The parent resource where this `AdBreak` will be created
identified by an asset key or custom asset key.

Formats:
`networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}`
`networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}`

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

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

### getAdBreak

Required. The `AdBreak` to create.

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

### hasAdBreak

### clearAdBreak

### setAdBreak

Required. The `AdBreak` to create.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent resource where this `AdBreak` will be created identified by an asset key or custom asset key. Formats: `networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}` `networks/{network_code}/liveStreamEventsByCustomAssetKey/{custom_asset_key}` Please see AdBreakServiceClient::liveStreamEventName() for help formatting this field. |
| `adBreak` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.AdBreak` Required. The `AdBreak` to create. |

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