get_appmetrica_data: Get data from your AppMetrica application

Description Usage Arguments Value Examples

View source: R/appmetricaR.R

Description

The Reporting API allows you to get application traffic statistics and other data without using the AppMetrica interface. You can create the desired report structure by specifying metrics and dimensions in the API request.

Usage

1
2
3
4
get_appmetrica_data(ids = NULL, date1 = NULL, date2 = NULL,
  metrics = "ym:ge:users", dimensions = "ym:ge:appID",
  filters = NULL, group = NULL, accuracy = "full",
  include_undefined = NULL, lang = NULL, token = NULL)

Arguments

ids

Comma-separated list of counter numbers.

date1

Start date of the report period in the format YYYY-MM-DD. You can also use the values: today, yesterday, ndaysAgo. Default value: 6daysAgo

date2

End date of the report period in the format YYYY-MM-DD. You can also use the values: today, yesterday, ndaysAgo. Default value: today

metrics

Comma-separated list of metrics. Limit: 20 metrics per request.

dimensions

Comma-separated list of dimensions. Limit: 10 dimensions per request.

filters

Segmentation filter. Limit: Maximum of 10 unique dimensions and metrics, 20 separate filters, and 10,000 characters per filter string.

group

Grouping data by time. Default value: week

accuracy

Accuracy of results. Allows you to manage sampling (the number of visits used to calculate the final value). Default value: full

include_undefined

Outputs rows that don't have defined dimension values. This only affects the first dimension. Disabled by default.

lang

Language.

token

An access token from the Yandex.OAuth service

Value

The requested data will be returned as a data frame.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
get_appmetrica_data (
ids = "130830,130825",
date1 = "2018-01-01",
date2 = "2018-02-02",
metrics = "ym:ge:users",
dimensions = "ym:ge:mobileDeviceBranding,ym:ge:mobileDeviceModel,ym:ge:appID,ym:ge:date"
)

## End(Not run)

SergeiMakarovWeb/appmetricaR documentation built on Oct. 30, 2019, 11:52 p.m.