Class: Google::Apis::DfareportingV2_6::AudienceSegmentGroup

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

Overview

Audience Segment Group.

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) ⇒ AudienceSegmentGroup

Returns a new instance of AudienceSegmentGroup.


1301
1302
1303
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 1301

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

Instance Attribute Details

#audience_segmentsArray<Google::Apis::DfareportingV2_6::AudienceSegment>

Audience segments assigned to this group. The number of segments must be between 2 and 100. Corresponds to the JSON property audienceSegments


1288
1289
1290
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 1288

def audience_segments
  @audience_segments
end

#idString

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

Returns:

  • (String)

1293
1294
1295
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 1293

def id
  @id
end

#nameString

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

Returns:

  • (String)

1299
1300
1301
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 1299

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1306
1307
1308
1309
1310
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 1306

def update!(**args)
  @audience_segments = args[:audience_segments] if args.key?(:audience_segments)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
end