Campaign Types

campaign/types

Parameters:

  • token — authorization (string)

Example of the method request:

<?php
    $post = array(
        'token' => $token
    );
    if( $curl = curl_init() ) {
        curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/types');
        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:

{
    "paid": "1 page visit",
    "paid_inner": "internal traffic",
    "paid_adv": "ad clicks",
    "paid_se": "visits from search engine",
    "paid_prof": "visit + X clicks",
    "paid_se_behavioral": "improvement of behavioral factors in search",
    "paid_se_links": "link enhancement",
    ...
}

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 details
IPweb

Rate the material:

Rating: 4.25 out of 5. Total ratings: 34.
Last modified

I don't understand anything! Help :-(