Google Ads Ad Manager V1 Client - Class DateRange (0.15.0)

Reference documentation and code samples for the Google Ads Ad Manager V1 Client class DateRange.

A date range with fixed start and end dates (e.g. 2021-06-01 - 2021-06-30).

Generated from protobuf message google.ads.admanager.v1.DateRange

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ start_date Google\Type\Date

The start of the date range.

↳ end_date Google\Type\Date

The end of the date range.

getStartDate

The start of the date range.

Returns
Type Description
Google\Type\Date|null

hasStartDate

clearStartDate

setStartDate

The start of the date range.

Parameter
Name Description
var Google\Type\Date
Returns
Type Description
$this

getEndDate

The end of the date range.

Returns
Type Description
Google\Type\Date|null

hasEndDate

clearEndDate

setEndDate

The end of the date range.

Parameter
Name Description
var Google\Type\Date
Returns
Type Description
$this