af_get_raw_data: Get 'AppsFlyer' Raw Data Reports

Description Usage Arguments Value Author(s) See Also Examples

View source: R/af_get_raw_data.R

Description

Get 'AppsFlyer' organic and non-organic raw data reports

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
af_get_raw_data(
    date_from = Sys.Date() - 8,
    date_to = Sys.Date() - 1,
    report_type = c("installs_report",
                    "in_app_events_report",
                    "uninstall_events_report"),
    media_source           = NULL,
    category               = NULL,
    event_name             = NULL,
    currency               = NULL,
    is_organic = FALSE,
    additional_fields = c("device_model",
                          "keyword_id",
                          "store_reinstall",
                          "deeplink_url",
                          "oaid",
                          "install_app_store",
                          "contributor1_match_type",
                          "contributor2_match_type",
                          "contributor3_match_type",
                          "match_type",
                          "device_category",
                          "gp_referrer",
                          "gp_click_time",
                          "gp_install_begin",
                          "amazon_aid",
                          "keyword_match_type",
                          "att",
                          "conversion_type",
                          "campaign_type",
                          "is_lat"),
    timezone = "Europe/Moscow",
    retargeting = NULL,
    maximum_rows = 1000000,
    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.

report_type

Report type. One of: installs_report, in_app_events_report, uninstall_events_report. For more details go to Integration > API access in AppsFlyer Web UI.

media_source

Use to limit (filter) to a specific media source.for example, if you need inly facebook data in your report use media_source="facebook".

category

Traffic source category filter, for examplr category="standard".

event_name

Filter in-app events by specified events. Select multiple events by using a character vector. For example: event_name = c( "af_purchase", "ftd" ).

currency

Currency of the revenue and cost.

is_organic

If TRUE you get only organic data.

additional_fields

Character vector of report's additional fields.

timezone

Your timezone, for example Europe/Moscow.

retargeting

If TRUE you get retargeting data.

maximum_rows

Report rows limit.

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

AppsFlyer Pull API documentation

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
af_set_api_token("Your API token")

raw_data <- af_get_raw_data(
    date_from   = "2021-03-01",
    date_to     = "2021-03-15",
    report_type = "installs_report",
    app_id      = "id0001111"
)

## End(Not run)

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