Delete cost data in a CSV file

Deletes ad cost data uploaded to Yandex.Metrica.

Примечание. Direct data can't be deleted.

Data is passed in the request body in CSV format. Indicate the information to be deleted. The first line of the request must pass the column names.

Required columns:

  • Date — Date in YYYY-MM-DD format and the date range in YYYY-MM-DD/YYYY-MM-DD format.

Optional columns:

  • UTMSource — The utm_source label.
  • UTMMedium — The utm_medium label.
  • UTMCampaign — The utm_campaign label.
  • UTMTerm — The utm_term label.
  • UTMContent — The utm_content label.
Примечание. UTM labels are case-sensitive. The case should be the same as in the uploaded date.
  1. Request syntax
  2. Response format

Request syntax

counterId — Tag ID you want to delete data for.

https://api-metrica.yandex.net/management/v1/counter/{counterId}/expense/delete
 ? [comment=<string>]
 & [provider=<string>]
Query-параметры
commentComments.
providerName of the data provider that could have been passed when uploading expenses via the API. If no parameter value is given, data for all providers will be removed according to the conditions given in the uploaded file.

Request example

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

Response format


{
    "uploading" :  < _expense_uploading > 
}
Parameters Description
uploading Information about cost uploads.