Training
For clients
Загружается...
A resource for managing local geo lists. After creating the lists, you can add them to a segment, which can then be included in campaign targeting.
Used object: LocalGeo
Retrieving the list of local geo lists.
Request example:
GET /api/v2/remarketing/local_geo.json?fields=id,name,regions
Response example:
{ "items": [{ "id": 1, "name": "New local geo list", "regions": [{ "lat": 55.75583, "lng": 37.6173, "radius": 3000, "label": "Moscow city center", "address": "Exact address" }] }] }
The response contains an items array consisting of LocalGeo objects.
Creating a local geo list.
Request example:
POST /api/v2/remarketing/local_geo.json { "name": "New local geo list", "regions": [{ "lat": 55.75583, "lng": 37.6173, "radius": 3000, "label": "Moscow city center", "address": "Exact address" }] }
Response example:
{ "id": 1, "name": "New local geo list", "regions": [{ "lat": 55.75583, "lng": 37.6173, "radius": 3000, "label": "Moscow city center", "address": "Exact address" }] }
Returned status codes:
200 — if the list was successfully created.
400 — in the following cases:
Error examples:
{"error": {"code": "validation_failed", "fields": { fields where errors were found }}}