إزالة شاشة LCD
يقرأ 3 دقائق
campaign/delete
المعلمات:
- token - التفويض (سلسلة)
- id - معرّف الحملة الإعلانية (عدد صحيح)
- child_campaigns - [اختياري] حذف الحملات الإعلانية الفرعية (عدد صحيح، القيمة الافتراضية: 0)
- forced_pay - [اختياري] بالنسبة للحملات الإعلانية ذات المراجعة المؤجلة، يسمح بمحاولة الدفع الإجباري للمهام المعلقة (عدد صحيح، القيمة الافتراضية: 0). القيم:
- 0 - بدون دفع إجباري
- 1 - الدفع القسري للطلبات المعلقة
مثال على استدعاء الطريقة:
<?php
$post = array(
'token' => $token,
'id' => 999999
);
if ($curl = curl_init()) {
curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/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);
}
// Результат:
{
"error": "Access denied",
"error_code": 7
}
====================================================================================
<?php
$post = array(
'token' => $token,
'id' => 999998
);
if ($curl = curl_init()) {
curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/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);
}
// Результат:
{
"status": "ok",
"error_code": 0
}
====================================================================================
<?php
$post = array(
'token' => $token,
'id' => 999998,
'forced_pay' => 1
);
if ($curl = curl_init()) {
curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/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);
}
// Результат:
{
"status": "ok",
"error_code": 0
}
Removing Advertising Campaigns
18 - actions awaiting confirmation19 - not enough credits in the account
40 - actions awaiting confirmation, forced payment error