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 |
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 |