Setting Advertising Campaigns Category

campaign/set_category

Parameters:

  • token — authorization (string)
  • id — id of the ad campaign (int)
  • category_id — category identifier (int)

Example of the method request:

 $token,
        'id' => 999999,
        'category_id' => 9999
    );
    if( $curl = curl_init() ) {
        curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/set_category');
        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
}
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 detailsCategory of Advertising Campaigns 31 - you cannot change the category
IPweb

Rate the material:

Rating: 3.93 out of 5. Total ratings: 7.
Last modified

I don't understand anything! Help :-(
-