List stale location targeting
Location and country rules, on every advertiser, campaign, banner, site, zone and placement the user may manage (paused ones included, deleted ones left out), that name a place the geo database no longer knows: it renames and merges places between updates.
https://YOUR-NETWORK-DOMAIN/rest-api/targeting/stale-locations.do Location and country rules, on every advertiser, campaign, banner, site, zone and placement the user may manage (paused ones included, deleted ones left out), that name a place the geo database no longer knows: it renames and merges places between updates. 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. 'counts' sums the rules per kind. When the geo service does not answer, or nearly every place fails at once, 'status' is GEO_UNAVAILABLE with the reason in 'unavailable' and nothing is listed, so an outage never reads as stale targeting. 'unchecked' counts places the service gave no clear answer for; their rules are not listed. Requires MANAGE_DEMAND_TARGETING or MANAGE_SUPPLY_PRE_TARGETING; each rule also needs that side's update rights on its entity and the targeting permission of its type.
Responses
200
{success, status: OK|GEO_UNAVAILABLE, unavailable, message, places, unchecked, counts:{SAFE, OPENS_ALL, STARTS_DELIVERY}, rows:[{targetId, type, value, place, rule, kind, level, entityId, entityName, active, targetingOn, path:[{level, id, name}]}]}
400
Bad request — invalid or missing parameters
401
Authentication error
403
The role lacks both MANAGE_DEMAND_TARGETING and MANAGE_SUPPLY_PRE_TARGETING