UnArchiveCampaign (Live)

Removes the campaign from the archive.

Attention.

Disabled method. Use version 5 of the API.

For information about the compatibility of methods between versions Live 4 and 5, see the Migration guide.

Unarchiving a campaign may take several minutes. After unarchiving, the StatusArchive parameter takes the “No” value.

If the campaign's StatusArchive parameter has the value “CurrencyConverted”, the method returns an error with code 155.

Restrictions

Attention. This method only supports campaigns with the “Text & Image Ads” type. To work with all types of campaigns, use the Campaigns service in version 5 of the API. More information about campaign types

Input data

The input data structure in JSON is shown below.

{
   "method": "UnArchiveCampaign",
   "param": {
      /* CampaignIDInfo */
      "CampaignID": (int)
   }
}

Parameters are described below.

Parameter Description Required
CampaignIDInfo object
CampaignID The campaign ID. Yes

Output data

Returns 1 when unarchived successfully, as shown in the following example.

{
   "data": 1
}

Examples of input data

Python

{
   'CampaignID': 3665578
}

PHP

array(
   'CampaignID' => 3665578
)

Perl

{
   'CampaignID' => 3665578
}