Creating a segment from an AppMetrica object

Creates a segment from AppMetrica with the specified parameters.

  1. Request syntax
  2. In the request body
  3. Response format

Request syntax

https://api-audience.yandex.ru/v1/management/segments/create_appmetrica
 ? 

In the request body


{
    "segment" : {
        "name" :  < string > ,
        "app_metrica_segment_type" :  < app_metrica_segment_type > ,
        "app_metrica_segment_id" :  < int > 
    }
}
Parameters Description
segment The segment with the specified parameters.
segment
name Segment name.
app_metrica_segment_type The type of object in AppMetrica that the segment for Yandex.Audience will be created from.

Possible values:

  • api_key — Application.
  • segment_id — Segment.
app_metrica_segment_id ID of the object from AppMetrica.
Parameters Description
segment The segment with the specified parameters.
segment
name Segment name.
app_metrica_segment_type The type of object in AppMetrica that the segment for Yandex.Audience will be created from.

Possible values:

  • api_key — Application.
  • segment_id — Segment.
app_metrica_segment_id ID of the object from AppMetrica.

Sample request

POST https://api-audience.yandex.ru/v1/management/segments/create_appmetrica?

Response format


{
    "segment" :  < _app_metrica_segment > 
}
Parameters Description
segment The segment with the specified parameters.
Parameters Description
segment The segment with the specified parameters.