| af_get_data {rappsflyer} | R Documentation | 
Get Data From 'AppsFlyer Master API'
Description
Get statistic data from 'AppsFlyer Master API'
Usage
af_get_data(
  date_from  = Sys.Date() - 8,
  date_to    = Sys.Date() - 1,
  dimensions = c("app_id",
                 "pid",
                 "af_channel",
                 "c",
                 "af_c_id",
                 "geo"),
  metrics    = c("impressions",
                 "clicks",
                 "installs",
                 "sessions",
                 "loyal_users",
                 "cost",
                 "revenue",
                 "uninstalls"),
  filters    = NULL,
  currency   = NULL,
  timezone  = "Europe/Moscow",
  app_id     = getOption("apps_flyer_app_id"),
  api_token  = getOption("apps_flyer_api_key")
)
Arguments
| date_from | Reporting start date. | 
| date_to | Reporting finish date. | 
| dimensions | Character vector. These dimensions are used for collecting the data into groups to allow easier and more accurate examination of the information.. For more details see docs. | 
| metrics | KPIs are the metrics used for gaining an insight into the behavior of your app. For more details see docs. | 
| filters | Data filter expression, for example  | 
| currency | Monetary values are in the app-specific currency. Example:  | 
| timezone | Time zone used is according to the app-specific timezone. Example:  | 
| app_id | Your app id from apps flyer. | 
| api_token | Your AppsFlyer API token V1.0 for more details go link. | 
Value
data.frame.
Author(s)
Alexey Seleznev
See Also
Master API documentation Field dictionary
Examples
## Not run: 
af_set_api_token("Your API token")
ad_data <- af_get_data(
    date_from = "2021-03-01",
    date_to   = "2021-03-15",
    app_id    = "id0001111"
)
## End(Not run)