Creating a segment with the "lookalike" type
Creates a lookalike
segment with the specified parameters.
Request
POST
https://api-audience.yandex.com/v1/management/segments/create_lookalike
Body
application/json
{
"segment": {
"name": "string",
"lookalike_link": 0,
"lookalike_value": 0,
"maintain_device_distribution": false,
"maintain_geo_distribution": false
}
}
Name |
Description |
segment* |
Type: SegmentRequestLookalike The segment with the specified parameters. |
SegmentRequestLookalike
The segment with the specified parameters.
Name |
Description |
lookalike_link* |
Type: integer<int32> ID of the segment that the created segment should be similar to. |
lookalike_value* |
Type: integer<int32> The degree of "similarity". Accepts the values 1, 2, 3, 4, and 5. Min value: Max value: |
name* |
Type: string Segment name. |
maintain_device_distribution |
Type: boolean Distribute users by device type. Acceptable values:
Default value: |
maintain_geo_distribution |
Type: boolean Distribute users by city. Acceptable values:
Default value: |
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",
"lookalike_link": 0,
"lookalike_value": 0,
"maintain_device_distribution": false,
"maintain_geo_distribution": false
}
}
Name |
Description |
segment |
Type: LookalikeSegment A segment of users who "look like" one of the client's other segments (uses "look-alike" technology). |
LookalikeSegment
A segment of users who "look like" one of the client's other segments (uses "look-alike" technology).
Name |
Description |
name* |
Type: string Segment name. |
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. |
lookalike_link |
Type: integer<int32> ID of the segment that the created segment should be similar to. |
lookalike_value |
Type: integer<int32> The degree of "similarity". Accepts the values 1, 2, 3, 4, and 5. |
maintain_device_distribution |
Type: boolean Distribute users by device type. Acceptable values:
Default value: |
maintain_geo_distribution |
Type: boolean Distribute users by city. Acceptable values:
Default value: |
owner |
Type: string The username of the segment owner. |
status |
Type: string Status of processing the segment. Acceptable values:
|
type |
Type: string Segment type. Acceptable values:
|
No longer supported, please use an alternative and newer version.