Adding Funds to The Account of The Advertising Campaign

campaign/add_visits

Parameters:

  • token — authorization (string)
  • id — id (int)
  • visits — number of executions (int)

When you top up an advertising campaign, the systems uses the money on the main balance and calculates it into visits * one_visit_cost

Example of the method request:

 $token,
        'id' => 999999,
        'visits' => 200
    );
    if( $curl = curl_init() ) {
        curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/add_visits');
        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
}
IPweb

Rate the material:

Rating: 4.31 out of 5. Total ratings: 8.
Last modified

I don't understand anything! Help :-(