Class: Google::Apis::DfareportingV4::AudienceSegmentGroup
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::AudienceSegmentGroup
- 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 Group.
Instance Attribute Summary collapse
-
#audience_segments ⇒ Array<Google::Apis::DfareportingV4::AudienceSegment>
Audience segments assigned to this group.
-
#id ⇒ Fixnum
ID of this audience segment group.
-
#name ⇒ String
Name of this audience segment group.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AudienceSegmentGroup
constructor
A new instance of AudienceSegmentGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AudienceSegmentGroup
Returns a new instance of AudienceSegmentGroup.
1327 1328 1329 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1327 def initialize(**args) update!(**args) end |
Instance Attribute Details
#audience_segments ⇒ Array<Google::Apis::DfareportingV4::AudienceSegment>
Audience segments assigned to this group. The number of segments must be
between 2 and 100.
Corresponds to the JSON property audienceSegments
1314 1315 1316 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1314 def audience_segments @audience_segments end |
#id ⇒ Fixnum
ID of this audience segment group. This is a read-only, auto-generated field.
Corresponds to the JSON property id
1319 1320 1321 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1319 def id @id end |
#name ⇒ String
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
1325 1326 1327 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1325 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1332 1333 1334 1335 1336 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1332 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 |