af_get_data: Get Data From 'AppsFlyer Master API'

Description Usage Arguments Value Author(s) See Also Examples

View source: R/af_get_data.R

Description

Get statistic data from 'AppsFlyer Master API'

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 filters=="geo=US,DE".

currency

Monetary values are in the app-specific currency. Example: currency="preferred"

timezone

Time zone used is according to the app-specific timezone. Example: timezone="Europe/Moscow"

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

rappsflyer documentation built on March 22, 2021, 5:06 p.m.