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

Represents a Frequency Cap that can be applied to an entity.

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

## Namespace

Google \\ Ads \\ AdManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ max_impressions` | `int|string` The maximum number of impressions for this frequency cap. |
| `↳ time_amount` | `int|string` The number of time units over which the frequency cap is effective. |
| `↳ time_unit` | `int` The units of time of this frequency cap. |

### getMaxImpressions

The maximum number of impressions for this frequency cap.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasMaxImpressions

### clearMaxImpressions

### setMaxImpressions

The maximum number of impressions for this frequency cap.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTimeAmount

The number of time units over which the frequency cap is effective.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasTimeAmount

### clearTimeAmount

### setTimeAmount

The number of time units over which the frequency cap is effective.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTimeUnit

The units of time of this frequency cap.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasTimeUnit

### clearTimeUnit

### setTimeUnit

The units of time of this frequency cap.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |