campaign/edit
Parameters:
- token — authorization (string)
- Any field specified when adding campaigns according to the type
Example of the method request:
<?php
$post = array(
'token' => $token,
'id' => 999999,
'actions' => 200,
'period' => 'week',
'keyword' => 'keyword',
'position' => 32
);
if ($curl = curl_init()) {
curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/edit');
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
}
Possible error codes
General
1 - no request parameters
7 - access denied
16 - unknown error
37 - temporarily unavailable, try again later
38 - no entities matching the request parameters
41 - daily API request limit has been reached
more detailsEditing Advertising Campaigns
30 - no click instruction