Branch walkthrough
Branch API version 1 is currently supported.
Prerequisites
Branch reports
The analytics report is the only report in the Branch. This report comes from the Query API, and has a low quota limit of:
- 5 requests per second
- 20 requests per minute
- 150 requests per hour
Avoid running multiple rivers or predefined reports in parallel due to this low limit. Instead, run 1 - 3 predefined reports in a single river.
The required fields are:
-
The branch data source acts as the metrics (the name of the data source is related to the name field).
-
Dimensions that give an additional breakdown to your output table.
-
Aggregation: Aggregate your Branch Data Source by Total Count, Unique Count, Revenue, or Cost.
- Aggregation by Cost is only available for Branch Data Source = Cost.
- Aggregation by Revenue is only available for Branch Data Source = EO Commerce Event.
-
Granularity: This is the number of records coming back for the time interval you set in your river. If you choose daily, all records are broken down by daily
result_timestamp. -
Filters (not required): Filter out specific records.
- You can use the exclamation mark to designate a not in your filter. For example, the following snapshot instructs the API to return all user data operating systems except iOS.
You can filter the Custom Event report to get a specific name for each river (without needing to flatten the custom fields later). For example,

All reports have time dependence with the following limitations:
- You cannot get data from before 2017-10-14.
- You cannot get a time interval of more than 7 days.
Time-dependent reports
The data in each report is pulled according to a time field you specify- result_timestamp.
Select a time period: Time-dependent reports support two kinds of time periods:
- Date range:
- Pulls data in the date range between the start and end date provided, including the end date.
- You must select a start date.
- Leaving the end date empty pulls data according to the current river run time.
- Select a timezone offset to send dates based on the offset.
- Use the Last Days Back For Each Run to expand the start date and pull data from a specified number of days before the chosen start date.
In the example above, the river runs within a date range of 01/03/2020 to 30/03/2020.
- Predefined date- A date range defined by Data Integration:
- Day: Yesterday.
- Week (From Monday to Sunday): Week to date, Previous week, Previous week to date.
- Month: Month to date, Previous month, Previous month to date.
- Year: Year to date.