Make a Report Request
See the available parameters below for running a report with SDK or the API.
The variable data is now a Pandas dataframe.
Getting the next pages of your report
Use the get_next_page method to get the next page of your report. The method returns True if it got the next page and False if not, indicating that you are already at the last page.
Note that calling get_next_page overwrites the current data, so when you call to_dataframe the results will only contain the data from the last page that was downloaded.
Use the get_all_pages method to get the remaining pages (if you're currently at page 2 it will get page 2 onwards) of your report, this will save all the data from the pages it downloads on the report object. Note that if it is a very large report it is best to get one page at a time so you don't run out of memory.
Required parameters: none
Status code 200
Each page of a report is limited to 10,000 rows. To receive the 5th page of your report, you would set the body as such:
To receive all pages, you can iterate through the page numbers until you receive an empty page.
|parameter||options (if applicable)||notes|
|start_date||"2015-12-01 00:00:00" or "2015-12-01"|
|end_date||"2015-12-02 00:00:00" or "2015-12-01"|
|interval||"hour", "day", "cumulative"|
|timezone||"UTC", "America/New_York"||defaults to America/New_York|
|date_range||Today, Yesterday, Last 7 Days||date_range takes precedence over start_date/end_date|
|dimensions||supply_tag_id, demand_tag_id, declared_domain, detected_domain, demand_type, supply_type, supply_partner_id, demand_partner_id, supply_group||domain is only available when using date_range of Today, Yesterday, or Last 7 Days|
|the following parameters act as filters; pass an array of values (usually IDs)|
|can filter by one or more supply tag|
|page||10||The page requested for results over 10K rows. If there are 10,000 entries in your result, you need to call multiple pages, until you get an empty response.|