Reference documentation and code samples for the Google Ads Ad Manager V1 Client class TimeSeries.
Represents a chronological sequence of daily values.
Generated from protobuf message google.ads.admanager.v1.TimeSeries
Namespace
Google \ Ads \ AdManager \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ time_series_date_range |
DateRange
The date range of the time series. |
↳ values |
int[]|string[]
The daily values constituting the time series. The number of time series values must equal the number of days spanned by the time series date range, inclusive. For example, a timeSeriesDateRange of 2001-08-15 to 2001-08-17 contains one value for the 15th, one value for the 16th, and one value for the 17th. |
getTimeSeriesDateRange
The date range of the time series.
| Returns | |
|---|---|
| Type | Description |
DateRange|null |
|
hasTimeSeriesDateRange
clearTimeSeriesDateRange
setTimeSeriesDateRange
The date range of the time series.
| Parameter | |
|---|---|
| Name | Description |
var |
DateRange
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getValues
The daily values constituting the time series.
The number of time series values must equal the number of days spanned by the time series date range, inclusive. For example, a timeSeriesDateRange of 2001-08-15 to 2001-08-17 contains one value for the 15th, one value for the 16th, and one value for the 17th.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<int>|Google\Protobuf\RepeatedField<string> |
|
setValues
The daily values constituting the time series.
The number of time series values must equal the number of days spanned by the time series date range, inclusive. For example, a timeSeriesDateRange of 2001-08-15 to 2001-08-17 contains one value for the 15th, one value for the 16th, and one value for the 17th.
| Parameter | |
|---|---|
| Name | Description |
var |
int[]|string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|