API Queries - Add Campaign Folder
The add_campaign function creates a new Campaign folder. This function requires additional parameters. Failing to include them will result in an error response.
- campaign - Campaign folder to be added. Does not accept multiple campaign folders. (Required)
Note: Make sure to URL encode all values, most importantly the campaign folder value.
Example query and response:
In this example, we will be adding the campaign folder "Credit Cards".
Note the URL encoding on the values.
The above response means that the campaign folder was successfully created and will be in the "Paused" status. It will be automatically activated once approved by our system.
Possible error responses for this function are:
- 411 - Campaign required
- 421 - Campaign Invalid
- 428 - Campaign already exists
- 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.