campaign/prices
<?php $post = array( 'token' => $token ); if ($curl = curl_init()) { curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/prices'); 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); } // Resultado: { "paid": { "currency": "RUB", "base_price": 0.10 }, "paid_prof": { "currency": "RUB", "base_price": 0.25, "optional_clicks_price": 0.049, "max_inner_clicks": 4 }, "paid_adv": { "currency": "RUB", "base_price": 0.15, "optional_clicks_price": 0.049, "max_inner_clicks": 4, "max_outer_clicks": 4 }, "paid_se": { "currency": "RUB", "base_price": 0.15, "if_outer_clicks_add_price": 0.197, "optional_clicks_price": 0.049, "max_inner_clicks": 4, "max_outer_clicks": 4 }, "paid_se_behavioral": { "currency": "RUB", "base_price": 0.15, "optional_clicks_price": 0.049, "max_inner_clicks": 4, "max_before_clicks": 4 }, }
Description of fields:
The cost of implementation should be calculated using the following formula:
* if there is no optional_clicks_price or if_outer_clicks_add_price, we take them equal to zero