Skip to main content
Setup your endpoints, view report attributes, and examples of requests

Endpoints

Four separate endpoints support requests to create campaign and line item reports and retrieve the report data and status.

Report Request Attributes

*Required
Reporting Asynchronous Workflow: Step 1 of 3
  • First, create a request for the campaign or line item report with the desired attributes
  • This generates a reportId representing the report

Create a Report Request

Reporting endpoints provide two separate endpoints that allow downloading reports at the campaign or line item level. Each of the following requests can be repeated for each individual report type Sample Request - Campaign Report
Sample Request - Line Item Report
Sample Response - Both
Reporting Asynchronous Workflow: Step 2 of 3
  • Next, use the reportId to poll the report status endpoint until one is successfully computed

Get Status of a Specific Report

This endpoint retrieves the status of a specific report. Status can be pending, success, failure, or expired Sample Request
Sample Response
Reporting Asynchronous Workflow: Step 3 of 3
  • Finally, download the report using the report output endpoint
  • Report outputs are cached for at least 1 hour before expiration
  • Exact expiration is indicated by the expiresAt field in the /status response

Download Output of a Specific Report

This endpoint returns the specific report in the requested format Sample Request
Sample Response Campaign Summary Report
Campaign Attribution Report

Responses

  • timeZone must be a valid timezone - using a time zone value that is not listed in the list tz database time zones
  • format invalid - using an unsupported file format | | 🔴400 | Validation ErrorIn the API, win rate metric will be available to sponsored product campaigns only. When using this metric, please specify campaignTypeName in the list of dimensions to obtain a valuetitle”: “WinRate metric is only supported for SponsoredProducts campaigns.”,****“detail”: “Please provide either the ‘campaignTypeName’ in dimensions or filter on SponsoredProducts using the ‘campaignType’ filter.” | | 🔴 410 | Expired or Lost Report ErrorThe report is expired, lost, or failed to create. Re-create the report through a new request. |