Class: Google::Apis::DfareportingV2_8::AudienceSegment
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DfareportingV2_8::AudienceSegment
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v2_8/classes.rb,
 generated/google/apis/dfareporting_v2_8/representations.rb,
 generated/google/apis/dfareporting_v2_8/representations.rb
Overview
Audience Segment.
Instance Attribute Summary collapse
- 
  
    
      #allocation  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Weight allocated to this segment. 
- 
  
    
      #id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ID of this audience segment. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Name of this audience segment. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AudienceSegment 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AudienceSegment. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AudienceSegment
Returns a new instance of AudienceSegment
| 1318 1319 1320 | # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1318 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#allocation ⇒ Fixnum
Weight allocated to this segment. The weight assigned will be understood in
proportion to the weights assigned to other segments in the same segment group.
Acceptable values are 1 to 1000, inclusive.
Corresponds to the JSON property allocation
| 1305 1306 1307 | # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1305 def allocation @allocation end | 
#id ⇒ Fixnum
ID of this audience segment. This is a read-only, auto-generated field.
Corresponds to the JSON property id
| 1310 1311 1312 | # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1310 def id @id end | 
#name ⇒ String
Name of this audience segment. This is a required field and must be less than
65 characters long.
Corresponds to the JSON property name
| 1316 1317 1318 | # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1316 def name @name end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1323 1324 1325 1326 1327 | # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 1323 def update!(**args) @allocation = args[:allocation] if args.key?(:allocation) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) end |