Remove stale location targeting
Removes the listed rules that are still stale and that the user may manage, one by one, each with an action log entry; the ad servers pick the change up as after any targeting edit.
https://YOUR-NETWORK-DOMAIN/rest-api/targeting/stale-locations/remove.do Removes the listed rules that are still stale and that the user may manage, one by one, each with an action log entry; the ad servers pick the change up as after any targeting edit. Each rule carries 'kind': SAFE - removing it changes nothing, the ad server already ignores it (a valid include of the same type sits beside it, or it is a country exclude); OPENS_ALL - it is among the entity's only includes of its type, which keep every visitor out today, and removing them lifts the location limit altogether; STARTS_DELIVERY - a location exclude that keeps every visitor out today, so removing it starts delivery to everyone else. A rule of kind OPENS_ALL or STARTS_DELIVERY changes delivery, so it is removed only with confirmChanges=true; without it, it comes back in 'skipped' with reason CONFIRM_REQUIRED. Other reasons: NOT_STALE (not a stale rule the user may manage, or removed meanwhile), FORBIDDEN.
Form Params
targetIds array<integer> required
Ids of the stale rules to remove, as the list answers them
8012 confirmChanges boolean
Also remove rules whose removal changes delivery (OPENS_ALL, STARTS_DELIVERY)
false Responses
200
{success, removed:[targetId], skipped:[{targetId, reason, message}]}
400
Bad request — invalid or missing parameters
401
Authentication error
403
The role lacks both MANAGE_DEMAND_TARGETING and MANAGE_SUPPLY_PRE_TARGETING
503
The geo service did not answer, so staleness could not be checked; nothing was removed