Support Home > SDK Integration > SDK – KochavaTracker > Class – KochavaTracker > Instance Method – attributionDictionary

Instance Method – attributionDictionary

  • Instance Method

    attributionDictionary

    Gets the attribution dictionary that has already been retrieved by the tracker from the Kochava Server.


    Declaration

    Return Value

    The attribution information provided by the server, in a dictionary.
    Possible return values:

    • nil: This means that attribution information could not be retrieved. This may mean that attribution has not yet been determined.
    • A dictionary containing a single key/value pair of key “attribution” with a value of false. This represents an organic install. An organic install is one which has not been attributed.
    • A dictionary with a variety of attribution information. This indicates that the install was attributed and the dictionary contains the details.

    Discussion

    The tracker will retrieve attribution information if the kKVAParamRetrieveAttributionBoolKey parameter is passed as true during its configuration. It does this usually within about 10 seconds from the initial launch, although it is subject to a variety of conditions which can cause delays. If you want to retrieve this information for your own uses you would typically do this using the KochavaTrackerDelegate instance method tracker(_:didRetrieveAttributionDictionary:).

    Thereafter, this method may be used to return this information on-demand. You may call the method at any time once the tracker has been configured, but if the information has not been gathered from the server then the return value will be nil.

    Requirement(s)

    The kKVAParamRetrieveAttributionBoolKey parameter must be passed with a value of true to the tracker during its configuration.

     

    Sample Code:

     

    For a detailed explanation of attribution responses, refer to our Attribution Response Examples support documentation.

     

    See Also

    Related Symbols constant kKVAParamRetrieveAttributionBoolKey

    A constant to be used as a key in a key/value pair, where the corresponding value is a boolean indicating if attribution information should be retrieved from the Kochava Server.

    func tracker(KochavaTracker, didRetrieveAttributionDictionary:[AnyHashable: Any])

    Notifies the delegate that attribution information has been retrieved from the server, and provides the data in a dictionary.

  • Instance Method

    attributionDictionary

    Gets the attribution dictionary that has already been retrieved by the tracker from the Kochava Server.


    Declaration

    Return Value

    The attribution information provided by the server, in a dictionary.
    Possible return values:

    • nil: This means that attribution information could not be retrieved. This may mean that attribution has not yet been determined.
    • A dictionary containing a single key/value pair of key “attribution” with a value of false. This represents an organic install. An organic install is one which has not been attributed.
    • A dictionary with a variety of attribution information. This indicates that the install was attributed and the dictionary contains the details.

    Discussion

    The tracker will retrieve attribution information if the kKVAParamRetrieveAttributionBoolKey parameter is passed as true during its configuration. It does this usually within about 10 seconds from the initial launch, although it is subject to a variety of conditions which can cause delays. If you want to retrieve this information for your own uses you would typically do this using the KochavaTrackerDelegate instance method tracker:didRetrieveAttributionDictionary:.

    Thereafter, this method may be used to return this information on-demand. You may call the method at any time once the tracker has been configured, but if the information has not been gathered from the server then the return value will be nil.

    Requirement(s)

    The kKVAParamRetrieveAttributionBoolKey parameter must be passed with a value of true to the tracker during its configuration.

     

    Sample Code:

     

    For a detailed explanation of attribution responses, refer to our Attribution Response Examples support documentation.

     

    See Also

    Related Symbols constant kKVAParamRetrieveAttributionBoolKey

    A constant to be used as a key in a key/value pair, where the corresponding value is a boolean indicating if attribution information should be retrieved from the Kochava Server.

    tracker:didRetrieveAttributionDictionary:

    Notifies the delegate that attribution information has been retrieved from the server, and provides the data in a dictionary.

 
 

Last Modified: Jul 12, 2018 at 8:25 am