Builder for [FrequencyCap](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_frequencycap.md.txt) objects.

### Methods:

| Member | Type | Description |
|---|---|---|
| [build()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_frequencycapbuilder.md.txt#build) | `void` | Builds the frequency cap. |
| [withEventType(eventType)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_frequencycapbuilder.md.txt#withEventType_eventType) | `AdsApp.FrequencyCapBuilder` | Set the event type to the new frequency cap. |
| [withLimit(limit)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_frequencycapbuilder.md.txt#withLimit_limit) | `AdsApp.FrequencyCapBuilder` | Set the cap number to the new frequency cap. |
| [withTimeUnit(timeUnit)](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_frequencycapbuilder.md.txt#withTimeUnit_timeUnit) | `AdsApp.FrequencyCapBuilder` | Set the time unit to the new frequency cap. |

## `build()`

Builds the frequency cap.

Returns nothing.

## `withEventType(eventType)`

Set the event type to the new frequency cap.

### Arguments:

| Name | Type | Description |
|---|---|---|
| eventType | `String` | The type of event that the cap applies to. The value can be either `IMPRESSION` or `VIDEO_VIEW`. |

### Return values:

| Type | Description |
|---|---|
| `AdsApp.FrequencyCapBuilder` | The frequency cap builder with the specified event type. |

## `withLimit(limit)`

Set the cap number to the new frequency cap.

### Arguments:

| Name | Type | Description |
|---|---|---|
| limit | `long` | Number of time units the cap lasts. |

### Return values:

| Type | Description |
|---|---|
| `AdsApp.FrequencyCapBuilder` | The frequency cap builder with the specified cap number. |

## `withTimeUnit(timeUnit)`

Set the time unit to the new frequency cap.

### Arguments:

| Name | Type | Description |
|---|---|---|
| timeUnit | `String` | Unit of time the cap is defined at. The value can be `DAY`, `WEEK` or `MONTH`. |

### Return values:

| Type | Description |
|---|---|
| `AdsApp.FrequencyCapBuilder` | The frequency cap builder with the specified time unit. |