Class: Google::Apis::DfareportingV5::AudienceSegmentGroup

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

Overview

Audience Segment Group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AudienceSegmentGroup

Returns a new instance of AudienceSegmentGroup.



1273
1274
1275
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1273

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

Instance Attribute Details

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

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



1260
1261
1262
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1260

def audience_segments
  @audience_segments
end

#idFixnum

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

Returns:

  • (Fixnum)


1265
1266
1267
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1265

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)


1271
1272
1273
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1271

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1278
1279
1280
1281
1282
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 1278

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