class Google::Apis::AnalyticsreportingV4::Segment
The segment definition, if the report needs to be segmented. A Segment
is a subset of the Analytics data. For example, of the entire set of users, one Segment
might be users from a particular country or city.
Attributes
dynamic_segment[RW]
Dynamic segment definition for defining the segment within the request. A segment can select users, sessions or both. Corresponds to the JSON property `dynamicSegment` @return [Google::Apis::AnalyticsreportingV4::DynamicSegment]
segment_id[RW]
The segment ID of a built-in or custom segment, for example `gaid::-3`. Corresponds to the JSON property `segmentId` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 1637 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 1642 def update!(**args) @dynamic_segment = args[:dynamic_segment] if args.key?(:dynamic_segment) @segment_id = args[:segment_id] if args.key?(:segment_id) end