Class: Google::Apis::DfareportingV3_0::FrequencyCap
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DfareportingV3_0::FrequencyCap
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/dfareporting_v3_0/classes.rb,
generated/google/apis/dfareporting_v3_0/representations.rb,
generated/google/apis/dfareporting_v3_0/representations.rb 
Overview
Frequency Cap.
Instance Attribute Summary collapse
- 
  
    
      #duration  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Duration of time, in seconds, for this frequency cap.
 - 
  
    
      #impressions  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Number of times an individual user can be served the ad within the specified duration.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ FrequencyCap 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of FrequencyCap.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ FrequencyCap
Returns a new instance of FrequencyCap
      6559 6560 6561  | 
    
      # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 6559 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#duration ⇒ Fixnum
Duration of time, in seconds, for this frequency cap. The maximum duration is
90 days. Acceptable values are 1 to 7776000, inclusive.
Corresponds to the JSON property duration
      6551 6552 6553  | 
    
      # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 6551 def duration @duration end  | 
  
#impressions ⇒ Fixnum
Number of times an individual user can be served the ad within the specified
duration. Acceptable values are 1 to 15, inclusive.
Corresponds to the JSON property impressions
      6557 6558 6559  | 
    
      # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 6557 def impressions @impressions end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      6564 6565 6566 6567  | 
    
      # File 'generated/google/apis/dfareporting_v3_0/classes.rb', line 6564 def update!(**args) @duration = args[:duration] if args.key?(:duration) @impressions = args[:impressions] if args.key?(:impressions) end  |