Class: Google::Apis::DfareportingV3_4::AudienceSegment

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dfareporting_v3_4/classes.rb,
generated/google/apis/dfareporting_v3_4/representations.rb,
generated/google/apis/dfareporting_v3_4/representations.rb

Overview

Audience Segment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AudienceSegment

Returns a new instance of AudienceSegment.



1351
1352
1353
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 1351

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allocationFixnum

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

Returns:

  • (Fixnum)


1338
1339
1340
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 1338

def allocation
  @allocation
end

#idFixnum

ID of this audience segment. This is a read-only, auto-generated field. Corresponds to the JSON property id

Returns:

  • (Fixnum)


1343
1344
1345
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 1343

def id
  @id
end

#nameString

Name of this audience segment. This is a required field and must be less than 65 characters long. Corresponds to the JSON property name

Returns:

  • (String)


1349
1350
1351
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 1349

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1356
1357
1358
1359
1360
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 1356

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