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

Ключ

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

...

Requires HTTP basic authentication.

All methods accept POST requests with {dmp} path variable and token query parameter:

  • {dmp} is your DMP ID in GetIntent
  • token is your user API token

...

Content-Type: application/json

Verb: POST


Блок кода
languagejs
titleRequest and response example
{
  "id": 1000,
  "name": "Mens 18-24",
  "cost_type": "RATE",
  "cost_value": 20,
  "currency": "USD",
  "advertisers": [
    1000,
    2000,
    3000
  ]
}


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

...

URL: https://dmp-api.adhigh.net/api/v1/{dmp}/batch?token=token&with_header=true

Query parameter with_header must be set to true if the file contains header (optional, defaults to true).

Content-Type: application/gzip

Verb: POST

Users batch file must be sent as a request body.

...

Note that the file will be processed in real time if the size does not exceed 5 megabytes.

An endpoint for getting information about segments

URL: https://dmp-api.adhigh.net/api/v1/{dmp}/segments?token=token

Verb: GET

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

An endpoint for getting information about a particular segment

URL: https://dmp-api.adhigh.net//api/v1/{dmp}/segments/{segment_id}?token=token

Verb: GET

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