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

# ModerateBanners (Live)
Submits an ad with “Draft” status for moderation.

{% 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 %}


This method is used for moderating ads for campaigns that have just been created. Such campaigns and their ads have the “Draft” status.

If a campaign has at least one ad that is active or submitted for moderation, other ads are automatically submitted for moderation when they are created or edited. In this case, invoking the `ModerateBanners` method returns an error message with the error code [155](https://yandex.com/dev/direct/doc/dg-v4/en/reference/ErrorCodes.md#ErrorCode155).

## New in the Live 4 version

It is sufficient to set either one of the parameters CampaignID or BannerIDS. If both are set, BannerIDS has priority.


## Input data {#input}

The input data structure in JSON is shown below.

```javascript
{
   "method": "ModerateBanners",
   "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. Ads with the “Draft” status are submitted for moderation. If the campaign does not have any such ads, the method returns the value 0.
|
`CampaignID` or `BannerIDS`
||
||
`BannerIDS`
|
IDs of ads for moderation with the “Draft” status (no more than 2000 IDs).

When the `BannerIDS` parameter is set, the `CampaignID` parameter is ignored.
||
|#


## 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
}
```

## PHP

```php
array(
   'CampaignID' =3665578
)
```

## Perl

```perl
{
   'CampaignID' =3665578
}
```


