adjust-icon

Get attribution information

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.

ValuesData typeDescription
TrackerTokenstringThe token of the link to which the device is currently attributed
TrackerNamestringThe name of the link to which the device is currently attributed
NetworkstringThe name of the network to which the device is currently attributed
CampaignstringThe name of the campaign to which the device is currently attributed
AdgroupstringThe name of the adgroup to which the device is currently attributed
CreativestringThe name of the creative to which the device is currently attributed
ClickLabelstringThe click label that the install is tagged with
AdidstringThe unique Adjust ID assigned to the device

Trigger a function when attribution changes

Property declaration
public Action<AdjustAttribution> AttributionChanged { get; set; }

The SDK can listen for attribution changes and call a function when it detects an update. To configure your callback function, assign your function to the AttributionChanged property on your config instance. You can pass the name of a function or write the function inline.

Get current attribution information

Method signature
public static AdjustAttribution GetAttribution();
Added in v4.12.0

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.

AdjustAttribution attribution = Adjust.GetAttribution();