FrequencyCap class

Settings that control the number of times a user may be shown with the same ad during a given time period.

Constructors

FrequencyCap()
FrequencyCap.fromJson(Map _json)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
maxImpressions int
The maximum number of times a user may be shown with the same ad during this period. Must be greater than 0. Applicable when unlimited is false.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timeUnit String
The time unit in which the frequency cap will be applied. Applicable when unlimited is false. Possible string values are: [...]
read / write
timeUnitCount int
The number of time_unit the frequency cap will last. Applicable when unlimited is false. The following restrictions apply based on the value of time_unit: * TIME_UNIT_LIFETIME - this field is output only and will default to 1 * TIME_UNIT_MONTHS - must be between 1 and 2 * TIME_UNIT_WEEKS - must be between 1 and 4 * TIME_UNIT_DAYS - must be between 1 and 6 * TIME_UNIT_HOURS - must be between 1 and 23 * TIME_UNIT_MINUTES - must be between 1 and 59
read / write
unlimited bool
Whether unlimited frequency capping is applied. When this field is set to true, the remaining frequency cap fields are not applicable.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited