Class: Google::Apis::DfareportingV4::AudienceSegment

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

Overview

Audience Segment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AudienceSegment

Returns a new instance of AudienceSegment.



1294
1295
1296
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1294

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)


1281
1282
1283
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1281

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)


1286
1287
1288
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1286

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)


1292
1293
1294
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1292

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1299
1300
1301
1302
1303
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1299

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