List of expense uploads

Returns a list of uploads of advertising expenses.

Request

GET

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

Path parameters

Name

Description

counterId*

Type: integer<int32>

ID of the counter for which you want to get a list of expense uploads.
Example: 2215573

Query parameters

Name

Description

limit

Type: integer<int32>

Number of uploads that you want to receive.

Default: 10000

offset

Type: integer<int32>

Number of the upload to start the list of uploads from. The first upload has the number 0.

Default: 0

Responses

200 OK

OK

Body

application/json
{
    "uploadings": [
        {
            "id": 0,
            "create_time": "2022-12-29T18:02:01Z",
            "source_quantity": 0,
            "provider": "string",
            "comment": "string",
            "type": "string",
            "status": "string"
        }
    ]
}

Name

Description

uploadings

Type: ExpenseUploading[]

List of expense uploads.
Information about expense uploads.

ExpenseUploading

Information about expense uploads.

Name

Description

comment

Type: string

Comment.

create_time

Type: string<date-time>

Upload time.

id

Type: integer<int64>

Upload ID.

provider

Type: string

Data provider name.

source_quantity

Type: integer<int32>

Number of rows in the source file.

status

Type: string

Upload status:

  • UPLOADED: Upload complete.
  • IN_PROGRESS: Upload in progress.
  • PROCESSED: Upload processed successfully.

type

Type: string

Upload type:

  • EXPENSES: Expenses.
  • REMOVES: Deleting expenses.