AI-generated Key Takeaways
- 
          
FrequencyCap settings control how often a user sees the same ad within a defined period.
 - 
          
The JSON representation for FrequencyCap includes fields for
unlimited,timeUnit,timeUnitCount, andmaxImpressions. - 
          
Frequency capping can be set to unlimited or limited by a specific time unit and count with a maximum impression limit.
 - 
          
Available time units for frequency capping include lifetime, months, weeks, days, hours, and minutes.
 
Settings that control the number of times a user may be shown with the same ad during a given time period.
| JSON representation | 
|---|
{
  "unlimited": boolean,
  "timeUnit": enum ( | 
            
| Fields | |
|---|---|
unlimited | 
              
                 
 Whether unlimited frequency capping is applied. When this field is set to   | 
            
timeUnit | 
              
                 
 The time unit in which the frequency cap will be applied. Required when   | 
            
timeUnitCount | 
              
                 
 The number of  Required when  
  | 
            
maxImpressions | 
              
                 
 The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when   | 
            
TimeUnit
Possible time units.
| Enums | |
|---|---|
TIME_UNIT_UNSPECIFIED | 
                Time unit value is not specified or is unknown in this version. | 
TIME_UNIT_LIFETIME | 
                The frequency cap will be applied to the whole life time of the line item. | 
TIME_UNIT_MONTHS | 
                The frequency cap will be applied to a number of months. | 
TIME_UNIT_WEEKS | 
                The frequency cap will be applied to a number of weeks. | 
TIME_UNIT_DAYS | 
                The frequency cap will be applied to a number of days. | 
TIME_UNIT_HOURS | 
                The frequency cap will be applied to a number of hours. | 
TIME_UNIT_MINUTES | 
                The frequency cap will be applied to a number of minutes. |