...
| Блок кода | ||||
|---|---|---|---|---|
| ||||
{
"id": 1000,
"name": "Mens 18-24",
"cost_type": "RATE",
"cost_value": 20,
"currency": "USD",
// inYou ordermay toalso makespecify the segmentempty availablearray to allof advertisers
and //set setthe "advertisersavailable_to_all" node below to empty array or do not set at all "true" or "false"
// depending on the current needs
"advertisers": [
1000,
2000,
3000
],
"advertisers_prices_map" : {
"5495": 0.2,
"5501": 0.011
},
//The default value of the field is false.
"available_to_all": false
}
{
"ok": true,
"result": {
"id": 12345
}
} |
...
| Блок кода | ||||
|---|---|---|---|---|
| ||||
{
"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
},
"available_to_all": false
}]
} |
Endpoint for getting information about a particular segment
...
| Блок кода | ||||
|---|---|---|---|---|
| ||||
{
"ok": true,
"result": {
"id": "12345",
"name": "12345",
"cost_type": "NONE",
"cost_value": 0.0,
"currency": null,
"advertisers": [123],
"status": "CREATED",
"available_to_all": true
}
}
|