...
| Блок кода | ||||
|---|---|---|---|---|
| ||||
{
"id": 1000,
"name": "Mens 18-24",
"cost_type": "RATE",
"cost_value": 20,
"currency": "USD",
// You may also specify the empty array of advertisers and set the "available_to_all" node below to "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
}
} |
...
Note that the file will be processed in real time if the size does not exceed 5 megabytes.
...
Endpoint for getting information about segments
URL: https://dmp-api.adhigh.net/api/v1/{dmp}/segments?token=token
Verb: GET
| Блок кода | ||||
|---|---|---|---|---|
| ||||
{
"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
URL: https://dmp-api.adhigh.net//api/v1/{dmp}/segments/{segment_id}?token=token
Verb: GET
| Блок кода | ||||
|---|---|---|---|---|
| ||||
{
"ok": true,
"result": {
"id": "12345",
"name": "12345",
"cost_type": "NONE",
"cost_value": 0.0,
"currency": null,
"advertisers": [123],
"status": "CREATED",
"available_to_all": true
}
}
|