POST /ad_report_task
Note: Using multiple funding models in one report is deprecated. If multiple funding models are used, a Warning will be returned in a header. This functionality will be decommissioned on April 3, 2023. See API Deprecation Status for details.
This method creates a report task, which generates a Promoted Listings report based on the values specified in the call.
The report is generated based on the criteria you specify, including the report type, the report's dimensions and metrics, the report's start and end dates, the listings to include in the report, and more. Metrics are the quantitative measurements in the report while dimensions specify the attributes of the data included in the reports.
When creating a report task, you can specify the items you want included in the report. The items you specify, using either listingId or inventoryReference values, must be in a Promoted Listings campaign for them to be included in the report.
For details on the required and optional fields for each report type, see Promoted Listings reporting.
This call returns the URL to the report task in the Location response header, and the URL includes the report-task ID.
Reports often take time to generate and it's common for this call to return an HTTP status of 202
, which indicates the report is being generated. Call getReportTasks (or getReportTask with the report-task ID) to determine the status of a Promoted Listings report. When a report is complete, eBay sets its status to SUCCESS and you can download it using the URL returned in the reportHref field of the getReportTask call. Report files are tab-separated value gzip files with a file extension of .tsv.gz
.
Note: The reporting of some data related to sales and ad-fees may require a 72-hour (maximum) adjustment period which is often referred to as the Reconciliation Period. Such adjustment periods should, on average, be minimal. However, at any given time, the payments tab may be used to view those amounts that have actually been charged.
Note: This call fails if you don't submit all the required fields for the specified report type. Fields not supported by the specified report type are ignored. Call getReportMetadata to retrieve a list of the fields you need to configure for each Promoted Listings report type.
Servers
- https://api.ebay.com{basePath}
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
dimensions[] |
Array | No |
The list of the dimensions applied to the report. A dimension is an attribute to which the report data applies. For example, if you set dimensionKey to |
dimensions[].annotationKeys[] |
Array | No |
A list of annotations associated with the dimension of the report. |
dimensions[].dimensionKey |
String | No |
The name of the dimension on which the report is based. A dimension is an attribute to which the report data applies. |
reportFormat |
String | No |
The file format of the report. Currently, the only supported format is |
fundingModels[] |
Array | No |
The funding model for the campaign that shall be included in the report.
|
additionalRecords[] |
Array | No |
A list of additional records that shall be included in the report, such as non-performing data. |
dateFrom |
String | No |
The date defining the start of the timespan covered by the report. |
inventoryReferences[] |
Array | No |
You can use this field to supply an array of items to include in the report if you manage your inventory with the Inventory API. |
inventoryReferences[].inventoryReferenceType |
String | No |
Indicates the type of item indicated by the inventoryReferenceId. |
inventoryReferences[].inventoryReferenceId |
String | No |
The seller's inventory reference ID for an item that is managed with the Inventory API. |
listingIds[] |
Array | No |
Use this field to supply an array of listing IDs you want to include in the report. |
marketplaceId |
String | No |
The ID for the eBay marketplace on which the report is based. |
reportType |
String | No |
The type of report to be generated, such as |
campaignIds[] |
Array | No |
A list of campaign IDs to be included in the report task. Call getCampaigns to get a list of the current campaign IDs for a seller.
|
metricKeys[] |
Array | No |
The list of metrics to be included in the report. Metrics are the quantitative measurements compiled into the report and the data returned is based on the specified dimension of the report. For example, if the dimension is For information on metric keys and how to set them, see Promoted Listings reporting. Minimum: 1 |
dateTo |
String | No |
The date defining the end of the timespan covered by the report. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.