The Segments collection is a set of Segment resources, each of which describes one of the user's default advanced segments or custom segments.
For a list of methods for this resource, see the end of this page.
Resource representations
JSON template for an Analytics segment.
{ "id": string, "kind": "analytics#segment", "selfLink": string, "segmentId": string, "name": string, "definition": string, "type": string, "created": datetime, "updated": datetime }
Property name | Value | Description | Notes |
---|---|---|---|
created |
datetime |
Time the segment was created. | |
definition |
string |
Segment definition. | |
id |
string |
Segment ID. | |
kind |
string |
Resource type for Analytics segment. | |
name |
string |
Segment name. | |
segmentId |
string |
Segment ID. Can be used with the 'segment' parameter in Core Reporting API. | |
selfLink |
string |
Link for this segment. | |
type |
string |
Type for a segment. Possible values are "BUILT_IN" or "CUSTOM". | |
updated |
datetime |
Time the segment was last modified. |
Methods
- list
- Lists segments to which the user has access.