GET/ad_report_task/{report_task_id}
This call returns the details of a specific Promoted Listings report task, as specified by the report_task_id path parameter.
The report task includes the report criteria (such as the report dimensions, metrics, and included listing) and the report-generation rules (such as starting and ending dates for the specified report task).
Report-task IDs are generated by eBay when you call createReportTask. Get a complete list of a seller's report-task IDs by calling getReportTasks.
Important!For ad_report and ad_report_task methods, the API call limit is subject to a per user quota. These API calls can only be executed a maximum of 200 times per hour for each seller/user. If the number of calls per hour exceeds this limit, any new calls will be blocked for the next hour.
Input
Resource URI
This method is supported in Sandbox environment. To access the endpoint, just replace the api.ebay.com
root URI with api.sandbox.ebay.com
URI parameters
Parameter | Type | Description |
---|---|---|
report_task_id | string | This path parameter specifies the unique identifier of the report task being retrieved. Use the getReportTasks method to retrieve report task Ids. Occurrence: Required |
HTTP request headers
All requests made to eBay REST operations require you to provide the Authorization
HTTP header for authentication authorization.
All other standard RESTful request headers are optional. For more information on standard RESTful request headers, see the HTTP request headers- opens rest request components page table.
OAuth scope
This request requires an access token created with the authorization code grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):
https://api.ebay.com/oauth/api_scope/sell.marketing
See OAuth access tokens for more information.
Request payload
This call has no payload.
Request fields
This call has no field definitions.
Output
HTTP response headers
This call has no response headers.
Response payload
Response fields
Output container/field | Type | Description |
---|---|---|
campaignIds | array of string | A list of IDs for the campaigns that are included in the report. A campaign ID is a unique eBay-assigned identifier of the campaign that's generated when the campaign is created. Occurrence: Conditional |
channels | array of ChannelEnum | The channel for the advertising campaign that will be included in the report task. This value indicates whether the data included in the report task is for an Onsite or Offsite advertising campaign. Occurrence: Conditional |
dateFrom | string | The date defining the start of the timespan covered by the report, formatted as an ISO 8601 timestamp. Occurrence: Always |
dateTo | string | The date defining the end of the timespan covered by the report, formatted as an ISO 8601 timestamp. Occurrence: Always |
dimensions | array of Dimension | A list containing the dimension in the report. Occurrence: Always |
dimensions.annotationKeys | array of string | A list of annotations associated with the dimension of the report. Occurrence: Always |
dimensions.dimensionKey | string | The name of the dimension on which the report is based. A dimension is an attribute to which the report data applies. Occurrence: Always |
fundingModels | array of FundingModelEnum | The funding model for the campaign that shall be included in the report.
Occurrence: Conditional |
inventoryReferences | array of InventoryReference | If supplied in the request, this field returns a list of the seller's inventory reference IDs included in the report. Each item is referenced by a pair of inventoryRefernceID and inventoryReferenceType values, where an inventory reference ID can be either a seller-defined SKU value or an inventoryItemGroupKey. An inventoryItemGroupKey is seller-defined ID for an inventory item group (a multiple-variation listing), and is created and used by the Inventory API. Occurrence: Conditional |
inventoryReferences.inventoryReferenceId | string | The unique identifier of a single-item listing or a multi-variation listing. Occurrence: Conditional |
inventoryReferences.inventoryReferenceType | InventoryReferenceTypeEnum | Indicates the type of item indicated by the inventoryReferenceId. Occurrence: Conditional |
listingIds | array of string | If supplied in the request, this field returns a list of the listing IDs included in the report. A listing ID is an eBay-assigned ID that's generated when a listing is created. Occurrence: Conditional |
marketplaceId | MarketplaceIdEnum | The ID of the eBay marketplace used by the report task. Occurrence: Always |
metricKeys | array of string | A list of metrics for the report task. Occurrence: Always |
reportExpirationDate | string | The date after which the report is no longer be available. Reports are available for 30 days and you cannot download a report after it has expired. Occurrence: Always |
reportFormat | ReportFormatEnum | Indicates the format of the report. Currently, only Occurrence: Always |
reportHref | string | The URL of the generated report, which can be used to download the report once it has been generated. Occurrence: Always |
reportId | string | A unique eBay-assigned ID for the report. Occurrence: Always |
reportName | string | An eBay-assigned name for the report that's created by the createReportTask call. This name is unique for the seller. Occurrence: Always |
reportTaskCompletionDate | string | The date the report task completed the report generation. Occurrence: Always |
reportTaskCreationDate | string | The date the report task was created. Occurrence: Always |
reportTaskExpectedCompletionDate | string | The date the report task is expected to complete the report generation. Occurrence: Always |
reportTaskId | string | The unique eBay-assigned ID of the report task. This value is generated when the report task is created with a call to createReportTask. Occurrence: Always |
reportTaskStatus | TaskStatusEnum | Indicates the current state of the report task. Occurrence: Always |
reportTaskStatusMessage | string | A status message with additional information about the report task. Occurrence: Conditional |
reportType | ReportTypeEnum | Indicates type of report associated with the report task. Occurrence: Always |
HTTP status codes
This call can return one of the following HTTP status codes. For an overview of the status codes, see HTTP status codes in Using eBay RESTful APIs.
Status | Meaning |
---|---|
200 | Success |
404 | Not found |
500 | Internal Server error |
Error codes
For more on errors, plus the codes of other common errors, see Handling errors.
Code | Domain | Category | Meaning |
---|---|---|---|
35001 | API_MARKETING | APPLICATION | There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance. |
35140 | API_MARKETING | REQUEST | No ReportTask found for 'report_task_id' {report_task_id}. Please correct the 'report_task_id' and try again. |
Warnings
This call has no warnings.
Samples
New to making API calls? Please see Making a Call.
Note: Identifiers, such as order IDs or user IDs, and personal data in these samples might be anonymized or may no longer be active on eBay. If necessary, substitute current, relevant eBay data in your requests.
Sample 1: Get Specific Report Task
This sample retrieves the details of a specific report task.
Input
Specify the report task you want to retrieve using the report_task_id URI parameter. The ID for a report task is returned in the Location HTTP response header of the createReportTask call you used to create the task.
GEThttps://api.ebay.com/sell/marketing/v1/ad_report_task/1********4
Output
If successful, the call returns details of the specified report task.