Uploading conversions by yclid

Uploads conversions by the yclid.

Data is passed as multipart/form-data in CSV format. The first line of the request must pass the column names.

Required columns:

  • Yclid — Yandex click ID.
  • Target — Goal ID.
  • DateTime — Date and time of the conversion in unix timestamp.

Optional columns:

  • Price — The cost of the goal, using a dot (.) as the decimal separator.
  • Currency — The currency using the three-letter code from the ISO 4217 standard.
  1. Request syntax
  2. Request message body
  3. Response format

Request syntax

counterId — ID of the tag to upload conversions by yclid for.

https://api-metrica.yandex.net/management/v1/counter/{counterId}/yclid_conversions/upload
 ? [comment=<string>]
Query parameters
commentComments.

Request message body


POST http://api-metrika.yandex.net/management/v1/counter/{counterId}/yclid_conversions/upload
Content-Type: multipart/form-data; boundary=------------------------7zDUQOAIAE9hEWoV
Context-Length: 253

--------------------------7zDUQOAIAE9hEWoV
Content-Disposition: form-data; name="file"; filename="data.csv"
Content-Type: text/csv

Yclid,Target,DateTime,Price,Currency
123456,GOAL1,1481718166,123.45,RUB
123456,GOAL2,1481718142,678.90,RUB
123456,GOAL3,1481718066,123.45,RUB
123456,GOAL3,1481718116,678.90,RUB
123456,GOAL2,1481718126,123.45,RUB
123456,GOAL3,1481714026,678.90,RUB
--------------------------7zDUQOAIAE9hEWoV--

Request example

POST https://api-metrica.yandex.net/management/v1/counter/{counterId}/yclid_conversions/upload?

Response format


{
    "uploading" :  < uploading > 
}
Parameters Description
uploading Information about the upload of yclid conversions.