Deleting a Category
Read 1 minute
category/delete
Parameters:
- token — authorization (string)
- id — category id (int)
Example of the method request:
$token,
'id' => 9999
);
if( $curl = curl_init() ) {
curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/category/delete');
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
$out = curl_exec($curl);
echo $out;
curl_close($curl);
}
// Result:
{
"status": "ok",
"error_code": 0
}
Categories of Advertising Campaigns
26 - less than 2 characters in category name27 - a category with this name already exists
28 - the category is not found
29 - error setting unique ip for the category