---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/direct/doc/dg-v4/en/reference/ModerateBanners.md
  - https://yandex.com/dev/direct/doc/dg-v4/ru/reference/ModerateBanners.md
  - href: en/reference/ModerateBanners.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

# ModerateBanners
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 4 and 5, see the [Migration guide](https://yandex.com/dev/direct/doc/migration/concepts/methods.md).

{% endnote %}


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

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).


## 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.
|
Yes
||
||
`BannerIDS`
|
An array containing the IDs of ads that have been submitted for moderation.
|
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]
}
```

