Google Ads Ad Manager V1 Client - Class DayPartTargeting (0.17.0)

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