0.16.0 (latest) 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 TimeSeries.

Represents a chronological sequence of daily values.

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ time_series_date_range` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.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** |
| `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.DateRange|null` |   |

### hasTimeSeriesDateRange

### clearTimeSeriesDateRange

### setTimeSeriesDateRange

The date range of the time series.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.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` |   |