DeleteBanners
Deletes ads.
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.
The DeleteBanners (Live) version also exists for this method.
When deleting ads, their entries in the database are deleted. This means you cannot get any type of information about a deleted ad.
You can only delete an ad that has not been displayed and does not have any statistics yet. For other ads, archiving is available using the ArchiveBanners method.
Input data
The input data structure in JSON is shown below.
{
"method": "DeleteBanners",
"param": {
/* CampaignBidsInfo */
"CampaignID": (int),
"BannerIDS": [
(long)
...
]
}
}
Parameters are described below.
Parameter |
Description |
Required |
CampaignBidsInfo object |
||
|
The campaign ID. |
Yes |
|
Array containing IDs of ads to delete (no more than 2000 IDs). |
Yes |
Output data
Returns 1 when deleted 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]
}