Media Track
One can attribute a Media source to the SDK's current session. If the target session is the first, the Media information will be attributed to the install of the app on the device, and will be stored inside the AppInstall object.
Every events created during a session promoted by a media campaign will have this information. Also, a event with the type MEDIA_ATTRIBUTION (id = 28) will be created.
Note: A subscription created during a promoted session will have media information stored within it
Attributing media information:
MediaInfo mediaInfo = new MediaInfo()
.withCampaignId(campaignId)
.withCampaignNetwork(campaignNetwork)
.withRawMediaInformation(rawMediaInformation);
Future<TrackMediaStatus> trackMediaFuture = kiwiSDK.media().track(mediaInfo);
Media Information Object:
A Media Information object contains the following fields:
campaignId : identifier of the campaign (String)
campaignNetwork : identifier of the media partner that promoted the campaign (String)
raw : raw information about the media attribution. (string)
Possible media track results:
UNKNOWN_ERROR: An Unknown error happened while performing request
SUCCESS: Successfully logged out
INVALID_PARAMETERS: Could not attribute media because campaign id is missing
Last updated