User Attribution
You can call the attribution method to get the user's current attribution. This will return all the information found in the ADTAttribution class as a JSON object.
Note
Information about current attribution is available after the backend has tracked the installation. The attribution callback will fetch this information for you to use.
- Objective-C
- Swift
- Javascript
ADTAttribution *attribution = [Adtrace attribution];
let attribution = Adtrace.attribution()
var attribution = Adtrace.getAttribution();
All properties are returned as a JSON object. Any values that are not populated will be sent back as nil.
| Values | Data type | Description |
|---|---|---|
trackerToken | String | The token of the tracker to which the device is currently attributed. |
trackerName | String | The name of the tracker 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. |
adid | String | The unique Adtrace ID assigned to the device. |