# Adjust

***

To integrate [Adjust](https://www.adjust.com/), please, go to Settings=>Applications=>Your Application=>Edit=>Choose Adjust set up

<figure><img src="/files/c617ZWsZmqRDq3XbTG96" alt=""><figcaption></figcaption></figure>

Appflow\.ai will be sending subscription events to Adjust.

<figure><img src="/files/H2kLCDXM3dCmTeKYWjZc" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %} <mark style="color:orange;">**Don't forget account token**</mark>

To integrate Adjust you will need to activate integration, add app token, account token and environment.
{% endhint %}

**To integrate Adjust you will need to activate integration, add app token, account token and environment.** To make it work, you will also need to generate event tokens on Adjust and add into the same page to the right events places.

<figure><img src="/files/F7AEIb3BTMQ5mRwS6ZKh" alt=""><figcaption></figcaption></figure>

To find Account API token on Adjust you can check Adjust [documentation](https://help.adjust.com/en/article/report-service-api-authentication#use-adjust-token-api-calls)\
or here is quick guide:

If you are an admin:

* Log in to the Adjust dashboard.
* Select the menu icon in the top left.
* Select My Account.
* In the Your Data tab, find the User Details section. Select the cog icon () at the bottom of this segment.
* Select API Token.
* Copy your API token from the API Token panel.

If you are not admin user of Adjust:

* Log in to the Adjust dashboard.
* Select the menu icon in the top left.
* Select My Profile.
* Select API Token.
* Copy your API token from the API Token panel.

Also, please copy and paste the link by the provided path into Adjust.

{% hint style="warning" %}
If you don't finish this step, you could not get the iOS attribution info from Adjust.
{% endhint %}

<figure><img src="/files/3cTWTpoHCRNsuZsfFMxw" alt=""><figcaption></figcaption></figure>

### Integration

Here is a more detailed instruction on how to interact inside the Adjust exactly to send events to Adjust:

1. Create an app

<figure><img src="/files/4SAm9mnK8wLt4MAuZu0i" alt=""><figcaption></figcaption></figure>

2. Copy the app token

<figure><img src="/files/F1aTMDTBZpWaFxaVuRCG" alt=""><figcaption></figcaption></figure>

and copy to Appflow\.ai Adjust setting.

<figure><img src="/files/itDiJy54IdsnSWaeoTTQ" alt=""><figcaption></figcaption></figure>

3. Now we need to create events first. Click on All Settings on the same Adjust screen. Click on Events

<figure><img src="/files/Yr57i2YKxUMKypDzx28n" alt=""><figcaption></figcaption></figure>

Near each event, you see the event token. Copy it to the Appflow\.ai events list

<figure><img src="/files/brkCBAlrGoyxhJdvU5qN" alt=""><figcaption></figcaption></figure>

### Attribution

If you want to do the opposite, meaning take attributes FROM Adjust\
You need just point 5 from this explanation (provide your developer with it). However, we provide you with some help steps (1-4) you may need for the testing.

Don't forget that your app should be integrated with Adjust:\
<https://help.adjust.com/en/article/get-started-android-sdk>\
<https://help.adjust.com/en/article/get-started-ios-sdk>

1. Create the app, as mentioned previously
2. Click on Tracker URLs and create a tracker

<figure><img src="/files/09YkJ2tP2yn40XVpobeZ" alt=""><figcaption></figcaption></figure>

3. Call it anyhow you want

<figure><img src="/files/pnprneAegHDZlbr0ucgb" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/uN4sln8StyNS5RcqYvns" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/HOPYkU8jfArOCoDFCVEL" alt=""><figcaption></figcaption></figure>

4. Copy Tracking URL

<figure><img src="/files/keb0sdWtVZAiWVCP0lSO" alt=""><figcaption></figcaption></figure>

**5. Ask your developer to put to the SDK:**\
\
for iOS

To upload Adjust attribution data, the developer accesses the Adjust SDK and reports the data in the AdjustDelegate method, refer to the example below

```swift
extension AppDelegate: AdjustDelegate {
    //Callback for the first app installation
    func adjustAttributionChanged(_ attribution: ADJAttribution?) {
        // Just pass Adjust attribution to Adapty SDK
        if let attribution = attribution?.dictionary() {
            Appflow.shared.updateAttribution(attribution, source: .adjust)
        }
    }
    
}
```

Android

Adjust\
To upload Adjust attribution data, refer to the example below

```kotlin
val config = AdjustConfig(context, adjustAppToken, environment)
config.setOnAttributionChangedListener { attribution ->
    attribution?.let { attribution ->
        Appflow.updateAttribution(attribution, AttributionType.ADJUST)
    }
}
Adjust.onCreate(config)
```


---

# 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://doc.appflow.ai/docs/integrations/adjust.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.
