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

Day Part Targeting

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ targeted_day_parts` | `array<DayPart>` Optional. The targeted day parts. |
| `↳ dayparting_time_zone` | `int` Required. The time zone to use for the day parts. |

### getTargetedDayParts

Optional. The targeted day parts.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<DayPart>` |   |

### setTargetedDayParts

Optional. The targeted day parts.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<DayPart>` |

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

### getDaypartingTimeZone

Required. The time zone to use for the day parts.

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

### hasDaypartingTimeZone

### clearDaypartingTimeZone

### setDaypartingTimeZone

Required. The time zone to use for the day parts.

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

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