Curator API: Delete an Ad
DELETE https://api.curator.io/v1.2/ads/AD_ID deletes an ad. The request needs your API key, and your plan must include API access. Only HTTPS is supported.
Authentication
Send your Curator API key (find it in the Curator Dashboard) in one of three ways: as a query string (?api_key=API_KEY), as a Basic auth header with the API key as the username, or as a Bearer token (Authorization: Bearer API_KEY). You can only delete ads in the account the key belongs to.
Example request
curl -X DELETE "https://api.curator.io/v1.2/ads/AD_ID?api_key=API_KEY"Parameters
Parameter | Description |
|---|---|
| The ad's |
Response
A successful delete returns:
{ "success": true, "error": false }If the feed's responses are cached, the ad can keep showing until the cache expires. The feed object's cache_time (see Curator API: Get Feeds) says how long that is, in minutes.
Errors
Status | When | Body |
|---|---|---|
401 | The API key is missing or not valid. |
|
403 | Your plan does not include API access. |
|
403 | The ad belongs to another account. |
|
404 | No ad has that ID, or it was already deleted. |
|
429 | When rate limiting is enabled, more than 60 requests per minute. |
|