Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 11 KB

README.md

File metadata and controls

60 lines (49 loc) · 11 KB

Pre install SDK

SDK fetches ids from appsflyer backend for pre-install attribution

Content Provider data structure

Column Type Description
0 String transaction_id

API

class PreInstallClient

A main class used to create an interface between OEM and AppsFlyer OEM Client.

class PreInstallClient(application: Application, private val mediaSource: String)

The partner unique identifier

@Throws(IOException::class)
suspend fun add(vararg info: PreInstallInfo): List<PreInstallId>
  • info - the object contains attribution parameters.
Field Name Description Type Mandatory
af_engagement_type Type of the preinstall flow (preload or click_to_download)
af_media_source Partner unique identifier String Yes
install_time Timestamp representing the install time Epoch timestamp - long (milliseconds) Yes
app_id Application unique identifier String Yes
af_campaign Campaign name String No
af_campaign_id Campaign Id String No
af_adset Adset name String No
af_adset_id Adset Id String No
af_ad Ad Name String No
af_ad_id Ad Id String No
af_prt Agency Account Name String No
af_click_id Ad network unique transaction identifier String No
af_ad_type Ad type:
text: an ad unit containing only text, e.g. a search result
banner: a basic format that appears at the top or bottom of the device screen
interstitial: a full-page ad that appears during breaks in the current experience video: a standard video, i.e. non-rewarded
rewarded_video: an ad unit offering in-app rewards in exchange for watching a video
playable: an ad unit containing an interactive preview of the app experience
sponsored_content: a link included in a piece of sponsored content, like an advertorial article
audio: an audio ad
String No
af_channel The media source channel through which the ads are distributed, e.g., UAC_Search, UAC_Display, Instagram, Facebook Audience Network etc. String No
af_custom[n]
(n=1-5) example: af_custom1
Optional custom parameter defined by the advertiser. String No

An class that returns the information about processing preload.

class PreInstallId

Response:

Name Description
app_id "com.appsflyer.game"
transaction_id "AC9FB4FB-AAAA-BBBB-88E6-2840D9BB17F4"
status "success" or "failure"

Example