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 \ V1Methods
__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 |
|