API Queries - Delete Campaign Folder
The delete_campaign function deletes a Campaign folder. All keywords must be removed from a campaign folder before it can be deleted.
- campaign - Campaign folder to be deleted. Does not accept multiple campaign folders. (Required)
Example query and response:
In this example, we will be deleting the Campaign folder "Credit Cards".
The above response means that the Campaign folder was successfully deleted from the system.
Possible error responses for this function are:
- 411 - Campaign required
- 420 - Campaign not found
- 421 - Campaign Invalid
- 426 - Campaign cannot be deleted with keywords inside
- 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.