ModerateBanners

Submits an ad with “Draft” status for moderation.

Attention.

Disabled method. Use version 5 of the API.

For information about the compatibility of methods between versions 4 and 5, see the Migration guide.

The ModerateBanners (Live) 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.

Input data

The input data structure in JSON is shown below.

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

Parameters are described below.

Parameter Description Required
CampaignBidsInfo object
CampaignID The campaign ID. Yes
BannerIDS An array containing the IDs of ads that have been submitted for moderation. Yes
Parameter Description Required
CampaignBidsInfo object
CampaignID The campaign ID. Yes
BannerIDS An array containing the IDs of ads that have been submitted for moderation. Yes

Output data

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

{
   "data": 1
}

Examples of input data

Python

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

PHP

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

Perl

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