# Описание процесса синхронизации идентификаторов (Cookie Sync) между UMG DSP и сторонними SSP

Платформа UMG поддерживает два сценария синхронизации идентификаторов пользователей (Cookie Sync) со сторонними SSP.

## **External Sync Type**&#x20;

UMG DSP отдает Sync url в сторонюю ssp и ожидаем получить от них redirect url который будет вызывать передавая свой идентификатор пользователя (buyerID) Sync URL вида `https://a.utraff.com/sync?ssp=<SSP_ID>` при внешнем хранениии и вызывается redirect на сохраненный url пример `https://sync.ssp.io/tools/sync?dsp=UMG&uid={}` DSP UMG подставляет идентификатор пользователя подменяя макрос `{}` в redirect url.

Например:

{% stepper %}
{% step %}

### Стороняя SSP вызывает sync URL UMG DSP &#x20;

Sync URL – `https://a.utraff.com/sync?ssp=<SSP_ID>`
{% endstep %}

{% step %}

### UMG DSP осуществляет редирект на redirect URL  сторонней SSP

Redirect URL – `https://sync.ssp.io/usersync?id={}&dspcsid=UMG`

Redirect URL (с раскрытым макросом) – `https://sync.ssp.io/usersync?id=1e566c9e-ab05-4b49-84e2-e700d2881c0b&dspcsid=UMG`

`{}` — макрос для подстановки BuyerID платформы UMG в роли DSP
{% endstep %}
{% endstepper %}

## **Internal Sync Type**&#x20;

UMG DSP отдает Sync url в стороннюю SSP и ожидает получать вызовы этого url с подстановкой в него идентификатора пользователя SSP (User ID) sync вида `https://a.utraff.com/sync?ssp=<SSP_ID>&id=<user_id>`

{% stepper %}
{% step %}

### Стороняя SSP вызывает sync URL UMG DSP &#x20;

Sync URL – `https://a.utraff.com/sync?ssp=<SSP_ID>&id=<user_id>`&#x20;
{% endstep %}

{% step %}

### Стороняя SSP подставляет в sync URL UMG DSP свой User ID &#x20;

Sync URL – `https://a.utraff.com/sync?ssp=<SSP_ID>&id=1e566c9e-ab05-4b49-84e2-e700d2881c0b`&#x20;
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.umg.team/main/ussp.io/opisanie-processa-sinkhronizacii-identifikatorov-cookie-sync/opisanie-processa-sinkhronizacii-identifikatorov-cookie-sync-mezhdu-umg-dsp-i-storonnimi-ssp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
