---
metadata:
  - name: generator
    content: Diplodoc Platform v5.28.0
alternate:
  - https://yandex.com/support/eda-distr/en/code-integration.md
  - https://yandex.com/support/eda-distr/ru/code-integration.md
---
# How to generate a link

After you activate your account, we'll send you an email.

The tracking code will be added to the **Products** section of your [account](https://distribution.yandex.com/v2/products/).

The only way to track orders is with a tracking code (CLID) of the **Mobile app link** type.

Use this template to integrate your tracking code into the link:

```
https://plms.adj.st/?adj_t=vae3zcs_eqrhmx1&adj_campaign={CLID}_{Placement}&adj_adgroup={CLID}_{VID}_{ID}
```

Where:

{% list tabs %}

- For adj_campaign

  1. `{CLID}` — your tracking code.

  2. `{Placement}` — well-known name of the placement or network.

- For adj_group

  1. `{CLID}` — your tracking code.

  2. `{VID}` — numeric ID of the network or partner in the `1-999` format.

  3. `{ID}` – placement's ID, assigned by the network that is specified in the `adj_campaign` parameter.
 	
  {% note warning %}

  Don't pass more than one ID for the same placement. The exception is the separation for ios/android.

  {% endnote %}

{% endlist %}

{% note warning %}

Don't pass unique IDs such as `click_id` and `gaid\idfa` in the `adj_creative` parameter.

{% endnote %}

For example, if the partner AdDistributor buys advertising in the InMobi network the final link would look like this:

```
https://plms.adj.st/?adj_t=vae3zcs_eqrhmx1&adj_campaign=7654321_InMobi&adj_adgroup=7654321_12_threeinarow.apk&adj_creative=8877665544_hype1
```	

The link should only be used for attracting new users. You can only use advertising materials available in the **Link generator** tab to create links.

## How to add the Yandex Eats callback function {#callback}

To add a callback-function to an installation add the parameter `&adj_install_callback={CALLBACK to an installation}` to the link.

How the link will look like:

```
https://plms.adj.st/?adj_t=vae3zcs_eqrhmx1&adj_campaign={CLID}_{Placement}&adj_adgroup={CLID}_{VID}_{ID}&adj_install_callback={CALLBACK to an installation}
```

To get a callback about the first order add functions for Android and iOS to the link:

*	`&adj_event_callback_46radv={CALLBACK Android}`

*	`&adj_event_callback_2ih61e={CALLBACK iOS}`

How the link will look like:

```
https://plms.adj.st/?adj_t=vae3zcs_eqrhmx1&adj_campaign={CLID}_{Placement}&adj_adgroup={CLID}_{VID}_{ID}&adj_install_callback={CALLBACK to an installation}&adj_event_callback_46radv={CALLBACK Android}&adj_event_callback_2ih61e={CALLBACK iOS}
```

{% note warning %}

Be sure to encode the callback function.

{% endnote %}

An example of an encoded URL:

```
https://plms.adj.st/?adj_t=vae3zcs_eqrhmx1&adj_campaign={CLID}_{Placement}&adj_adgroup={CLID}_{VID}_{ID}&adj_install_callback=http%3A%2F%2Fmynetworkserver.ru%2Fcallback%3Fclick_id%3D{CLICK_ID}%26event%3Dinstall&adj_event_callback_46radv=http%3A%2F%2Fmynetworkserver.ru%2Fcallback%3Fclick_id%3D{CLICK_ID}%26event%3Dfirst_order&adj_event_callback_2ih61e=http%3A%2F%2Fmynetworkserver.ru%2Fcallback%3Fclick_id%3D{CLICK_ID}%26event%3Dfirst_order
```

{% note warning %}

You can't use the callback function with an unencoded URL.

{% endnote %}

An example of an unencoded URL:

```
https://plms.adj.st/?adj_t=vae3zcs_eqrhmx1&adj_campaign={CLID}_{Placement}&adj_adgroup={CLID}_{VID}_{ID}&adj_install_callback=http://mynetworkserver.ru/callback?click_id={click_id}&event=install&adj_event_callback_46radv=http://mynetworkserver.ru/callback?click_id={click_id}&event=first_order&adj_event_callback_2ih61e=http://mynetworkserver.ru/callback?click_id={click_id}&event=first_order
```