---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.2
alternate:
  - https://yandex.com/dev/direct/doc/dg-v4/en/live/ArchiveBanners.md
  - https://yandex.com/dev/direct/doc/dg-v4/ru/live/ArchiveBanners.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/direct/doc/dg-v4/en/llms.txt

# ArchiveBanners (Live)
Archives the ad.

{% note alert %}

Disabled method. Use version 5 of the API.

For information about the compatibility of methods between versions Live 4 and 5, see the [Migration guide](https://yandex.com/dev/direct/doc/migration/concepts/methods.md).

{% endnote %}


Only ads that are stopped can be archived. Archived ads have the `StatusArchive` parameter set to "Yes".

## New in the Live 4 version

The `CampaignID` input parameter does not need to be set.


## Input data {#input}

The input data structure in JSON is shown below.

```javascript
{
   "method": "ArchiveBanners",
   "param": {
      /* CampaignBidsInfo */
      "BannerIDS": [
         (long)
         ...
      ]
   }
}
```

Parameters are described below.


#|
||
**<sup >Parameter</sup>**
|
**<sup >Description</sup>**
|
**<sup >Required</sup>**
||

||
**<sub >CampaignBidsInfo object</sub>**
||
||
`BannerIDS`
|
Array containing IDs of ads to move to the archive (no more than 2000 IDs).
|
Yes
||
|#


## Output data {#output}

Returns 1 when archived successfully, as shown in the following example.

```javascript
{
   "data": 1
}
```


## Examples of input data {#example}

## Python

```python
{
   'BannerIDS': [20155899]
}
```

## PHP

```php
array(
   'BannerIDS' => array(20155899)
)
```

## Perl

```perl
{
   'BannerIDS' => [20155899]
}
```

