Creates a segment from a metric with the specified parameters.
- Request syntax
- In the request body
- Response format
https://api-audience.yandex.ru/v1/management/segments/create_metrika
?
{
"" : {
"" : < string > ,
"" : < metrika_segment_type > ,
"" : < long >
}
}
Parameters | Description |
segment | The segment with the specified parameters. |
segment |
name | Segment name. |
metrika_segment_type | The type of object in Yandex.Metrica that the segment for Yandex.Audience will be created from. Possible values: counter_id – Tag. goal_id – Goal. segment_id – Segment. |
metrika_segment_id | ID of the object from Yandex.Metrica. |
POST https://api-audience.yandex.ru/v1/management/segments/create_metrika?
{
"" : < _metrika_segment >
}
Parameters | Description |
segment | The segment with the specified parameters. |