Google Apps Script
Feedback on this document

Class Segment

From Analytics Services

Members:

MemberTypeDescription
getCreatedStringTime the advanced segment was created.
getDefinitionStringAdvanced segment definition.
getIdStringAdvanced segment ID.
getKindStringResource type for Analytics advanced segment.
getNameStringAdvanced segment name.
getSegmentIdStringSegment ID. Can be used with the 'segment' parameter in Data Feed.
getSelfLinkStringLink for this advanced segment.
getUpdatedStringTime the advanced segment was last modified.
setCreatedSegmentSet the value for the field: created
setDefinitionSegmentSet the value for the field: definition
setIdSegmentSet the value for the field: id
setKindSegmentSet the value for the field: kind
setNameSegmentSet the value for the field: name
setSegmentIdSegmentSet the value for the field: segmentId
setSelfLinkSegmentSet the value for the field: selfLink
setUpdatedSegmentSet the value for the field: updated

method getCreated()

Time the advanced segment was created.

Return Values:

TypeDescription
StringThe current value for created

method getDefinition()

Advanced segment definition.

Return Values:

TypeDescription
StringThe current value for definition

method getId()

Advanced segment ID.

Return Values:

TypeDescription
StringThe current value for id

method getKind()

Resource type for Analytics advanced segment.

Return Values:

TypeDescription
StringThe current value for kind

method getName()

Advanced segment name.

Return Values:

TypeDescription
StringThe current value for name

method getSegmentId()

Segment ID. Can be used with the 'segment' parameter in Data Feed.

Return Values:

TypeDescription
StringThe current value for segmentId

Link for this advanced segment.

Return Values:

TypeDescription
StringThe current value for selfLink

method getUpdated()

Time the advanced segment was last modified.

Return Values:

TypeDescription
StringThe current value for updated

method setCreated(created)

Set the value for the field: created

Arguments:

NameTypeDescription
createdStringTime the advanced segment was created.

Return Values:

TypeDescription
SegmentThe bean object for chaining.

method setDefinition(definition)

Set the value for the field: definition

Arguments:

NameTypeDescription
definitionStringAdvanced segment definition.

Return Values:

TypeDescription
SegmentThe bean object for chaining.

method setId(id)

Set the value for the field: id

Arguments:

NameTypeDescription
idStringAdvanced segment ID.

Return Values:

TypeDescription
SegmentThe bean object for chaining.

method setKind(kind)

Set the value for the field: kind

Arguments:

NameTypeDescription
kindStringResource type for Analytics advanced segment.

Return Values:

TypeDescription
SegmentThe bean object for chaining.

method setName(name)

Set the value for the field: name

Arguments:

NameTypeDescription
nameStringAdvanced segment name.

Return Values:

TypeDescription
SegmentThe bean object for chaining.

method setSegmentId(segmentId)

Set the value for the field: segmentId

Arguments:

NameTypeDescription
segmentIdStringSegment ID. Can be used with the 'segment' parameter in Data Feed.

Return Values:

TypeDescription
SegmentThe bean object for chaining.

Set the value for the field: selfLink

Arguments:

NameTypeDescription
selfLinkStringLink for this advanced segment.

Return Values:

TypeDescription
SegmentThe bean object for chaining.

method setUpdated(updated)

Set the value for the field: updated

Arguments:

NameTypeDescription
updatedStringTime the advanced segment was last modified.

Return Values:

TypeDescription
SegmentThe bean object for chaining.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.