Delete cost data

Deletes ad cost data uploaded to Yandex.Metrica.

Примечание. Yandex.Direct data can't be deleted.
Примечание. The values of UTM tags are case-sensitive. The case should be the same as in the uploaded data.
  1. Request syntax
  2. Response format

Request syntax

counterId — Tag ID you want to delete data for.{counterId}/expense/delete_single
 ? [date=<string>]
 & [comment=<string>]
 & [provider=<string>]
 & [UTMCampaign=<string>]
 & [UTMContent=<string>]
 & [UTMMedium=<string>]
 & [UTMSource=<string>]
 & [UTMTerm=<string>]
dateДата в формате YYYY-MM-DD или диапазон дат в формате YYYY-MM-DD/YYYY-MM-DD.
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.
UTMCampaignCтрока, значение метки utm_campaign.
UTMContentCтрока, значение метки utm_content.
UTMMediumCтрока, значение метки utm_medium.
UTMSourceCтрока, значение метки utm_source.
UTMTermCтрока, значение метки utm_term.

Request example

POST{counterId}/expense/delete_single?date=no example

Response format

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