Uploading conversions by yclid

Uploads conversions by the yclid.

Tip. Create a CSV file with the data and send it using this method. We also recommend generating API requests automatically using modules written in a programming language.

To learn about which data to transmit and to view a sample request, see Passing offline conversions.

  1. Request syntax
  2. In the request body
  3. Response format
  4. What's next?

Request syntax

counterId: ID of the tag for which you want to upload conversions by yclid.

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

In the request body


POST https://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--

Sample request

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

Response format


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

What's next?

Track the upload status of conversions linked by yclid using the GET /management/v1/counter/{counterId}/offline_conversions/uploading/{id} method.