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
Data Type: stringDescription: Campaign or Line Item ID of the desired reportAccepted Values a single or a group of campaignId or lineItemId e.g id: CampaignId, OR ids: ["CampaignId1","CampaignId2"], (maximum 50 ids per call)
Data Type: stringDescription: Quantitative values associated to the campaign or line item. When metrics and dimension is used, the reportType is ignored.Accepted Values: Refer to the Metrics & Dimension page for a complete list of supported metrics
Data Type: stringDescription: Attributes of your campaign or line item data. When metrics and dimension is used, the reportType is ignored.Accepted Values: Refer to the Metrics & Dimension page for a complete list of supported dimensions
Data Type: stringDescription: Report types are pre-packaged reports that allow the specification of the report breakdown. They provide metrics and dimensions distribution by summary, pageType, keyword, productCategory, product, attributedTransactions, servedCategory, environment. When not using reportType use the metrics and dimensions arrays to build your report for additional fields. When metrics and dimensions are used, the report type is ignored.Accepted Values summary, capout,pageType, keyword, productCategory, product, attributedTransactions, servedCategory, environment
required
Data Type: dateDescription: Earliest day to report; inclusiveAccepted Values: YYYY-MM-DDThh:mm:ss.sTZD
required
Data Type: dateDescription: Latest day to report; inclusiveAccepted Values: YYYY-MM-DDThh:mm:ss.sTZD
Data Type: enumDescription: The campaign typeAccepted Values: sponsoredProducts, onSiteDisplays
Data Type: stringDescription: Time zone for the reportAccepted Values: database tz syntax, eg. America/New_York, Europe/Paris, UTC
Data Type: stringDescription: The post-click attribution window, defined as the maximum number of days considered between a click and a conversion for attribution; conversions are attributed to the date of conversion, not the date of click; defaults to campaign settings if omitted; must be specified if viewAttributionWindow is one of the accepted values.Accepted Values: 7D, 14D,30D
Data Type: stringDescription: The post-view attribution window, defined as the maximum number of days considered between an impression and a conversion for attribution; conversions are attributed to the date of conversion, not the date of impression; defaults to campaign settings if omitted; must be less than or equal to clickAttributionWindow; must be specified if clickAttributionWindow is one of the accepted values.Accepted Values: none, 1D,7D, 14D, 30D
Data Type: stringDescription:Filter on specific sales channel: offline or onlineAccepted Values: offline, online
Data Type: stringDescription: Format of the report data returnedAccepted Values: json-compact, json-newline, json (default), csv
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 |