Skip to main content

GET/ad_report_task

This method returns information on all the existing report tasks related to a seller.

Use the report_task_statuses query parameter to control which reports to return. You can paginate the result set by specifying a limit, which dictates how many report tasks to return on each page of the response. Use the offset parameter to specify how many reports to skip in the result set before returning the first result.


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

GET https://api.ebay.com/sell/marketing/v1/ad_report_task?

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

ParameterTypeDescription
report_task_statusesstringThis query parameter filters the returned report tasks by their status. Supply a comma-separated list of the report statuses you want returned. The results are filtered to include only the report statuses you specify.

Note: The results might not include some report tasks if other search conditions exclude them.
See TaskStatusEnum for supported values.

Occurrence: Optional

limitstringSpecifies the maximum number of report tasks to return on a page in the paginated response.

Default: 10
Maximum: 500

Occurrence: Optional

offsetstringSpecifies the number of report tasks to skip in the result set before returning the first report in the paginated response.

Combine offset with the limit query parameter to control the reports returned in the response. For example, if you supply an offset of 0 and a limit of 10, the response contains the first 10 reports from the complete list of report tasks retrieved by the call. If offset is 10 and limit is 10, the first page of the response contains reports 11-20 from the complete result set.

Default: 0

Occurrence: Optional

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/fieldTypeDescription
hrefstring

The URI of the current page of results from the result set.

Occurrence: Conditional

limitinteger

The number of items returned on a single page from the result set. This value can be set in the request with the limit query parameter.

Occurrence: Conditional

nextstring

The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set.

Max length: 2048

Occurrence: Conditional

offsetinteger

The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the offset query parameter.

Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of 0.

Occurrence: Conditional

prevstring

The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set.

Max length: 2048

Occurrence: Conditional

totalinteger

The total number of items retrieved in the result set.

If no items are found, this field is returned with a value of 0.

Occurrence: Conditional

reportTasksarray of ReportTask

A list of report tasks contained on this page from the paginated response.

Occurrence: Always

reportTasks.campaignIdsarray 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.

Call getCampaigns to return the current campaign IDs for a seller.

Occurrence: Conditional

reportTasks.channelsarray 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

reportTasks.dateFromstring

The date defining the start of the timespan covered by the report, formatted as an ISO 8601 timestamp.

Occurrence: Always

reportTasks.dateTostring

The date defining the end of the timespan covered by the report, formatted as an ISO 8601 timestamp.

Occurrence: Always

reportTasks.dimensionsarray of Dimension

A list containing the dimension in the report.

Occurrence: Always

reportTasks.dimensions.annotationKeysarray of string

A list of annotations associated with the dimension of the report.

Occurrence: Always

reportTasks.dimensions.dimensionKeystring

The name of the dimension on which the report is based.

A dimension is an attribute to which the report data applies.

Occurrence: Always

reportTasks.fundingModelsarray of FundingModelEnum

The funding model for the campaign that shall be included in the report.

Note: The default funding model for Promoted Listings reports is COST_PER_SALE.

Valid Values:

  • COST_PER_SALE
  • COST_PER_CLICK

Occurrence: Conditional

reportTasks.inventoryReferencesarray 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

reportTasks.inventoryReferences.inventoryReferenceIdstring

The unique identifier of a single-item listing or a multi-variation listing.

To create an ad for a single-item listing, set the inventoryReferenceType value to INVENTORY_ITEM and specify an item ID or a SKU (if the SKU is defined in the listing).

To create an ad for a multi-variation listing, set the inventoryReferenceType value to INVENTORY_ITEM_GROUP and specify the item ID for the multi-variation listing or the inventoryitemGroupKey value as defined in the Inventory API.

Required if if you supply an inventoryReferenceType.

Occurrence: Conditional

reportTasks.inventoryReferences.inventoryReferenceTypeInventoryReferenceTypeEnum

Indicates the type of item indicated by the inventoryReferenceId.

This value can be set to either INVENTORY_ITEM or INVENTORY_ITEM_GROUP.

Required if if you supply an inventoryReferenceId.

Occurrence: Conditional

reportTasks.listingIdsarray 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

reportTasks.marketplaceIdMarketplaceIdEnum

The ID of the eBay marketplace used by the report task.

Occurrence: Always

reportTasks.metricKeysarray of string

A list of metrics for the report task.

Occurrence: Always

reportTasks.reportExpirationDatestring

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.

Format (UTC): yyyy-MM-ddThh:mm:ss.sssZ

Occurrence: Always

reportTasks.reportFormatReportFormatEnum

Indicates the format of the report. Currently, only TSV_GZIP is supported.

Occurrence: Always

reportTasks.reportHrefstring

The URL of the generated report, which can be used to download the report once it has been generated.

Occurrence: Always

reportTasks.reportIdstring

A unique eBay-assigned ID for the report.

Occurrence: Always

reportTasks.reportNamestring

An eBay-assigned name for the report that's created by the createReportTask call. This name is unique for the seller.

Occurrence: Always

reportTasks.reportTaskCompletionDatestring

The date the report task completed the report generation.

Format (UTC): yyyy-MM-ddThh:mm:ss.sssZ

Occurrence: Always

reportTasks.reportTaskCreationDatestring

The date the report task was created.

Format (UTC): yyyy-MM-ddThh:mm:ss.sssZ

Occurrence: Always

reportTasks.reportTaskExpectedCompletionDatestring

The date the report task is expected to complete the report generation.

Format (UTC): yyyy-MM-ddThh:mm:ss.sssZ

Occurrence: Always

reportTasks.reportTaskIdstring

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

reportTasks.reportTaskStatusTaskStatusEnum

Indicates the current state of the report task.

Occurrence: Always

reportTasks.reportTaskStatusMessagestring

A status message with additional information about the report task.

Occurrence: Conditional

reportTasks.reportTypeReportTypeEnum

Indicates type of report associated with the report task.

Note: INVENTORY_PERFORMANCE_REPORT is not currently available; availability date is pending.

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.

StatusMeaning
200Success
400Bad Request
500Internal Server error

Error codes

For more on errors, plus the codes of other common errors, see Handling errors.

CodeDomainCategoryMeaning
35001API_MARKETINGAPPLICATIONThere was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance.
35029API_MARKETINGREQUESTThe 'limit' has to be greater than zero and less than {maxLimitValue}.
35030API_MARKETINGREQUESTThe 'offset' cannot be less than zero {offset}.
35109API_MARKETINGREQUESTThe 'report_task_statuses' {invalid_report_task_statuses} is invalid. Valid values are: {supportedReportTaskStatuses}.

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 Report Tasks

This sample returns all the report tasks with as status of PENDING or SUCCESS and limits the response set to 10 report tasks.

Input

The inputs are a list of report_task_statuses and the limit field.

GEThttps://api.ebay.com/sell/marketing/v1/ad_report_task?report_task_statuses=PENDING,SUCCESS&limit=10

Output

If the call is successful, it returns all report tasks that are currently running (PENDING), or those that have generated their reports (SUCCESS).