Creating a segment from an AppMetrica object

Creates a segment from AppMetrica with the specified parameters.

Request

POST

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

Body

application/json
{
    "segment": {
        "name": "string",
        "app_metrica_segment_type": "string",
        "app_metrica_segment_id": 0
    }
}

Name

Description

segment*

Type: SegmentRequestAppMetrika

The segment with the specified parameters.

SegmentRequestAppMetrika

The segment with the specified parameters.

Name

Description

app_metrica_segment_type*

Type: string

Object type in AppMetrica. Acceptable values:

  • api_key — Application.
  • segment_id – Segment.

name*

Type: string

Segment name.

app_metrica_segment_id

Type: integer<int32>

ID of the object from AppMetrica.

Responses

200 OK

OK

Body

application/json
{
    "segment": {
        "id": 0,
        "name": "string",
        "type": "string",
        "status": "string",
        "create_time": "2022-12-29T18:02:01Z",
        "owner": "string",
        "app_metrica_segment_type": "string",
        "app_metrica_segment_id": 0
    }
}

Name

Description

segment

Type: AppMetricaSegment

A segment imported from AppMetrica.
The segment description by type.

AppMetricaSegment

A segment imported from AppMetrica.

Name

Description

name*

Type: string

Segment name.

app_metrica_segment_id

Type: integer<int32>

ID of the object from AppMetrica.

app_metrica_segment_type

Type: string

Object type in AppMetrica. Acceptable values:

  • api_key — Application.
  • segment_id – Segment.

create_time

Type: string<date-time>

The time of segment creation.

id

Type: integer<int32>

ID of the segment. Specify this parameter when updating a segment.

owner

Type: string

The username of the segment owner.

status

Type: string

Status of processing the segment. Acceptable values:

  • uploaded – The segment with the user's data has been uploaded.
  • is_processed – The segment with the specified parameters is being processed.
  • processed – Uploading and processing the segment is complete. The segment is ready to use.
  • processing_failed – Processing the segment failed with an error.
  • is_updated — The segment is updated.
  • few_data – The segment doesn't have enough data.

type

Type: string

Segment type. Acceptable values:

  • uploading: A segment created from a file with user data.
  • metrika: A segment imported from Yandex Metrica.
  • appmetrica: A segment imported from AppMetrica.
  • lookalike: A segment of users who "look like" one of the client's other segments (uses the "lookalike" technology).
  • geo: A segment based on location data for polygons and circles.
  • pixel: A segment created using a tracking pixel.

No longer supported, please use an alternative and newer version.