API Queries - Update Campaign Folder
The update_campaign function allows you to change settings or the status of an existing Campaign folder. This function requires additional parameters. Although optional parameters are not all required, at least one must be included. Failing to include required paramters or at least one optional will result in an error response.
- campaign - Name of Campaign folder to update. (Required)
- active - To Stop or Activate the campaign folder, use values. 0 or 1, respectively (Optional)
Note: Make sure to URL encode all values, especially the campaign name.
Example query and response
In this example, we will be stopping the Campaign folder "Credit Cards".
Note the URL encoding on the values.
The result for the setting update will be shown (represented by Success="1", meaning it was successful). The above response means that the Campaigns folder's status is now stopped (represented by Value="0").
Possible error responses for this function are:
- 412 - Campaign required
- 421 - Campaign Invalid
- Other general errors, such as 200 - Internal Error or 300 - Username or password invalid.
For a complete list of error responses, see the Error Codes manual page.