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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ max_impressions | int|stringThe maximum number of impressions for this frequency cap. | 
| ↳ time_amount | int|stringThe number of time units over which the frequency cap is effective. | 
| ↳ time_unit | intThe 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 | |