Saving a segment created from a file

Saves a segment created from a file with data.

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

Request syntax

segmentId – ID of the segment you want to save.

https://api-audience.yandex.ru/v1/management/segment/{segmentId}/confirm
 ? [check_size=<boolean>]
check_sizeThis parameter enables you to create segments of less than 100 entries. Such segments cannot be used for ads in Yandex Direct until their size exceeds 100 entries.

Default value: true.

check_sizeThis parameter enables you to create segments of less than 100 entries. Such segments cannot be used for ads in Yandex Direct until their size exceeds 100 entries.

Default value: true.

In the request body


{
    "segment" : {
        "id" :  < int > ,
        "name" :  < string > ,
        "hashed" :  < boolean > ,
        "content_type" :  < segment_content_type > 
    }
}
Parameters Description
segment The segment with the specified parameters.
segment
id ID of the segment. Specify this parameter when updating a segment.
name Segment name.
hashed Whether every string in the uploaded file is hashed.

Possible values:

  • 0 — Unhashed.
  • 1 — Hashed.
content_type The type of file content.

Possible values:

  • idfa_gaid – Device IDs.
  • mac — MAC addresses.
  • crm — CRM data.
Parameters Description
segment The segment with the specified parameters.
segment
id ID of the segment. Specify this parameter when updating a segment.
name Segment name.
hashed Whether every string in the uploaded file is hashed.

Possible values:

  • 0 — Unhashed.
  • 1 — Hashed.
content_type The type of file content.

Possible values:

  • idfa_gaid – Device IDs.
  • mac — MAC addresses.
  • crm — CRM data.

Sample request

POST https://api-audience.yandex.ru/v1/management/segment/{segmentId}/confirm?

Response format


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