---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/direct/doc/dg-v4/en/reference/StopBanners.md
  - https://yandex.com/dev/direct/doc/dg-v4/ru/reference/StopBanners.md
  - href: en/reference/StopBanners.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/direct/doc/dg-v4/en/llms.txt

# StopBanners
Stops displaying ads.

{% note alert %}

Disabled method. Use version 5 of the API.

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

{% endnote %}


The [StopBanners (Live)](https://yandex.com/dev/direct/doc/dg-v4/en/live/StopBanners.md) version also exists for this method.

For ads that are stopped, the `StatusShow` parameter is set to “No”. A short time after stopping displays, the `IsActive` parameter is automatically assigned the “No” value, which means that displays are actually stopped.


## Input data {#input}

The input data structure in JSON is shown below.

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

Parameters are described below.


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

||
**<sub >CampaignBidsInfo object</sub>**
||
||
`CampaignID`
|
The campaign ID.
|
Yes
||
||
`BannerIDS`
|
Array containing IDs of ads that need to have impressions stopped (no more than 2000 IDs).
|
Yes
||
|#


## Output data {#output}

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

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


## Examples of input data {#example}

## Python

```python
{
   'CampaignID': 3665578,
   'BannerIDS': [20155899]
}
```

## PHP

```php
array(
   'CampaignID' => 3665578,
   'BannerIDS' => array(20155899)
)
```

## Perl

```perl
{
   'CampaignID' => 3665578,
   'BannerIDS' => [20155899]
}
```

