Returns a list of segments created using the API and related to the specified counter.
rym_get_segments(counter, login = NULL, token.path = getwd())
Yandex Metrika counter ID, you can get ids of all your conters over rym_counters
character, Your Yandex login
character, Directory for store API credential, by default is your work directory
Data frame with list of yandex metrika counter segments
Segment id.
Yandex Metrika counter id.
Segment name.
An expression that matches the value of the filters parameter.
Logical, is retargeting segment or not.
Source of the segment. Indicates how to create it. Accepts the value of api - segments that are created using the API are used.
Official docs - https://tech.yandex.ru/metrika/doc/api2/management/segments/getsegmentsforcounter-docpage/
# NOT RUN { segments <- rym_get_segments(counter = "your_counter_id", login = "your_login") # }
Run the code above in your browser using DataLab