Uploading offline conversions
Uploads offline conversions.
Tip
Create a CSV data file and send it using this method. We recommend that you also automate your API queries using modules available in your programming language.
For more information on what data to send and what a sample request looks like, see Passing offline conversions.
Note
- It can take up to 2 hours to process the data.
- File size limit: 1 GB.
- File encoding: UTF-8.
Request
POST
https://api-metrika.yandex.net/management/v1/counter/{counterId}/offline_conversions/upload
Path parameters
|
Name |
Description |
|
counterId |
Type: integer ID of the counter for which you want to upload offline conversions. |
Query parameters
|
Name |
Description |
|
comment |
Type: string Comment. Maximum 255 characters. You can use digits, Latin characters, and Cyrillic characters. Example: `` |
|
type |
Type: string Offline conversion type. Possible values:
Default: Example: |
Body
multipart/form-data
{
"file": "example"
}
|
Name |
Description |
|
file |
Type: string<binary> Offline conversions to upload, which are passed as multipart/form-data. File size limit: 1 GB. File encoding: UTF-8. Example: |
Responses
200 OK
OK
Body
application/json
{
"uploading": {
"id": 0,
"create_time": "2025-01-01T00:00:00Z",
"source_quantity": 0,
"line_quantity": 0,
"comment": "example",
"type": "BASIC",
"client_id_type": "USER_ID",
"status": "example",
"goal_not_found_quantity": 0,
"user_not_found_quantity": 0,
"linked_quantity": 0
}
}
|
Name |
Description |
|
uploading |
Type: OfflineConversionUploading Information about an upload of offline conversions. Example
|
OfflineConversionUploading
Information about an upload of offline conversions.
|
Name |
Description |
|
client_id_type |
Type: string Type of user IDs. Possible values:
Example: |
|
comment |
Type: string Custom comment. The maximum number of characters is 255. Min length: Max length: Example: |
|
create_time |
Type: string<date-time> Upload time. Example: |
|
id |
Type: integer Upload ID. |
|
line_quantity |
Type: integer Number of rows that passed validation during upload. |
|
source_quantity |
Type: integer Number of rows in the source file. |
|
status |
Type: string Upload status:
Example: |
|
type |
Type: string Possible values:
Example: |
Example
{
"id": 0,
"create_time": "2025-01-01T00:00:00Z",
"source_quantity": 0,
"line_quantity": 0,
"comment": "example",
"type": "BASIC",
"client_id_type": "USER_ID",
"status": "example"
}
No longer supported, please use an alternative and newer version.