You can use the ReportExport
endpoint to schedule a job to export reports as a CSV file. The API call will return an object describing the initial job status, as well as a URI to poll for status updates, and a URI to download the job result file.
Check the status of a job using the Jobs endpoint. Alternatively, enable a postback for the job completion event to be notified when your report data is ready to download.
You can also use the Reports
endpoint to list all the available reports.
Endpoints | |
---|---|
GET | Advertisers/:AccountSID/ReportExport |
GET | Advertisers/:AccountSID/Reports |
Best Practices
There are some best practices to keep in mind when using the ReportExport
endpoint.
- First, use the
ReportExport
endpoint to download reports rather than running reports with the olderReports
endpoint, which will be deprecated in the future. - When downloading reports, it is preferable that you use multiple calls for smaller date ranges. Try to avoid single requests for large date ranges.