Class: Google::Apis::DfareportingV2_1::AudienceSegmentGroup

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

Overview

Audience Segment Group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AudienceSegmentGroup

Returns a new instance of AudienceSegmentGroup.



1268
1269
1270
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1268

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

Instance Attribute Details

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

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



1255
1256
1257
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1255

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)


1260
1261
1262
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1260

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)


1266
1267
1268
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1266

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1273
1274
1275
1276
1277
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 1273

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