When a user interacts with an Adjust link, their attribution information updates. This can happen if the user interacts with a deep link. Information about a user’s attribution is represented in the AdjustAttribution
class.
AdjustAttribution class properties
The AdjustAttribution
class contains details about the current attribution status of the device. Any values that aren’t populated for the user are returned as a null
value.
Values | Data type | Description |
---|---|---|
trackerToken | String | The token of the link to which the device is currently attributed |
trackerName | String | The name of the link to which the device is currently attributed |
network | String | The name of the network to which the device is currently attributed |
campaign | String | The name of the campaign to which the device is currently attributed |
adgroup | String | The name of the adgroup to which the device is currently attributed |
creative | String | The name of the creative to which the device is currently attributed |
clickLabel | String | The click label that the install is tagged with |
adid | String | The unique Adjust ID assigned to the device |
costType | String | The campaign pricing model (for example cpi) |
costAmount | Double | The cost of the install. |
costCurrency | String | The 3 character ISO 4217 code of the currency associated with the cost. |
fbInstallReferrer | String | The Facebook install referrer. |
Trigger a function when attribution changes
The SDK can listen for attribution changes and call a function when it detects an update. To configure your callback function, call the setOnAttributionChangedListener
method with your function name as an argument.
Facebook install referrer
The Adjust SDK receives Facebook install referrer information as a String
property in the AdjustAttribution
object. You can access this information by serializing the content as a JSON object.
Get current attribution information
When a user installs your app, Adjust attributes the install to a campaign. The Adjust SDK gives you access to campaign attribution details for your install. To return this information, call the getAttribution
method to return the attribution information as an AdjustAttribution
object.