Creating a segment from an AppMetrica object
Creates a segment from AppMetrica with the specified parameters.
Request
POST
https://api-audience.yandex.ru/v1/management/segments/create_appmetrica
Body
application/json
{
"segment": {
"name": "example",
"app_metrica_segment_type": "example",
"app_metrica_segment_id": 0,
"device_matching_type": "example"
}
}
|
Name |
Description |
|
segment |
Type: SegmentRequestAppMetrika The segment with the specified parameters. Example
|
SegmentRequestAppMetrika
The segment with the specified parameters.
|
Name |
Description |
|
app_metrica_segment_type |
Type: string Object type in AppMetrica. Acceptable values:
Example: |
|
name |
Type: string Segment name. Example: |
|
app_metrica_segment_id |
Type: integer ID of the object from AppMetrica. |
Example
{
"name": "example",
"app_metrica_segment_type": "example",
"app_metrica_segment_id": 0
}
Responses
200 OK
OK
Body
application/json
{
"segment": {
"type": "example",
"id": 0,
"name": "example",
"status": "example",
"create_time": "2025-01-01T00:00:00Z",
"owner": "example",
"has_guests": true,
"guest_quantity": 0,
"can_create_dependent": true,
"has_derivatives": true,
"derivatives": [
0
],
"cookies_matched_quantity": 0,
"app_metrica_segment_type": "example",
"app_metrica_segment_id": 0,
"pattern": "example"
}
}
|
Name |
Description |
|
segment |
Type: AppMetricaSegment A segment imported from AppMetrica. Example
|
BaseSegment
The segment description by type.
|
Name |
Description |
|
name |
Type: string Segment name. Example: |
|
create_time |
Type: string<date-time> The time of segment creation. Example: |
|
id |
Type: integer ID of the segment. Specify this parameter when updating a segment. |
|
owner |
Type: string The username of the segment owner. Example: |
|
status |
Type: string Status of processing the segment. Acceptable values:
Example: |
|
type |
Type: string Segment type. Acceptable values:
Example: |
Example
{
"type": "example",
"id": 0,
"name": "example",
"status": "example",
"create_time": "2025-01-01T00:00:00Z",
"owner": "example"
}
AppMetricaSegment
A segment imported from AppMetrica.
All of 2 types
-
Type: BaseSegment
The segment description by type.
Example
{ "type": "example", "id": 0, "name": "example", "status": "example", "create_time": "2025-01-01T00:00:00Z", "owner": "example", "has_guests": true, "guest_quantity": 0, "can_create_dependent": true, "has_derivatives": true, "derivatives": [ 0 ], "cookies_matched_quantity": 0 } -
Type: object
app_metrica_segment_id
Type: integer
ID of the object from AppMetrica.
app_metrica_segment_type
Type: string
Object type in AppMetrica. Acceptable values:
api_key: Application.segment_id: Segment.
Example:
exampleExample
{ "app_metrica_segment_type": "example", "app_metrica_segment_id": 0 }
Example
{
"type": "example",
"id": 0,
"name": "example",
"status": "example",
"create_time": "2025-01-01T00:00:00Z",
"owner": "example",
"has_guests": true,
"guest_quantity": 0,
"can_create_dependent": true,
"has_derivatives": true,
"derivatives": [
0
],
"cookies_matched_quantity": 0,
"app_metrica_segment_type": "example",
"app_metrica_segment_id": 0
}
No longer supported, please use an alternative and newer version.