Delete template
Deletes a creative template by ID.
https://YOUR-NETWORK-DOMAIN/rest-api/template/delete.do Deletes a creative template by ID. A template that non-deleted banners are built on, or that non-deleted placements use as their native adapter, is refused with 409 listing them under usages, unless force=true: then it is deleted, those banners and placements are detached from it, and detachedBanners / detachedPlacements say how many. Requires DELETE permission on templates.
Form Params
id integer
ID of the template — omit on edit to create a new template; delete and export need it
12 active boolean
Whether the template is active
true alwaysRedirect boolean
Whether the template always uses redirect mode for click tracking
false content string
Template HTML/JS content body
<div>{{BANNER}}</div> global boolean
Whether this is a global (system-wide) template
false impressionRecordedByTemplate boolean
Whether impression tracking is handled by the template itself
false maxRequiredNativeAdsAmount integer
Maximum number of native ads supported by this template
1 minRequiredNativeAdsAmount integer
Minimum number of native ads required by this template
1 placementType string
Placement type this template applies to
SITE_PLACEMENT title string
Template title
Standard Banner 300x250 type string
Template type
GENERAL force boolean
true to delete the template although non-deleted banners or placements still use it; they are detached from it — banners built on it lose their markup, placements lose their native-adapter rendering. Without it such a template is refused with 409 and the users are listed
false Responses
200
Template deleted successfully
400
Bad request — invalid or missing parameters
401
Authentication error
403
Insufficient permissions
409
Non-deleted banners or placements still use the template and force was not set; usages lists them