0.17.0 (latest) 0.16.0 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 DayPart.

A day of the week and time interval within the day.

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ day_of_week` | `int` Required. The day of the week. |
| `↳ start_time` | `Google\Type\TimeOfDay` Required. The start time of the day part. |
| `↳ end_time` | `Google\Type\TimeOfDay` Required. The end time of the day part. |

### getDayOfWeek

Required. The day of the week.

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

### hasDayOfWeek

### clearDayOfWeek

### setDayOfWeek

Required. The day of the week.

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

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

### getStartTime

Required. The start time of the day part.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Type\TimeOfDay|null` |   |

### hasStartTime

### clearStartTime

### setStartTime

Required. The start time of the day part.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Type\TimeOfDay` |

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

### getEndTime

Required. The end time of the day part.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Type\TimeOfDay|null` |   |

### hasEndTime

### clearEndTime

### setEndTime

Required. The end time of the day part.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Type\TimeOfDay` |

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