rym (version 0.4.0)

rym_get_segments: List of segments

Description

Returns a list of segments created using the API and related to the specified counter.

Usage

rym_get_segments(counter, login = NULL, token.path = getwd())

Arguments

counter

Yandex Metrika counter ID, you can get ids of all your conters over rym_counters

login

character, Your Yandex login

token.path

character, Directory for store API credential, by default is your work directory

Value

Data frame with list of yandex metrika counter segments

id

Segment id.

counter_id

Yandex Metrika counter id.

name

Segment name.

expression

An expression that matches the value of the filters parameter.

is_retargeting

Logical, is retargeting segment or not.

segment_source

Source of the segment. Indicates how to create it. Accepts the value of api - segments that are created using the API are used.

References

Official docs - https://tech.yandex.ru/metrika/doc/api2/management/segments/getsegmentsforcounter-docpage/

Examples

Run this code
# NOT RUN {
segments <- rym_get_segments(counter    = "your_counter_id",
                             login      = "your_login")
# }

Run the code above in your browser using DataLab