Editing a pixel
Changes the specified pixel.
Request
PUT
https://api-audience.yandex.ru/v1/management/pixel/{pixelId}
Path parameters
|
Name |
Description |
|
pixelId |
Type: integer ID of the pixel that you want to change. |
Body
application/json
{
"pixel": {
"name": "example"
}
}
|
Name |
Description |
|
pixel |
Type: PixelRequest Pixel. Example
|
PixelRequest
Pixel.
|
Name |
Description |
|
name |
Type: string The pixel name. Example: |
Example
{
"name": "example"
}
Responses
200 OK
OK
Body
application/json
{
"pixel": {
"id": 0,
"name": "example",
"create_time": "2025-01-01T00:00:00Z",
"segments": [
{
"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": [
null
],
"cookies_matched_quantity": 0,
"pixel_id": 0,
"period_length": 0,
"times_quantity": 0,
"times_quantity_operation": "example",
"utm_source": "example",
"utm_content": "example",
"utm_campaign": "example",
"utm_term": "example",
"utm_medium": "example",
"pattern": "example"
}
],
"url": "example",
"user_quantity_7": 0,
"user_quantity_30": 0,
"user_quantity_90": 0
}
}
|
Name |
Description |
|
pixel |
Type: Pixel Pixel. 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"
}
PixelSegment
A segment created using a tracking pixel.
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
period_length
Type: integer
The time period for tracking the user with the pixel. Acceptable values (in days): from 1 to 90 (inclusive).
pixel_id
Type: integer
The pixel ID.
times_quantity
Type: integer
Threshold value (M). This is the base number for comparing how many times the user was detected by the pixel during the period.
times_quantity_operation
Type: string
Condition for users to be included in the pixel segment. Acceptable values:
lt: Less than. The user was detected by the pixel less than M times during the period.eq: Equal to. The user was detected by the pixel M times during the period.gt: Greater than. The user was detected by the pixel more than M times during the period.
Example:
exampleutm_campaign
Type: string
utm_campaigntag. Can be used as a condition for including users in a pixel segment.Example:
exampleutm_content
Type: string
utm_contenttag. Can be used as a condition for including users in a pixel segment.Example:
exampleutm_medium
Type: string
utm_mediumtag. Can be used as a condition for including users in a pixel segment.Example:
exampleutm_source
Type: string
utm_sourcetag. Can be used as a condition for including users in a pixel segment.Example:
exampleutm_term
Type: string
utm_termtag. Can be used as a condition for including users in a pixel segment.Example:
exampleExample
{ "pixel_id": 0, "period_length": 0, "times_quantity": 0, "times_quantity_operation": "example", "utm_source": "example", "utm_content": "example", "utm_campaign": "example", "utm_term": "example", "utm_medium": "example" }
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,
"pixel_id": 0,
"period_length": 0,
"times_quantity": 0,
"times_quantity_operation": "example",
"utm_source": "example",
"utm_content": "example",
"utm_campaign": "example",
"utm_term": "example",
"utm_medium": "example"
}
Pixel
Pixel.
|
Name |
Description |
|
name |
Type: string The pixel name. Example: |
|
create_time |
Type: string<date-time> The time of pixel creation. Example: |
|
id |
Type: integer The pixel ID. Specify this parameter when updating a pixel. |
|
segments |
Type: PixelSegment[] Example
|
|
user_quantity_30 |
Type: integer Coverage over one month. |
|
user_quantity_7 |
Type: integer Coverage over one week. |
|
user_quantity_90 |
Type: integer Coverage over 90 days. |
Example
{
"id": 0,
"name": "example",
"create_time": "2025-01-01T00:00:00Z",
"segments": [
{
"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,
"pixel_id": 0,
"period_length": 0,
"times_quantity": 0,
"times_quantity_operation": "example",
"utm_source": "example",
"utm_content": "example",
"utm_campaign": "example",
"utm_term": "example",
"utm_medium": "example",
"pattern": "example"
}
],
"user_quantity_7": 0,
"user_quantity_30": 0,
"user_quantity_90": 0
}
No longer supported, please use an alternative and newer version.