af_get_aggregate_data {rappsflyer} | R Documentation |
Get 'AppsFlyer' Aggregate Data Reports
Description
Get AppsFlyer Aggregate (user acquisition and retargeting) data
Usage
af_get_aggregate_data(
date_from = Sys.Date() - 8,
date_to = Sys.Date() - 1,
report_type = c("daily_report",
"partners_report",
"partners_by_date_report",
"geo_report",
"geo_by_date_report"),
additional_fields = c("keyword_id",
"store_reinstall",
"deeplink_url",
"oaid",
"install_app_store",
"contributor1_match_type",
"contributor2_match_type",
"contributor3_match_type",
"match_type"),
media_source = NULL,
attribution_touch_type = NULL,
currency = NULL,
timezone = "Europe/Moscow",
retargeting = NULL,
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: daily_report, partners_report, partners_by_date_report, geo_report, geo_by_date_report. For more details go to Integration > API access in AppsFlyer Web UI. |
additional_fields |
Character vector of report's additional fields. |
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". |
attribution_touch_type |
Set this parameter as shown in the example to get view-through attribution (VTA) KPIs. For example attribution_touch_type="impression". |
currency |
Currency of revenue and cost. Aggregate Pull API reports always use the app-specific currency. |
timezone |
Your timezone, for example Europe/Moscow. |
retargeting |
If TRUE you get retargeting data. |
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
## Not run:
af_set_api_token("Your API token")
geo_data <- af_get_aggregate_data(
date_from = "2021-03-01",
date_to = "2021-03-15",
report_type = "geo_by_date_report",
app_id = "id0001111"
)
## End(Not run)