Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Блок кода
languagejs
titleRequest and response example
{
  "id": 1000,
  "name": "Mens 18-24",
  "cost_type": "RATE",
  "cost_value": 20,
  "currency": "USD",
  // in order to make the segment available to all advertisers
  // set "advertisers" node to empty array or do not set it at all
  "advertisers": [
    1000,
    2000,
    3000
  ],
  "advertisers_prices_map" : {
		"5495": 0.2,
		"5501": 0.011
  }
}


{
  "ok": true,
  "result": {
    "id": 12345
  }
}

...

Блок кода
languagejs
titleresponse example
{
	"ok": true,
	"result": [{
		"id": "12345",
		"name": "12345",
		"cost_type": "NONE",
		"cost_value": 0.0,
		"currency": null,
		"advertisers": [123],
		"status": "CREATED",
		"advertisers_prices_map": {
			"5495":0.2,
			"5501":0.011
		}
	}]
}

Endpoint for getting information about a particular segment

...