Changing settings
Changes the current Data Stream export settings.
Request format
POST https://api.appmetrica.yandex.ru/management/v1/application/{id}/datastream/settings
|
App ID. |
Request body format
{
"settings": {
"ui_checkbox_enabled": boolean,
"export_fields": [
{
"data_type": string,
"enabled": boolean,
"export_format": string,
"fields": ["profile_id", "os_name", "event_name", "event_timestamp", ... ],
"include_events": ["Useful Event 1", "Useful Event 2", ... ],
"exclude_events": ["Ignored Event 1", "Ignored Event 2", ... ],
"event_attribution": string
},
...
]
}
}
|
Object with settings. |
|
Indicates whether the entire Data Stream is enabled for the app. |
|
List of export setting objects. One setting object corresponds to one type of exported data. |
|
Data type for export. Acceptable values:
|
|
Indicates whether export is enabled for the specified data type. |
|
Data export format. Acceptable values: |
|
Contains a list of sets of CSV fields that were used to generate data windows. |
|
White list of event names. If the list isn't empty, only events whose |
|
Black list of event names. Those events whose |
|
The attribution model for the
If not specified, the default value |
Response format
{
"settings": {
"ui_checkbox_enabled": boolean,
"export_fields": [
{
"data_type": string,
"enabled": boolean,
"export_format": string,
"fields": ["profile_id", "os_name", "event_name", "event_timestamp", ... ],
"include_events": ["Useful Event 1", "Useful Event 2", ... ],
"exclude_events": ["Ignored Event 1", "Ignored Event 2", ... ],
"event_attribution": string
},
...
]
}
}
|
API response. |
|
Indicates whether the entire Data Stream is enabled for the app. |
|
List of export setting objects. One setting object corresponds to one type of exported data. |
|
The type of data that forms the stream. Acceptable values:
|
|
Indicates whether export is enabled for the specified data type. |
|
Data export format. Acceptable values: |
|
Contains a list of sets of CSV fields that were used to generate data windows. |
|
White list of event names. If the list isn't empty, only events whose |
|
Black list of event names. Those events whose |
|
The attribution model for the
If not specified, the default value |
Example
Request:
curl -X POST 'https://api.appmetrica.yandex.ru/management/v1/application/1111/datastream/settings' \
-H 'Content-Type: application/json' \
-H 'Authorization: OAuth oauth_token' \
-d '{
"settings": {
"ui_checkbox_enabled": true,
"export_fields": [
{
"data_type": "installation",
"enabled": true,
"export_format": "csv",
"fields": ["publisher_name", "publisher_id", "tracker_name", "tracking_id", "click_timestamp"]
},
{
"data_type": "event",
"enabled": true,
"export_format": "csv",
"fields": ["profile_id", "os_name", "event_name", "event_timestamp"],
"include_events": ["Useful Event 1", "Useful Event 2"],
"exclude_events": ["Ignored Event 1", "Ignored Event 2"]
},
{
"data_type": "attributed_event",
"enabled": true,
"export_format": "csv",
"fields": ["attributed_event_type", "event_name", "conversion_id", "conversion_name"],
"include_events": ["Useful Event 1", "Useful Event 2" ],
"exclude_events": ["Ignored Event 1", "Ignored Event 2"],
"event_attribution": "last_appmetrica"
}
]
}
}'
Response:
{
"settings": {
"ui_checkbox_enabled": true,
"export_fields": [
{
"data_type": "installation",
"enabled": true,
"export_format": "csv",
"fields": ["publisher_name", "publisher_id", "tracker_name", "tracking_id", "click_timestamp"],
"include_events": [],
"exclude_events": []
},
{
"data_type": "event",
"enabled": true,
"export_format": "csv",
"fields": ["profile_id", "os_name", "event_name", "event_timestamp"],
"include_events": ["Useful Event 1", "Useful Event 2"],
"exclude_events": ["Ignored Event 1", "Ignored Event 2"]
},
{
"data_type": "attributed_event",
"enabled": true,
"export_format": "csv",
"fields": ["attributed_event_type", "event_name", "conversion_id", "conversion_name"],
"include_events": ["Useful Event 1", "Useful Event 2"],
"exclude_events": ["Ignored Event 1", "Ignored Event 2"],
"event_attribution": "last_appmetrica"
}
]
}
}
If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.