# Adxad as a Traffic Source

### **Before you start**

Before you start setting up an integration with ADXAD in Trackwill, make sure that you already have:

* An active Trackwill account;
* An active ADXAD account with some funds added;
* An active campaign in ADXAD;
* API key to your account in ADXAD DSP. Contact ADXAD personal manager to get it.

Without these things you will not be able to get costs from ADXAD to Trackwill.

### How to start getting costs data from ADXAD?

#### **Step 1.  Create ADxAD as a traffic source in Trackwill**

To add **ADXAD as a traffic source** open the "**Traffic sources"** page and click **Create** button: &#x20;

![](/files/-LuFr9cHRBTLC9Y2o_Kc)

Then select **ADXAD** from trusted traffic sources list. All listed sources here are with API integration:

![](/files/-LuFs0KCSyda7tseWXMp)

After that set **Workgroup=Public**, and **ADXAD** postback URL and macros will be automatically available in the traffic source template. Вy default, tracker creates a base token set for each selected integrated network from a template. To pass various user data from **ADXAD** to Trackwill you need to configure tokens.

#### **Step 2.** Set up a connection to your account in the ADXAD

In order to be able to connect to **ADXAD** via API and start receiving costs data in the tracker, you must enter your credentials to your account in **ADXAD**. To do this go to **Settings**/**Integrations:**<br>

![](https://lh3.googleusercontent.com/im3hN2IzABqllw1X95cPSiH52Ld8E_mO2ctAMNCgqLGcJ2cWdyr649c0U6-mP5oskUUtvjlmCpGMYdUAJy3mB-h2QpvtOOsLhjFxFuJk6iCQC6um-V5GvC9TJ23dUHx8LRxiZgOE)

Click **Create** button and select **ADXAD (buying)**:

![](https://lh6.googleusercontent.com/TR_PgW6aKIs_PfarcPsTkQjwhgo-zQbS0EuM1dt7KkIDpwfsMVF2CZ2ybLpPe2eb69DyhJj7xY_gzIbUOTDYC5xXcMt6ZwEQrYOjGPQB1MP5HxnZkfsl2KWNNyOkmnsUc17GJfgC)

Then enter your API Integration key from **ADXAD** and save i&#x74;**:**

![](https://lh3.googleusercontent.com/ycMIA3z1K1SXxp92f3P0kpMcOzCA0WPxBV1yjAZWZzEbKi5ew_oAAaWa3FeDhciF71rBUjBOos5-VPhPhhWPNyjPOt1AY8ZBoYs_b7TiqnLxw65B-M_s-Zsfgm8k_BCm5_t0qjZ9)

#### **Step 3. Start a campaign with Integrated Traffic Source**

Go to the **Campaigns** tab and click **Create** button. Fill **General** form, select **ADXAD** as a traffic source to this campaign, set **Cost model=integration,** and select your **API Integration Account:**

![](https://lh3.googleusercontent.com/RY93EMBM2YFi7MycAtnqQoMWhw-R2JwBRzsMIfw-tUlAvlodBkKl7q8AoBS-hF9GHvVILgPeofG1TM3ihDSh3qan3sQ2djTe-GOxBbGRMUXbTV4q9pD785ujDiFe1Doy8rr5yI1Z)

Then fill the **Destination tab:** **Rules**, **Paths**, **Lander**, **Offers**, and click **Save** button.

Your track-link will be generated automatically after saving the campaign. You can remove unnecessary macros from the link, if you like. The only required conversion tracking parameter is **external\_id**. Copy this link from the tracker interface.&#x20;

**Trackwill** postback link example is:

*<http://s2s.trwl1.com/api/v1/conversion?clickid={sub1}\\&payout={sum}\\&type=join>*

### How to get data from macros to the tracker?

The **Advanced parameters** allow you to pass additional visit characteristics from the traffic source platform, for example, impessionid or userID, that can be then used for targeting and optimization. All of them are automatically appended to the Campaign URL. Also, you can dynamically tune advanced parameters by using blue switches on the right side of the Traffic Source creation popup:

![](/files/-LzGd032jZGqfpqHlO-Q)

Selected tokens will be availaible after saving the campaing in the tracklink, for example:

{% embed url="<https://r.trwl1.com/c1/7dffe653-7002-42f8-8592-4528ecc10e68?cv1={impressionId}&cv2={userId}&cv3={device}&cv4={creativeId}&cv5={campaignId}&cv6={language}&cv8={browser}}&cv9={siteId}}&cv10={creativeName}}>" %}

That means, that you can pass any user data you like and track it on the **Reports** page in CV1-CV10 fields.

### How to pass conversions to ADXAD DSP?

**Postback URL** - is used to send conversions to the source or any additional services. You can specify postbacks at the:

* [**Traffic source**](/traffic-sources/custom-traffic-source-configuration-in-trackwill.md) creation page. By default, always sends conversions on this postback, regardless of whether other postbacks are specified;
* [**General tab**](/campaign/campaign-general-tab.md) at the campaign creation page. If it is specified, always sends conversions on this postback, regardless of whether other postbacks are specified;
* [**Advanced settings**](/campaign/advanced-settings.md) at the campaign creation page. By default, these postbacks are working if you configured them instead of postback in the General tab.

**Please note that the tracker with a postback in the traffic source settings sends conversions for all campaigns at once. If you need to send conversions only for a specific campaign, use the S2S postback in its settings.**

To pass conversions from **Trackwill** to **ADXAD DSP** you need to use the following postback:

{% embed url="<http://buy.adxad.com/api/v1/postback?action=lead&impressionId={externalid}&amount={payout}>" %}


---

# 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.trackwill.com/traffic-sources/adding-an-integrated-traffic-source-in-trackwill.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.
