Description Usage Arguments Value Examples
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.
1 2 3 4 |
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 |
The requested data will be returned as a data frame.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.