Support Home > Reference Information > Attribution Response Examples

Attribution Response Examples


The following examples illustrate typical attribution responses provided by the SDK via the attribution callback or property. While some values may differ slightly depending on the platform, the examples below will help you to determine how best to utilize the attribution response within your app.


Prior to Retrieval

Attribution retrieval requires the SDK to communicate with Kochava servers during the first launch of the app. This request typically happens 5-10 seconds after launch and will trigger the attribution callback upon completion. If your code queries the attribution property before attribution has been retrieved the returned value will be empty. In this case your code should wait for the attribution callback or try again later. Empty values are as follows:

iOS Android and Other SDKs

Non-Attributed Install Response

If the install was not attributed (organic), the following is returned:

iOS Android and Other SDKs

Attributed Install Example Response

If the install was attributed, the “attribution” value contains a larger object which describes the details of the attribution. The example below represents a typical attributed response.

 

NOTE: The attribution response is provided as a json dictionary; however, iOS provides this attribution response as a dictionary while all other platforms provide this value as a serialized dictionary in string form.

 
 

Last Modified: Oct 30, 2018 at 1:38 pm