Download OpenAPI specification:Download
The Marketing API offers two platforms that sellers can use to promote and advertise their products:
Marketing reports, on both the Promoted Listings and Promotions Manager platforms, give sellers information that shows the effectiveness of their marketing strategies. The data gives sellers the ability to review and fine tune their marketing efforts.
Important! Sellers must have an active eBay Store subscription, and they must accept the Terms and Conditions before they can make requests to these APIs in the Production environment. There are also site-specific listings requirements and restrictions associated with these marketing tools, as listed in the "requirements and restrictions" sections for Promoted Listings and Promotions Manager.
The table below lists all the Marketing API calls grouped by resource.
This method adds multiple listings that are managed with the Inventory API to an existing Promoted Listings campaign.
For Promoted Listings Standard (PLS) campaigns using the Cost Per Sale (CPS) model, bulk ads may be directly created for the listing.
For each listing specified in the request, this method:
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. Get a seller's campaign IDs by calling getCampaigns. |
The container for the bulk request to create ads for eBay inventory reference IDs. eBay inventory reference IDs are seller-defined IDs used by theInventory API.
Array of objects (CreateAdsByInventoryReferenceRequest) A list of inventory reference ID and inventory reference type pairs, and the bid percentage, which the call uses to create ads in bulk. |
{- "requests": [
- {
- "adGroupId": "string",
- "bidPercentage": "string",
- "inventoryReferenceId": "string",
- "inventoryReferenceType": "string"
}
]
}{- "responses": [
- {
- "adGroupId": "string",
- "ads": [
- {
- "adId": "string",
- "href": "string"
}
], - "errors": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
], - "inventoryReferenceId": "string",
- "inventoryReferenceType": "string",
- "statusCode": 0
}
]
}This method adds multiple listings to an existing Promoted Listings campaign using listingId values generated by the Trading API or Inventory API, or using values generated by an ad group ID.
For Promoted Listings Standard (PLS) campaigns using the Cost Per Sale (CPS) funding model, bulk ads may be directly created for the listing.
For each listing ID specified in the request, this method:
To create an ad for a listing, specify its listingId, plus the bidPercentage for the ad in the payload of the request. Specify the campaign to associate the ads with using the campaign_id path parameter. Listing IDs are generated by eBay when a seller creates listings with the Trading API.
You can specify a maximum of 500 listings per call and each campaign can have ads for a maximum of 50,000 items. Be aware when using this call that each variation in a multiple-variation listing creates an individual ad.
For Promoted Listings Advanced (PLA) campaigns using the Cost Per Click (CPC) funding model, an ad group must be created first. If no ad group has been created for the campaign, ads cannot be created.
For the ad group specified in the request, this method associates the ad with the specified ad group.
To create an ad for an ad group, specify the name of the ad group plus the defaultBid for the ad in the payload of the request. Specify the campaign to associate the ads with using the campaign_id path parameter. Ad groups are generated using the createAdGroup method.
You can specify one or more ad groups per campaign.
Use createCampaign to create a new campaign and use getCampaigns to get a list of existing campaigns.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling getCampaigns. |
The container for the bulk request to create ads for eBay listing IDs. eBay listing IDs are generated by the Trading API and Inventory API when the listing is created on eBay.
Array of objects (CreateAdRequest) An array of listing IDs and their associated bid percentages, which the request uses to create ads in bulk. This request accepts both listing IDs, as generated by the Inventory API, and an item IDs, as used in the eBay Traditional API set (e.g., the Trading and Finding APIs). |
{- "requests": [
- {
- "adGroupId": "string",
- "bidPercentage": "string",
- "listingId": "string"
}
]
}{- "responses": [
- {
- "adGroupId": "string",
- "adId": "string",
- "errors": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
], - "href": "string",
- "listingId": "string",
- "statusCode": 0
}
]
}This method works with listings created with the Inventory API.
The method deletes a set of ads, as specified by a list of inventory reference IDs, from the specified campaign. Inventory reference IDs are seller-defined IDs that are used with the Inventory API.
Pass the campaign_id as a path parameter and populate the payload with a list of inventoryReferenceId and inventoryReferenceType pairs that you want to delete.
Get the campaign IDs for a seller by calling getCampaigns and call getAds to get a list of the seller's inventory reference IDs.
Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling getCampaigns. |
This request works with listings created via the Inventory API.
The request is to delete a set of ads in bulk, as specified by a list of inventory reference IDs from the specified campaign.
Array of objects (DeleteAdsByInventoryReferenceRequest) A list of inventory referenceID and inventory reference type pairs that specify the set of ads to remove in bulk. |
{- "requests": [
- {
- "inventoryReferenceId": "string",
- "inventoryReferenceType": "string"
}
]
}{- "responses": [
- {
- "adIds": [
- "string"
], - "errors": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
], - "inventoryReferenceId": "string",
- "inventoryReferenceType": "string",
- "statusCode": 0
}
]
}This method works with listing IDs created with either the Trading API or the Inventory API.
The method deletes a set of ads, as specified by a list of listingID values from a Promoted Listings campaign. A listing ID value is generated by eBay when a seller creates a listing with either the Trading API and Inventory API.
Pass the campaign_id as a path parameter and populate the payload with the set of listing IDs that you want to delete.
Get the campaign IDs for a seller by calling getCampaigns and call getAds to get a list of the seller's inventory reference IDs.
Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.
When using the CPC funding model, use the bulkUpdateAdsStatusByListingId method to change the status of ads to ARCHIVED.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling getCampaigns. |
This request object defines the fields for the bulkDeleteAdsByListingId request.
Array of objects (DeleteAdRequest) An array of the listing IDs that identify the ads to remove. |
{- "requests": [
- {
- "listingId": "string"
}
]
}{- "responses": [
- {
- "adId": "string",
- "errors": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
], - "listingId": "string",
- "statusCode": 0
}
]
}This method works with listings created with either the Trading API or the Inventory API.
The method updates the bidPercentage values for a set of ads associated with the specified campaign.
Specify the campaign_id as a path parameter and supply a set of listing IDs with their associated updated bidPercentage values in the request body. An eBay listing ID is generated when a listing is created with the Trading API.
Get the campaign IDs for a seller by calling getCampaigns and call getAds to get a list of the seller's inventory reference IDs.
Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.| campaign_id required | string A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling getCampaigns. |
This request object defines the fields for the BulkCreateAdsByInventoryReference request.
Array of objects (CreateAdsByInventoryReferenceRequest) A list of inventory reference ID and inventory reference type pairs, and the bid percentage, which the call uses to create ads in bulk. |
{- "requests": [
- {
- "adGroupId": "string",
- "bidPercentage": "string",
- "inventoryReferenceId": "string",
- "inventoryReferenceType": "string"
}
]
}{- "responses": [
- {
- "ads": [
- {
- "adId": "string",
- "href": "string"
}
], - "errors": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
], - "inventoryReferenceId": "string",
- "inventoryReferenceType": "string",
- "statusCode": 0
}
]
}This method works with listings created with either the Trading API or the Inventory API.
The method updates the bidPercentage values for a set of ads associated with the specified campaign.
Specify the campaign_id as a path parameter and supply a set of listing IDs with their associated updated bidPercentage values in the request body. An eBay listing ID is generated when a listing is created with the Trading API.
Get the campaign IDs for a seller by calling getCampaigns and call getAds to get a list of the seller's inventory reference IDs.
Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.| campaign_id required | string A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling getCampaigns. |
This request object defines the fields for the BulkCreateAdsByListingId request.
Array of objects (CreateAdRequest) An array of listing IDs and their associated bid percentages, which the request uses to create ads in bulk. This request accepts both listing IDs, as generated by the Inventory API, and an item IDs, as used in the eBay Traditional API set (e.g., the Trading and Finding APIs). |
{- "requests": [
- {
- "adGroupId": "string",
- "bidPercentage": "string",
- "listingId": "string"
}
]
}{- "responses": [
- {
- "adId": "string",
- "errors": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
], - "href": "string",
- "listingId": "string",
- "statusCode": 0
}
]
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method works with listings created with either the Trading API or the Inventory API.
This method updates the status of ads in bulk.
Specify the campaign_id you want to update as a URI parameter, and configure the adGroupStatus in the request payload.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
The bulk request to update the ads.
Array of objects (UpdateAdStatusRequest) An array of listing IDs and bid percentages. |
{- "requests": [
- {
- "adId": "string",
- "adStatus": "string"
}
]
}{- "responses": [
- {
- "adId": "string",
- "errors": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
], - "href": "string",
- "statusCode": 0
}
]
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method works with listings created with either the Trading API or the Inventory API.
The method updates the status of ads in bulk, based on listing ID values.
Specify the campaign_id as a path parameter and supply a set of listing IDs with their updated adStatus values in the request body. An eBay listing ID is generated when a listing is created with the Trading API.
Get the campaign IDs for a seller by calling getCampaigns and call getAds to retrieve a list of seller inventory reference IDs.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
The bulk request to update ads.
Array of objects (UpdateAdStatusByListingIdRequest) An array of listing IDs and bid percentages. |
{- "requests": [
- {
- "adGroupId": "string",
- "adStatus": "string",
- "listingId": "string"
}
]
}{- "responses": [
- {
- "adGroupId": "string",
- "errors": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
], - "href": "string",
- "listingId": "string",
- "statusCode": 0
}
]
}This method retrieves Promoted Listings ads that are associated with listings created with either the Trading API or the Inventory API.
The method retrieves ads related to the specified campaign. Specify the Promoted Listings campaign to target with the campaign_id path parameter.
Because of the large number of possible results, you can use query parameters to paginate the result set by specifying a limit, which dictates how many ads to return on each page of the response. You can also specify how many ads to skip in the result set before returning the first result using the offset path parameter.
Call getCampaigns to retrieve the current campaign IDs for the seller.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
| ad_group_ids | string A comma-separated list of ad group IDs. The results will be filtered to only include active ads for these ad groups. Call getAdGroups to retrieve the ad group ID for the ad group. |
| ad_status | string A comma-separated list of ad statuses. The results will be filtered to only include the given statuses of the ad. If none are provided, all ads are returned. |
| limit | string Specifies the maximum number of ads to return on a page in the paginated response. Default: 10 |
| listing_ids | string A comma-separated list of listing IDs. The response includes only active ads (ads associated with a RUNNING campaign). The results do not include listing IDs that are excluded by other conditions. |
| offset | string Specifies the number of ads to skip in the result set before returning the first ad in the paginated response. Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of Default: 0 |
{- "ads": [
- {
- "adGroupId": "string",
- "adId": "string",
- "adStatus": "string",
- "alerts": [
- {
- "alertType": "string",
- "details": [
- {
- "dimension": {
- "annotationKeys": [
- "string"
], - "dimensionKey": "string"
}, - "aspect": {
- "key": "string",
- "value": "string"
}
}
]
}
], - "bidPercentage": "string",
- "inventoryReferenceId": "string",
- "inventoryReferenceType": "string",
- "listingId": "string"
}
], - "href": "string",
- "limit": 0,
- "next": "string",
- "offset": 0,
- "prev": "string",
- "total": 0
}This method adds a listing to an existing Promoted Listings campaign using a listingId value generated by the Trading API or Inventory API, or using a value generated by an ad group ID.
For Promoted Listings Standard (PLS) campaigns using the Cost Per Sale (CPS) funding model, an ad may be directly created for the listing.
For the listing ID specified in the request, this method:
To create an ad for a listing, specify its listingId, plus the bidPercentage for the ad in the payload of the request. Specify the campaign to associate the ad with using the campaign_id path parameter. Listing IDs are generated by eBay when a seller creates listings with the Trading API.
For Promoted Listings Advanced (PLA) campaigns using the Cost Per Click (CPC) funding model, an ad group must be created first. If no ad group has been created for the campaign, an ad cannot be created.
For the ad group specified in the request, this method associates the ad with the specified ad group.
To create an ad for an ad group, specify the name of the ad group in the payload of the request. Specify the campaign to associate the ads with using the campaign_id path parameter. Ad groups are generated using the createAdGroup method.
You can specify one or more ad groups per campaign.
Use createCampaign to create a new campaign and use getCampaigns to get a list of existing campaigns.
This call has no response payload. If the ad is successfully created, a 201 Created HTTP status code and the getAd URI of the ad are returned in the location header.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
This request object defines the fields used in the createAdByListingId request.
| adGroupId | string A unique eBay-assigned ID for an ad group in a campaign that uses the Cost Per Click (CPC) funding model. Required if the campaign's funding model is Cost Per Click (CPC). Create an ad group using the createAdGroup method. Specify the campaign to associate the ad group with using the campaign_id path parameter. Note: You can call the getAdGroups method to retrieve the ad group IDs for a seller. |
| bidPercentage | string The user-defined bid percentage (also known as the ad rate) sets the level that eBay increases the visibility in search results for the associated listing. The higher the bidPercentage value, the more eBay promotes the listing.
If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign. Minimum value: 2.0 Maximum value: 100.0 |
| listingId | string A unique eBay-assigned ID for a listing that is generated when the listing is created. Note: This field accepts listing IDs, as generated by the Inventory API, and item IDs, as used in the eBay Traditional API set (e.g., the Trading and Finding APIs). |
{- "adGroupId": "string",
- "bidPercentage": "string",
- "listingId": "string"
}{ }This method adds a listing that is managed with the Inventory API to an existing Promoted Listings campaign.
For Promoted Listings Standard (PLS) campaigns using the Cost Per Sale (CPS) funding model, an ad may be directly created for the listing.
For each listing specified in the request, this method:
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
This request object defines the fields used in the createAdsByInventoryReference request.
| adGroupId | string Note: This field is not currently in use. Ad groups are only applicable to Promoted Listings Advanced (PLA) ad campaigns that use the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information. |
| bidPercentage | string The user-defined bid percentage (also known as the ad rate) sets the level that eBay increases the visibility in search results for the associated listing. The higher the bidPercentage value, the more eBay promotes the listing.
If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign. Minimum value: 2.0 Maximum value: 100.0 |
| inventoryReferenceId | string An ID that identifies a single-item listing or multiple-variation listing that is managed with the Inventory API. The inventory reference ID is a seller-defined value that can be either an SKU for a single-item listing or an inventoryItemGroupKey for a multiple-value listing. An inventoryItemGroupKey is a value that the seller defines to indicate a listing that's the parent of an inventory item group (a multiple-variation listing, such as a listing for a shirt that's available in multiple sizes and colors). You must always specify both an inventoryReferenceId and an inventoryReferenceType to indicate an item that's managed with the Inventory API. |
| inventoryReferenceType | string Indicates the type of item the inventoryReferenceId references. The item can be either an You must always pair an inventoryReferenceId with and inventoryReferenceType. For implementation help, refer to eBay API documentation |
{- "adGroupId": "string",
- "bidPercentage": "string",
- "inventoryReferenceId": "string",
- "inventoryReferenceType": "string"
}{- "ads": [
- {
- "adId": "string",
- "href": "string"
}
]
}This method retrieves the specified ad from the specified campaign.
In the request, supply the campaign_id and ad_id as path parameters.
Call getCampaigns to retrieve a list of the seller's current campaign IDs and call getAds to retrieve their current ad IDs.
| ad_id required | string A unique identifier for an ad. This ID is generated when the ad is created. |
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
{- "adGroupId": "string",
- "adId": "string",
- "adStatus": "string",
- "alerts": [
- {
- "alertType": "string",
- "details": [
- {
- "dimension": {
- "annotationKeys": [
- "string"
], - "dimensionKey": "string"
}, - "aspect": {
- "key": "string",
- "value": "string"
}
}
]
}
], - "bidPercentage": "string",
- "inventoryReferenceId": "string",
- "inventoryReferenceType": "string",
- "listingId": "string"
}This method removes the specified ad from the specified campaign.
Pass the ID of the ad to delete with the ID of the campaign associated with the ad as path parameters to the call.
Call getCampaigns to get the current list of the seller's campaign IDs.
Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.
When using the CPC funding model, use the bulkUpdateAdsStatusByListingId method to change the status of ads to ARCHIVED.
| ad_id required | string Identifier of an ad. This ID was generated when the ad was created. |
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
This method works with listings that are managed with the Inventory API.
The method deletes ads using a list of seller-defined inventory reference IDs, used with the Inventory API, that are associated with the specified campaign ID.
Specify the campaign ID (as a path parameter) and a list of inventoryReferenceId and inventoryReferenceType pairs to be deleted.
Call getCampaigns to get a list of the seller's current campaign IDs.
Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
This request object defines the fields for the deleteAdsByInventoryReference request.
| inventoryReferenceId | string The inventory reference ID is a seller-defined SKU value for a single-item listing, or a seller-defined identifier for an inventory item group. Both of these values are defined when using the Inventory API, and an inventory item group is used to create a multiple-variation listing. |
| inventoryReferenceType | string The enumeration value passed into this field indicates the type of value used for the corresponding inventoryReferenceId value. The enumeration value used here will either be |
{- "inventoryReferenceId": "string",
- "inventoryReferenceType": "string"
}{- "adIds": [
- "string"
]
}This method retrieves Promoted Listings ads associated with listings that are managed with the Inventory API from the specified campaign.
Supply the campaign_id as a path parameter and use query parameters to specify the inventory_reference_id and inventory_reference_type pairs.
In the Inventory API, an inventory reference ID is either a seller-defined SKU value or an inventoryItemGroupKey (a seller-defined ID for an inventory item group, which is an entity that's used in the Inventory API to create a multiple-variation listing). To indicate a listing managed by the Inventory API, you must always specify both an inventory_reference_id and the associated inventory_reference_type.
Call getCampaigns to retrieve all of the seller's the current campaign IDs.
Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
| inventory_reference_id required | string The inventory reference ID associated with the ad you want returned. A seller's inventory reference ID is the ID of either a listing or the ID of an inventory item group (the parent of a multi-variation listing, such as a shirt that is available in multiple sizes and colors). You must always supply in both an inventory_reference_id and an inventory_reference_type. |
| inventory_reference_type required | string The type of the inventory reference ID. Set this value to either |
{- "ads": [
- {
- "adGroupId": "string",
- "adId": "string",
- "adStatus": "string",
- "alerts": [
- {
- "alertType": "string",
- "details": [
- {
- "dimension": {
- "annotationKeys": [
- "string"
], - "dimensionKey": "string"
}, - "aspect": {
- "key": "string",
- "value": "string"
}
}
]
}
], - "bidPercentage": "string",
- "inventoryReferenceId": "string",
- "inventoryReferenceType": "string",
- "listingId": "string"
}
]
}This method updates the bid percentage (also known as the "ad rate") for the specified ad in the specified campaign.
In the request, supply the campaign_id and ad_id as path parameters, and supply the new bidPercentage value in the payload of the call.
Call getCampaigns to retrieve a seller's current campaign IDs and call getAds to get their ad IDs.
Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.| ad_id required | string A unique eBay-assigned ID for an ad that's generated when an ad is created. |
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
This type defines the fields for the updateBid request.
| bidPercentage | string The user-defined bid percentage (also known as the ad rate) sets the level that eBay increases the visibility in search results for the associated listing. The higher the bidPercentage value, the more eBay promotes the listing.
If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign. Minimum value: 2.0 Maximum value: 100.0 |
{- "bidPercentage": "string"
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method retrieves ad groups for the specified campaigns.
Each campaign can only have one ad group.
In the request, supply the campaign_ids as path parameters.
Call getCampaigns to retrieve a list of the current campaign IDs for a seller.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
| ad_group_status | string A comma-separated list of ad group statuses. The results will be filtered to only include the given statuses of the ad group. |
| limit | string The number of results, from the current result set, to be returned in a single page. |
| offset | string The number of results that will be skipped in the result set. This is used with the limit field to control the pagination of the output. |
{- "adGroups": [
- {
- "adGroupId": "string",
- "adGroupStatus": "string",
- "defaultBid": {
- "currency": "string",
- "value": "string"
}, - "name": "string"
}
], - "href": "string",
- "limit": 0,
- "next": "string",
- "offset": 0,
- "prev": "string",
- "total": 0
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method adds an ad group to an existing PLA campaign that uses the Cost Per Click (CPC) funding model.
To create an ad group for a campaign, specify the defaultBid for the ad group in the payload of the request. Then specify the campaign to which the ad group should be associated using the campaign_id path parameter.
Each campaign can have one or more associated ad groups.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
This type defines the fields for the createAdGroup request.
object (Amount) A complex type that describes the value of a monetary amount as represented by a global currency. | |
| name | string The seller-defined name of the ad group. |
{- "defaultBid": {
- "currency": "string",
- "value": "string"
}, - "name": "string"
}{ }Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method retrieves the details of a specified ad group, such as the ad group’s default bid and status.
In the request, specify the campaign_id and ad_group_id as path parameters.
Call getCampaigns to retrieve a list of the current campaign IDs for a seller and call getAdGroups for the ad group ID of the ad group you wish to retrieve.
| ad_group_id required | string The ID of the ad group that shall be retrieved. |
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
{- "adGroupId": "string",
- "adGroupStatus": "string",
- "defaultBid": {
- "currency": "string",
- "value": "string"
}, - "name": "string"
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method updates the ad group associated with a campaign.
With this method, you can modify the default bid for the ad group, change the state of the ad group, or change the name of the ad group. Pass the ad_group_id you want to update as a URI parameter, and configure the adGroupStatus and defaultBid in the request payload.
Call getAdGroup to retrieve the current default bid and status of the ad group that you would like to update.
| ad_group_id required | string The ID of the ad group that shall be updated. |
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
This type defines the fields for the UpdateAdGroup request.
| adGroupStatus | string An enumeration value representing the current status of the ad group. If the status of the ad is currently
|
object (Amount) A complex type that describes the value of a monetary amount as represented by a global currency. | |
| name | string The updated name for the specified ad group. |
{- "adGroupStatus": "string",
- "defaultBid": {
- "currency": "string",
- "value": "string"
}, - "name": "string"
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method allows sellers to retrieve the suggested bids for input keywords and match type.
| ad_group_id required | string The ID of the ad group containing the keywords for which the bid suggestions will be provided. |
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
The data requested to retrieve the suggested bids.
Array of objects (KeywordRequest) A list of keywords in the paginated collection. |
{- "keywords": [
- {
- "keywordText": "string",
- "matchType": "string"
}
]
}{- "suggestedBids": [
- {
- "keywordText": "string",
- "matchType": "string",
- "proposedBid": {
- "currency": "string",
- "rangeEnd": "string",
- "rangeStart": "string",
- "value": "string"
}
}
]
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method allows sellers to retrieve a list of keyword ideas to be targeted for Promoted Listings campaigns.
| ad_group_id required | string The ID of the ad group for which the keyword suggestions will be provided. |
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
The required data to retrieve suggested keywords.
| additionalInfo | Array of strings A field used to indicate whether additional information and insight data shall be provided for suggested keywords. |
| exclusions | Array of strings A field used to indicate that the keywords already selected by sellers for the specified listing IDs should be filtered out of the response, and only new and unique keyword recommendations shall be returned. |
| listingIds | Array of strings A set of comma-separated listing IDs in the paginated collection. |
| matchType | string A field that defines the match type for the keyword.
|
{- "additionalInfo": [
- "string"
], - "exclusions": [
- "string"
], - "listingIds": [
- "string"
], - "matchType": "string"
}{- "suggestedKeywords": [
- {
- "additionalInfo": [
- {
- "infoType": "string",
- "metrics": [
- {
- "metricKey": "string",
- "value": "string"
}
]
}
], - "keywordText": "string",
- "matchType": "string"
}
]
}This method clones (makes a copy of) the specified campaign's campaign criterion. The campaign criterion is a container for the fields that define the criteria for a rule-based campaign.
To clone a campaign, supply the campaign_id as a path parameter in your call. There is no request payload.
The ID of the newly-cloned campaign is returned in the Location response header.
Call getCampaigns to retrieve a seller's current campaign IDs.
Requirement: In order to clone a campaign, the campaignStatus must be ENDED and the campaign must define a set of selection rules (it must be a rules-based campaign).
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. This ID is the campaign ID of the campaign being cloned. |
This type defines the fields for a clone campaign request.
| campaignName | string A seller-defined name for the newly-cloned campaign. This value must be unique for the seller. You can use any alphanumeric characters in the name, except the less than (<) or greater than (>) characters. Max length: 80 characters |
| endDate | string The date and time the campaign ends, in UTC format ( |
object (FundingStrategy) This type defines how the Promoted Listings fee is calculated for a Promoted Listings ad campaign. | |
| startDate | string The date and time the cloned campaign starts, in UTC format ( On the date specified, the service derives the keywords for each listing in the campaign, creates an ad for each listing, and associates each new ad with the campaign. The campaign starts after this process is completed. The amount of time it takes the service to start the campaign depends on the number of listings in the campaign. Call getCampaign to check the status of the campaign. |
{- "campaignName": "string",
- "endDate": "string",
- "fundingStrategy": {
- "adRateStrategy": "string",
- "bidPercentage": "string",
- "dynamicAdRatePreferences": [
- {
- "adRateAdjustmentPercent": "string",
- "adRateCapPercent": "string"
}
], - "fundingModel": "string"
}, - "startDate": "string"
}{ }This method retrieves the details for all of the seller's defined campaigns. Request parameters can be used to retrieve a specific campaign, such as the campaign's name, the start and end date, the status, and the funding model (Cost Per Sale (CPS) or Cost Per Click (CPC).
You can filter the result set by a campaign name, end date range, start date range, or campaign status. You can also paginate the records returned from the result set using the limit query parameter, and control which records to return using the offset parameter.
| campaign_name | string Specifies the campaign name. The results are filtered to include only the campaign by the specified name. |
| campaign_status | string Include this filter and input a specific campaign status to retrieve campaigns currently in that state. |
| end_date_range | string Specifies the range of a campaign's end date. The results are filtered to include only campaigns with an end date that is within specified range.
Note: The results might not include all the campaigns ending on this date if other filters exclude them. |
| funding_strategy | string Specifies the funding strategy for the campaign.
|
| limit | string Specifies the maximum number of campaigns to return on a page in the paginated response. Default: 10Maximum: 500 |
| offset | string Specifies the number of campaigns 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 items returned in the response. For example, if you supply an offset of Default: 0 |
| start_date_range | string Specifies the range of a campaign's start date in which to filter the results. The results are filtered to include only campaigns with a start date that is equal to this date or is within specified range.
Note: The results might not include all the campaigns with this start date if other filters exclude them. |
{- "campaigns": [
- {
- "alerts": [
- {
- "alertType": "string",
- "details": [
- {
- "dimension": {
- "annotationKeys": [
- "string"
], - "dimensionKey": "string"
}, - "aspect": {
- "key": "string",
- "value": "string"
}
}
]
}
], - "budget": {
- "daily": {
- "amount": {
- "currency": "string",
- "value": "string"
}, - "budgetStatus": "string"
}
}, - "campaignCriterion": {
- "autoSelectFutureInventory": true,
- "criterionType": "string",
- "selectionRules": [
- {
- "brands": [
- "string"
], - "categoryIds": [
- "string"
], - "categoryScope": "string",
- "listingConditionIds": [
- "string"
], - "maxPrice": {
- "currency": "string",
- "value": "string"
}, - "minPrice": {
- "currency": "string",
- "value": "string"
}
}
]
}, - "campaignId": "string",
- "campaignName": "string",
- "campaignStatus": "string",
- "endDate": "string",
- "fundingStrategy": {
- "adRateStrategy": "string",
- "bidPercentage": "string",
- "dynamicAdRatePreferences": [
- {
- "adRateAdjustmentPercent": "string",
- "adRateCapPercent": "string"
}
], - "fundingModel": "string"
}, - "marketplaceId": "string",
- "startDate": "string"
}
], - "href": "string",
- "limit": 0,
- "next": "string",
- "offset": 0,
- "prev": "string",
- "total": 0
}This method creates a Promoted Listings ad campaign.
A Promoted Listings campaign is the structure into which you place the ads or ad group for the listings you want to promote.
Identify the items you want to place into a campaign either by "key" or by "rule" as follows:
true so that after your campaign launches, eBay will regularly assess your new, revised, or newly-eligible listings to determine whether any should be added or removed from your campaign according to the rules you set. If there are, eBay will add or remove them automatically on a daily basis.Note: No matter how you add items to a Promoted Listings campaign, each campaign can contain ads for a maximum of 50,000 items.
If a rules-based campaign identifies more than 50,000 items, ads are created for only the first 50,000 items identified by the specified criteria, and ads are not created for the remaining items.
Creating a campaign
To create a basic campaign, supply:
The campaign funding model specifies how the Promoted Listings fee is calculated. Currently, the supported funding models are COST_PER_SALE and COST_PER_CLICK. For complete information on how the fee is calculated and when it applies, see Promoted Listings fees.
If you populate the campaignCriterion object in your createCampaign request, campaign "ads" are created by "rule" for the listings that meet the criteria you specify, and these ads are associated with the newly created campaign.
For details on creating Promoted Listings campaigns and how to select the items to be included in your campaigns, see Promoted Listings campaign creation.
For recommendations on which listings are prime for a Promoted Listings ad campaign and to get guidance on how to set the bidPercentage field, see Using the Recommendation API to help configure campaigns.
Tip: See Promoted Listings requirements and restrictions for the details on the marketplaces that support Promoted Listings via the API. See Promoted Listings restrictions for details about campaign limitations and restrictions.
This type defines the fields for the create campaign request.
object (CampaignBudgetRequest) A container for the details of a Promoted Listings campaign that uses the Cost Per Click (CPC) funding model. | |
object (CampaignCriterion) This type defines the fields for specifying the criterion (selection rule) settings of an ad campaign. If you populate the campaignCriterion object in your createCampaign request, ads for the campaign are created by rule for the listings that meet the criteria you specify, and these ads are associated with the newly created campaign. | |
| campaignName | string A seller-defined name for the campaign. This value must be unique for the seller. You can use any alphanumeric characters in the name, except the less than (<) or greater than (>) characters. Max length: 80 characters |
| endDate | string The date and time the campaign ends, in UTC format ( |
object (FundingStrategy) This type defines how the Promoted Listings fee is calculated for a Promoted Listings ad campaign. | |
| marketplaceId | string The ID of the eBay marketplace where the campaign is hosted. See the MarketplaceIdEnum type to get the appropriate enumeration value for the listing marketplace. For implementation help, refer to eBay API documentation |
| startDate | string The date and time the campaign starts, in UTC format ( On the date specified, the service derives the keywords for each listing in the campaign, creates an ad for each listing, and associates each new ad with the campaign. The campaign starts after this process is completed. The amount of time it takes the service to start the campaign depends on the number of listings in the campaign. Call getCampaign to check the status of the campaign. |
{- "budget": {
- "daily": {
- "amount": {
- "currency": "string",
- "value": "string"
}
}
}, - "campaignCriterion": {
- "autoSelectFutureInventory": true,
- "criterionType": "string",
- "selectionRules": [
- {
- "brands": [
- "string"
], - "categoryIds": [
- "string"
], - "categoryScope": "string",
- "listingConditionIds": [
- "string"
], - "maxPrice": {
- "currency": "string",
- "value": "string"
}, - "minPrice": {
- "currency": "string",
- "value": "string"
}
}
]
}, - "campaignName": "string",
- "endDate": "string",
- "fundingStrategy": {
- "adRateStrategy": "string",
- "bidPercentage": "string",
- "dynamicAdRatePreferences": [
- {
- "adRateAdjustmentPercent": "string",
- "adRateCapPercent": "string"
}
], - "fundingModel": "string"
}, - "marketplaceId": "string",
- "startDate": "string"
}{ }This method retrieves the details of a single campaign, as specified with the campaign_id query parameter.
This method returns all the details of a campaign (including the campaign's the selection rules), except the for the listing IDs or inventory reference IDs included in the campaign. These IDs are returned by getAds.
Call getCampaigns to retrieve a list of the seller's campaign IDs.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
{- "alerts": [
- {
- "alertType": "string",
- "details": [
- {
- "dimension": {
- "annotationKeys": [
- "string"
], - "dimensionKey": "string"
}, - "aspect": {
- "key": "string",
- "value": "string"
}
}
]
}
], - "budget": {
- "daily": {
- "amount": {
- "currency": "string",
- "value": "string"
}, - "budgetStatus": "string"
}
}, - "campaignCriterion": {
- "autoSelectFutureInventory": true,
- "criterionType": "string",
- "selectionRules": [
- {
- "brands": [
- "string"
], - "categoryIds": [
- "string"
], - "categoryScope": "string",
- "listingConditionIds": [
- "string"
], - "maxPrice": {
- "currency": "string",
- "value": "string"
}, - "minPrice": {
- "currency": "string",
- "value": "string"
}
}
]
}, - "campaignId": "string",
- "campaignName": "string",
- "campaignStatus": "string",
- "endDate": "string",
- "fundingStrategy": {
- "adRateStrategy": "string",
- "bidPercentage": "string",
- "dynamicAdRatePreferences": [
- {
- "adRateAdjustmentPercent": "string",
- "adRateCapPercent": "string"
}
], - "fundingModel": "string"
}, - "marketplaceId": "string",
- "startDate": "string"
}This method deletes the campaign specified by the campaign_id query parameter.
Note: You can only delete campaigns that have ended.
Call getCampaigns to retrieve the campaign_id and the campaign status (RUNNING, PAUSED, ENDED, and so on) for all the seller's campaigns.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
This method ends an active (RUNNING) or paused campaign. Specify the campaign you want to end by supplying its campaign ID in a query parameter.
Call getCampaigns to retrieve the campaign_id and the campaign status (RUNNING, PAUSED, ENDED, and so on) for all the seller's campaigns.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
This method retrieves the campaigns containing the listing that is specified using either a listing ID, or an inventory reference ID and inventory reference type pair. The request accepts either a listing_id, or an inventory_reference_id and inventory_reference_type pair, as used in the Inventory API.
eBay listing IDs are generated by either the Trading API or the Inventory API when you create a listing.
An inventory reference ID can be either a seller-defined SKU or inventoryItemGroupKey, as specified in the Inventory API.
Note: This method only applies to the Cost Per Sale (CPS) funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.
| inventory_reference_id | string The seller's inventory reference ID of the listing to be used to find the campaign in which it is associated. This will either be a seller-defined SKU value or inventory item group ID, depending on the reference type specified. You must always pass in both inventory_reference_id and inventory_reference_type. |
| inventory_reference_type | string The type of the seller's inventory reference ID, which is a listing or group of items. You must always pass in both inventory_reference_id and inventory_reference_type. |
| listing_id | string Identifier of the eBay listing associated with the ad. |
{- "campaigns": [
- {
- "alerts": [
- {
- "alertType": "string",
- "details": [
- {
- "dimension": {
- "annotationKeys": [
- "string"
], - "dimensionKey": "string"
}, - "aspect": {
- "key": "string",
- "value": "string"
}
}
]
}
], - "budget": {
- "daily": {
- "amount": {
- "currency": "string",
- "value": "string"
}, - "budgetStatus": "string"
}
}, - "campaignCriterion": {
- "autoSelectFutureInventory": true,
- "criterionType": "string",
- "selectionRules": [
- {
- "brands": [
- "string"
], - "categoryIds": [
- "string"
], - "categoryScope": "string",
- "listingConditionIds": [
- "string"
], - "maxPrice": {
- "currency": "string",
- "value": "string"
}, - "minPrice": {
- "currency": "string",
- "value": "string"
}
}
]
}, - "campaignId": "string",
- "campaignName": "string",
- "campaignStatus": "string",
- "endDate": "string",
- "fundingStrategy": {
- "adRateStrategy": "string",
- "bidPercentage": "string",
- "dynamicAdRatePreferences": [
- {
- "adRateAdjustmentPercent": "string",
- "adRateCapPercent": "string"
}
], - "fundingModel": "string"
}, - "marketplaceId": "string",
- "startDate": "string"
}
]
}This method retrieves the details of a single campaign, as specified with the campaign_name query parameter. Note that the campaign name you specify must be an exact, case-sensitive match of the name of the campaign you want to retrieve.
Call getCampaigns to retrieve a list of the seller's campaign names.
| campaign_name required | string The name of the campaign. |
{- "alerts": [
- {
- "alertType": "string",
- "details": [
- {
- "dimension": {
- "annotationKeys": [
- "string"
], - "dimensionKey": "string"
}, - "aspect": {
- "key": "string",
- "value": "string"
}
}
]
}
], - "budget": {
- "daily": {
- "amount": {
- "currency": "string",
- "value": "string"
}, - "budgetStatus": "string"
}
}, - "campaignCriterion": {
- "autoSelectFutureInventory": true,
- "criterionType": "string",
- "selectionRules": [
- {
- "brands": [
- "string"
], - "categoryIds": [
- "string"
], - "categoryScope": "string",
- "listingConditionIds": [
- "string"
], - "maxPrice": {
- "currency": "string",
- "value": "string"
}, - "minPrice": {
- "currency": "string",
- "value": "string"
}
}
]
}, - "campaignId": "string",
- "campaignName": "string",
- "campaignStatus": "string",
- "endDate": "string",
- "fundingStrategy": {
- "adRateStrategy": "string",
- "bidPercentage": "string",
- "dynamicAdRatePreferences": [
- {
- "adRateAdjustmentPercent": "string",
- "adRateCapPercent": "string"
}
], - "fundingModel": "string"
}, - "marketplaceId": "string",
- "startDate": "string"
}This method pauses an active (RUNNING) campaign.
You can restart the campaign by calling resumeCampaign, as long as the campaign's end date is in the future.
Note: The listings associated with a paused campaign cannot be added into another campaign.
Call getCampaigns to retrieve the campaign_id and the campaign status (RUNNING, PAUSED, ENDED, and so on) for all the seller's campaigns.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
This method resumes a paused campaign, as long as its end date is in the future. Supply the campaign_id for the campaign you want to restart as a query parameter in the request.
Call getCampaigns to retrieve the campaign_id and the campaign status (RUNNING, PAUSED, ENDED, and so on) for all the seller's campaigns.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method allows sellers to obtain ideas for listings, which can be targeted for Promoted Listings campaigns.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
| category_ids | string Specifies the category ID that is used to limit the results. This refers to an exact leaf category (the lowest level in that category and has no children). This field can have one category ID, or a comma-separated list of IDs. To return all category IDs, set to |
| limit | string Specifies the maximum number of campaigns to return on a page in the paginated response. If no value is specified, the default value is used. |
| offset | string Specifies the number of campaigns 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 items returned in the response. For example, if you supply an offset of Default: 0 |
{- "href": "string",
- "limit": 0,
- "next": "string",
- "offset": 0,
- "prev": "string",
- "suggestedItems": [
- {
- "bases": [
- {
- "estimatedValue": 0,
- "metric": "string"
}
], - "listingId": "string"
}
], - "total": 0
}This method updates the ad rate strategy for an existing Promoted Listings Standard (PLS) rules-based ad campaign that uses the Cost Per Sale (CPS) funding model.
Specify the campaign_id as a path parameter. You can retrieve the campaign IDs for a seller by calling the getCampaigns method.
Note: This method only applies to the CPS funding model; it does not apply to the Cost Per Click (CPC) funding model. See Funding Models in the Promoted Listings Playbook for more information.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
This type defines the request fields for the ad rate strategy that shall be updated.
| adRateStrategy | string The ad rate strategy that shall be applied to the campaign. For implementation help, refer to eBay API documentation |
| bidPercentage | string The user-defined bid percentage (also known as the ad rate) sets the level that eBay increases the visibility in search results for the associated listing. The higher the bidPercentage value, the more eBay promotes the listing.
If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign. Minimum value: 2.0 Maximum value: 100.0 |
Array of objects (DynamicAdRatePreference) A field that indicates whether a single, user-defined bid percentage (also known as the ad rate) should be used, or whether eBay should automatically adjust listings to maintain the daily suggested bid percentage. |
{- "adRateStrategy": "string",
- "bidPercentage": "string",
- "dynamicAdRatePreferences": [
- {
- "adRateAdjustmentPercent": "string",
- "adRateCapPercent": "string"
}
]
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method updates the daily budget for a PLA campaign that uses the Cost Per Click (CPC) funding model.
A click occurs when an eBay user finds and clicks on the seller’s listing (within the search results) after using a keyword that the seller has created for the campaign. For each ad in an ad group in the campaign, each click triggers a cost, which gets subtracted from the campaign’s daily budget. If the cost of the clicks exceeds the daily budget, the Promoted Listings campaign will be paused until the next day.
Specify the campaign_id as a path parameter. You can retrieve the campaign IDs for a seller by calling the getCampaigns method.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
This type defines the request fields for the budget details that shall be updated.
object (BudgetRequest) A container for the budget details of a Promoted Listings campaign that uses the Cost Per Click (CPC) funding model. |
{- "daily": {
- "amount": {
- "currency": "string",
- "value": "string"
}
}
}This method can be used to change the name of a campaign, as well as modify the start or end dates.
Specify the campaign_id you want to update as a URI parameter, and configure the campaignName and startDate in the request payload.
If you want to change only the end date of the campaign, specify the current campaign name and set startDate to the current date (you cannot use a start date that is in the past), and set the endDate as desired. Note that if you do not set a new end date in this call, any current endDate value will be set to null. To preserve the currently-set end date, you must specify the value again in your request.
Call getCampaigns to retrieve a seller's campaign details, including the campaign ID, campaign name, and the start and end dates of the campaign.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
This type defines the fields to update the campaign name and start and end dates.
| campaignName | string The new seller-defined name for the campaign. This value must be unique for the seller. If you don't want to change the name of the campaign, specify the current campaign name in this field. You can use any alphanumeric characters in the name, except the less than (<) or greater than (>) characters. Max length: 80 characters. |
| endDate | string The date and time the campaign ends, in UTC format ( If you want to change only the end date of the campaign, specify the current campaign name and set startDate to the current date (you cannot use a start date that is in the past), and set the endDate as desired. Note that if you do not set a new end date in this call, any current endDate value will be set to null. To preserve the currently-set end date, you must specify the value again in your request. |
| startDate | string The new start date for the campaign, in UTC format ( If the campaign is currently On the date specified, the service derives the keywords for each listing in the campaign, creates an ad for each listing, and associates each new ad with the campaign. The campaign starts after this process is completed. The amount of time it takes the service to start the campaign depends on the number of listings in the campaign. Call getCampaigns to retrieve the campaign_id and the campaign status ( |
{- "campaignName": "string",
- "endDate": "string",
- "startDate": "string"
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method adds keywords, in bulk, to an existing PLA ad group in a campaign that uses the Cost Per Click (CPC) funding model.
This method also sets the CPC rate for each keyword.
In the request, supply the campaign_id as a path parameter.
Call the getCampaigns method to retrieve a list of current campaign IDs for a specified seller.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
A type that defines the fields for the bulk request to create keywords.
Array of objects (CreateKeywordRequest) This array is used to pass in multiple keywords for one or more ad groups that belong to a campaign that uses the Cost Per Click (CPC) funding model. Up to {max value} keywords can be created with one call. |
{- "requests": [
- {
- "adGroupId": "string",
- "bid": {
- "currency": "string",
- "value": "string"
}, - "keywordText": "string",
- "matchType": "string"
}
]
}{- "responses": [
- {
- "adGroupId": "string",
- "errors": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
], - "href": "string",
- "keywordId": "string",
- "keywordText": "string",
- "matchType": "string",
- "statusCode": 0
}
]
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method updates the bids and statuses of keywords, in bulk, for an existing PLA campaign.
In the request, supply the campaign_id as a path parameter.
Call the getCampaigns method to retrieve a list of current campaign IDs for a specified seller.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
A type that defines the fields for the bulk request to update keywords.
Array of objects (UpdateKeywordByKeywordIdRequest) Use this array to update the bid values and/or statuses of one or more existing keywords. |
{- "requests": [
- {
- "bid": {
- "currency": "string",
- "value": "string"
}, - "keywordId": "string",
- "keywordStatus": "string"
}
]
}{- "responses": [
- {
- "errors": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
], - "keywordId": "string",
- "statusCode": 0
}
]
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method can be used to retrieve all of the keywords for ad groups in PLA campaigns that use the Cost Per Click (CPC) funding model.
In the request, specify the campaign_id as a path parameter. If one or more ad_group_ids are passed in the request body, the keywords for those ad groups will be returned. If ad_group_ids are not passed in the response body, the call will return all the keywords in the campaign.
Call the getCampaigns method to retrieve a list of current campaign IDs for a seller.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
| ad_group_ids | string A comma-separated list of ad group IDs. This query parameter is used if the seller wants to retrieve keywords from one or more specific ad groups. If this query parameter is not used, all keywords that are part of the CPC campaign are returned.Note:You can call the getAdGroups method to retrieve the ad group IDs for a seller. |
| keyword_status | string A comma-separated list of keyword statuses. The results will be filtered to only include the given statuses of the keyword. If none are provided, all keywords are returned. |
| limit | string Specifies the maximum number of results to return on a page in the paginated response. Default: 10Maximum: 500 |
| offset | string Specifies the number of results 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 items returned in the response. For example, if you supply an offset of Default: 0 |
{- "href": "string",
- "keywords": [
- {
- "adGroupId": "string",
- "bid": {
- "currency": "string",
- "value": "string"
}, - "keywordId": "string",
- "keywordStatus": "string",
- "keywordText": "string",
- "matchType": "string"
}
], - "limit": 0,
- "next": "string",
- "offset": 0,
- "prev": "string",
- "total": 0
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method creates keywords using a specified campaign ID for an existing PLA campaign.
In the request, supply the campaign_id as a path parameter.
Call the suggestKeywords method to retrieve a list of keyword ideas to be targeted for PLA campaigns, and call the getCampaigns method to retrieve a list of current campaign IDs for a seller.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
A type that defines the fields for the request to create a keyword.
| adGroupId | string This adGroupId is created when an ad group is first created and associated with a campaign. This is the ad group that the corresponding keyword will be added to. This ad group must be a part of the campaign that is specified in the call URI. |
object (Amount) A complex type that describes the value of a monetary amount as represented by a global currency. | |
| keywordText | string Input the keyword into this field. |
| matchType | string A field that defines the match type for the keyword.
|
{- "adGroupId": "string",
- "bid": {
- "currency": "string",
- "value": "string"
}, - "keywordText": "string",
- "matchType": "string"
}{ }Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method retrieves details on a specific keyword from an ad group within a PLA campaign that uses the Cost Per Click (CPC) funding model.
In the request, specify the campaign_id and keyword_id as path parameters.
Call the getCampaigns method to retrieve a list of current campaign IDs for a seller and call the getKeywords method to retrieve their keyword IDs.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
| keyword_id required | string This path parameter is used to identify the keyword to retrieve. |
{- "adGroupId": "string",
- "bid": {
- "currency": "string",
- "value": "string"
}, - "keywordId": "string",
- "keywordStatus": "string",
- "keywordText": "string",
- "matchType": "string"
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method updates keywords using a campaign ID and keyword ID for an existing PLA campaign.
In the request, specify the campaign_id and keyword_id as path parameters.
Call the getCampaigns method to retrieve a list of current campaign IDs for a seller and call the getKeywords method to retrieve their keyword IDs.
| campaign_id required | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
| keyword_id required | string A unique eBay-assigned ID that is generated when a keyword is created. |
A type that defines the fields for the request to update a keyword.
object (Amount) A complex type that describes the value of a monetary amount as represented by a global currency. | |
| keywordStatus | string Include this field if you wish to change the status of the keyword. The status value specified here must be different than the keyword's current status. To confirm the current status of a keyword, you can use the getKeyword method. If the status of the ad is currently |
{- "bid": {
- "currency": "string",
- "value": "string"
}, - "keywordStatus": "string"
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method adds negative keywords, in bulk, to an existing ad group in a PLA campaign that uses the Cost Per Click (CPC) funding model.
Specify the campaignId and adGroupId in the request body, along with the negativeKeywordText and negativeKeywordMatchType.
Call the getCampaigns method to retrieve a list of current campaign IDs for a specified seller.
A type that defines the fields for the bulk request to create negative keywords.
Array of objects (CreateNegativeKeywordRequest) This array is used to pass in multiple negative keywords for one or more ad groups that belong to a campaign that uses the Cost Per Click (CPC) funding model. |
{- "requests": [
- {
- "adGroupId": "string",
- "campaignId": "string",
- "negativeKeywordMatchType": "string",
- "negativeKeywordText": "string"
}
]
}{- "responses": [
- {
- "adGroupId": "string",
- "campaignId": "string",
- "errors": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
], - "href": "string",
- "negativeKeywordId": "string",
- "negativeKeywordMatchType": "string",
- "negativeKeywordText": "string",
- "statusCode": 0
}
]
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method updates the statuses of existing negative keywords, in bulk.
Specify the negativeKeywordId and negativeKeywordStatus in the request body.
A type that defines the fields for the bulk request to update negative keyword statuses.
Array of objects (UpdateNegativeKeywordIdRequest) An array to update the statuses of one or more existing negative keywords. |
{- "requests": [
- {
- "negativeKeywordId": "string",
- "negativeKeywordStatus": "string"
}
]
}{- "responses": [
- {
- "errors": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
], - "negativeKeywordId": "string",
- "statusCode": 0
}
]
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method can be used to retrieve all of the negative keywords for ad groups in PLA campaigns that use the Cost Per Click (CPC) funding model.
The results can be filtered using the campaign_ids, ad_group_ids, and negative_keyword_status query parameters.
Call the getCampaigns method to retrieve a list of current campaign IDs for a seller.
| ad_group_ids | string A comma-separated list of ad group IDs. |
| campaign_ids | string A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. |
| limit | string The number of results, from the current result set, to be returned in a single page. |
| negative_keyword_status | string A comma-separated list of negative keyword statuses. |
| offset | string The number of results that will be skipped in the result set. This is used with the limit field to control the pagination of the output. |
{- "href": "string",
- "limit": 0,
- "negativeKeywords": [
- {
- "adGroupId": "string",
- "campaignId": "string",
- "negativeKeywordId": "string",
- "negativeKeywordMatchType": "string",
- "negativeKeywordStatus": "string",
- "negativeKeywordText": "string"
}
], - "next": "string",
- "offset": 0,
- "prev": "string",
- "total": 0
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method adds a negative keyword to an existing ad group in a PLA campaign that uses the Cost Per Click (CPC) funding model.
Specify the campaignId and adGroupId in the request body, along with the negativeKeywordText and negativeKeywordMatchType.
Call the getCampaigns method to retrieve a list of current campaign IDs for a specified seller.
A type that defines the fields for the request to create a negative keyword.
| adGroupId | string This adGroupId is created when an ad group is first created and associated with a campaign. This is the ad group to which the corresponding negative keyword will be added. |
| campaignId | string A unique eBay-assigned ID for a campaign. This ID is generated when a campaign is created. |
| negativeKeywordMatchType | string A field that defines the match type for the negative keyword.
|
| negativeKeywordText | string The negative keyword text. |
{- "adGroupId": "string",
- "campaignId": "string",
- "negativeKeywordMatchType": "string",
- "negativeKeywordText": "string"
}{ }Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method retrieves details on a specific negative keyword.
In the request, specify the negative_keyword_id as a path parameter.
| negative_keyword_id required | string The unique identifier for the negative keyword. |
{- "adGroupId": "string",
- "campaignId": "string",
- "negativeKeywordId": "string",
- "negativeKeywordMatchType": "string",
- "negativeKeywordStatus": "string",
- "negativeKeywordText": "string"
}Note: This is a Limited Release API service that is available only to select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For details about how to request access to this program, see Promoted Listings Advanced Access Requests in the Promoted Listings Playbook.
This method updates the status of an existing negative keyword.
Specify the negative_keyword_id as a path parameter, and specify the negativeKeywordStatus in the request body.
| negative_keyword_id required | string The unique identifier for the negative keyword. |
A type that defines the fields for the request to update a negative keyword.
| negativeKeywordStatus | string A field that defines the status of the negative keyword. For implementation help, refer to eBay API documentation |
{- "negativeKeywordStatus": "string"
}This call downloads the report as specified by the report_id path parameter.
Call createReportTask to schedule and generate a Promoted Listings report. All date values are returned in UTC format (yyyy-MM-ddThh:mm:ss.sssZ).
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.
| report_id required | string The unique ID of the Promoted Listings report you want to get. This ID is generated by eBay when you run a report task with a call to createReportTask. Get all the seller's report IDs by calling getReportTasks. |
This call retrieves information that details the fields used in each of the Promoted Listings reports. Use the returned information to configure the different types of Promoted Listings reports.The request for this method does not use a payload or any URI parameters.
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.
{- "reportMetadata": [
- {
- "dimensionMetadata": [
- {
- "dataType": "string",
- "dimensionKey": "string",
- "dimensionKeyAnnotations": [
- {
- "annotationKey": "string",
- "dataType": "string"
}
]
}
], - "maxNumberOfDimensionsToRequest": 0,
- "maxNumberOfMetricsToRequest": 0,
- "metricMetadata": [
- {
- "dataType": "string",
- "metricKey": "string"
}
], - "reportType": "string"
}
]
}This call retrieves metadata that details the fields used by a specific Promoted Listings report type. Use the report_type path parameter to indicate metadata to retrieve.
This method does not use a request payload.
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.
| report_type required | string The name of the report type whose metadata you want to retrieve. |
{- "dimensionMetadata": [
- {
- "dataType": "string",
- "dimensionKey": "string",
- "dimensionKeyAnnotations": [
- {
- "annotationKey": "string",
- "dataType": "string"
}
]
}
], - "maxNumberOfDimensionsToRequest": 0,
- "maxNumberOfMetricsToRequest": 0,
- "metricMetadata": [
- {
- "dataType": "string",
- "metricKey": "string"
}
], - "reportType": "string"
}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.
| limit | string Specifies the maximum number of report tasks to return on a page in the paginated response. Default: 10 |
| offset | string Specifies 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 |
| report_task_statuses | string This 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. |
{- "href": "string",
- "limit": 0,
- "next": "string",
- "offset": 0,
- "prev": "string",
- "total": 0,
- "reportTasks": [
- {
- "campaignIds": [
- "string"
], - "dateFrom": "string",
- "dateTo": "string",
- "dimensions": [
- {
- "annotationKeys": [
- "string"
], - "dimensionKey": "string"
}
], - "fundingModels": [
- "string"
], - "inventoryReferences": [
- {
- "inventoryReferenceId": "string",
- "inventoryReferenceType": "string"
}
], - "listingIds": [
- "string"
], - "marketplaceId": "string",
- "metricKeys": [
- "string"
], - "reportExpirationDate": "string",
- "reportFormat": "string",
- "reportHref": "string",
- "reportId": "string",
- "reportName": "string",
- "reportTaskCompletionDate": "string",
- "reportTaskCreationDate": "string",
- "reportTaskExpectedCompletionDate": "string",
- "reportTaskId": "string",
- "reportTaskStatus": "string",
- "reportTaskStatusMessage": "string",
- "reportType": "string"
}
]
}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.
The container for the fields that define the report task.
| additionalRecords | Array of strings A list of additional records that shall be included in the report, such as non-performing data. |
| campaignIds | Array of strings 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.
|
| dateFrom | string The date defining the start of the timespan covered by the report. |
| dateTo | string The date defining the end of the timespan covered by the report. |
Array of objects (Dimension) 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 | |
| fundingModels | Array of strings The funding model for the campaign that shall be included in the report.
|
Array of objects (InventoryReference) 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. | |
| listingIds | Array of strings Use this field to supply an array of listing IDs you want to include in the report. |
| marketplaceId | string The ID for the eBay marketplace on which the report is based. |
| metricKeys | Array of strings 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 |
| reportFormat | string The file format of the report. Currently, the only supported format is |
| reportType | string The type of report to be generated, such as |
{- "additionalRecords": [
- "string"
], - "campaignIds": [
- "string"
], - "dateFrom": "string",
- "dateTo": "string",
- "dimensions": [
- {
- "annotationKeys": [
- "string"
], - "dimensionKey": "string"
}
], - "fundingModels": [
- "string"
], - "inventoryReferences": [
- {
- "inventoryReferenceId": "string",
- "inventoryReferenceType": "string"
}
], - "listingIds": [
- "string"
], - "marketplaceId": "string",
- "metricKeys": [
- "string"
], - "reportFormat": "string",
- "reportType": "string"
}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.
| report_task_id required | string A unique eBay-assigned ID for the report task that's generated when the report task is created by a call to createReportTask. |
{- "campaignIds": [
- "string"
], - "dateFrom": "string",
- "dateTo": "string",
- "dimensions": [
- {
- "annotationKeys": [
- "string"
], - "dimensionKey": "string"
}
], - "fundingModels": [
- "string"
], - "inventoryReferences": [
- {
- "inventoryReferenceId": "string",
- "inventoryReferenceType": "string"
}
], - "listingIds": [
- "string"
], - "marketplaceId": "string",
- "metricKeys": [
- "string"
], - "reportExpirationDate": "string",
- "reportFormat": "string",
- "reportHref": "string",
- "reportId": "string",
- "reportName": "string",
- "reportTaskCompletionDate": "string",
- "reportTaskCreationDate": "string",
- "reportTaskExpectedCompletionDate": "string",
- "reportTaskId": "string",
- "reportTaskStatus": "string",
- "reportTaskStatusMessage": "string",
- "reportType": "string"
}This call deletes the report task specified by the report_task_id path parameter. This method also deletes any reports generated by the 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.
| report_task_id required | string A unique eBay-assigned ID for the report task that's generated when the report task is created by a call to createReportTask. |
This method creates an item price markdown promotion (know simply as a "markdown promotion") where a discount amount is applied directly to the items included the promotion. Discounts can be specified as either a monetary amount or a percentage off the standard sales price. eBay highlights promoted items by placing teasers for the items throughout the online sales flows.
Unlike an item promotion, a markdown promotion does not require the buyer meet a "threshold" before the offer takes effect. With markdown promotions, all the buyer needs to do is purchase the item to receive the promotion benefit.
Important: There are some restrictions for which listings are available for price markdown promotions. For details, see Promotions Manager requirements and restrictions.
In addition, we recommend you list items at competitive prices before including them in your markdown promotions. For an extensive list of pricing recommendations, see the Growth tab in Seller Hub.
There are two ways to add items to markdown promotions:
New promotions must be created in either a DRAFT or a SCHEDULED state. Use the DRAFT state when you are initially creating a promotion and you want to be sure it's correctly configured before scheduling it to run. When you create a promotion, the promotion ID is returned in the Location response header. Use this ID to reference the promotion in subsequent requests (such as to schedule a promotion that's in a DRAFT state).
Tip: Refer to Promotions Manager in the Selling Integration Guide for details and examples showing how to create and manage seller promotions.
Markdown promotions are available on all eBay marketplaces. For more information, see Promotions Manager requirements and restrictions.
This type defines the fields that describe an item price markdown promotion.
| applyFreeShipping | boolean If set to |
| autoSelectFutureInventory | boolean If set to |
| blockPriceIncreaseInItemRevision | boolean If set to |
| description | string This field is required if you are configuring an MARKDOWN_SALE promotion. Note: Offer-type text is a teaser that's presented throughout the buyer's journey through the sales flow and is generated by eBay. This text is not editable by the seller—it's derived from the settings in the discountRules and discountSpecification fields—and can be, for example, "20% off". Maximum length: 50 |
| endDate | string The date and time the promotion ends, in UTC format (
|
| marketplaceId | string The eBay marketplace ID of the site where the markdown promotion is hosted. Markdown promotions are supported on all eBay marketplaces. For implementation help, refer to eBay API documentation |
| name | string The seller-defined name or 'title' of the promotion that the seller can use to identify a promotion. This label is not displayed in end-user flows. |
| priority | string This field is ignored in markdown promotions. For implementation help, refer to eBay API documentation |
| promotionImageUrl | string Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT promotions, populate this field with a URL that points to an image to be used with the promotion. This image is displayed on the seller's All Offers page. The URL must point to either JPEG or PNG image and it must be a minimum of 500x500 pixels in dimension and cannot exceed 12Mb in size. |
| promotionStatus | string The current status of the promotion. When creating a new promotion, you must set this value to either |
Array of objects (SelectedInventoryDiscount) A list that defines the sets of selected items for the markdown promotion and the discount specified for promotion. | |
| startDate | string The date and time the promotion starts in UTC format ( |
{- "applyFreeShipping": true,
- "autoSelectFutureInventory": true,
- "blockPriceIncreaseInItemRevision": true,
- "description": "string",
- "endDate": "string",
- "marketplaceId": "string",
- "name": "string",
- "priority": "string",
- "promotionImageUrl": "string",
- "promotionStatus": "string",
- "selectedInventoryDiscounts": [
- {
- "discountBenefit": {
- "amountOffItem": {
- "currency": "string",
- "value": "string"
}, - "amountOffOrder": {
- "currency": "string",
- "value": "string"
}, - "percentageOffItem": "string",
- "percentageOffOrder": "string"
}, - "discountId": "string",
- "inventoryCriterion": {
- "inventoryCriterionType": "string",
- "inventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "listingIds": [
- "string"
], - "ruleCriteria": {
- "excludeInventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "excludeListingIds": [
- "string"
], - "markupInventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "markupListingIds": [
- "string"
], - "selectionRules": [
- {
- "brands": [
- "string"
], - "categoryIds": [
- "string"
], - "categoryScope": "string",
- "listingConditionIds": [
- "string"
], - "maxPrice": {
- "currency": "string",
- "value": "string"
}, - "minPrice": {
- "currency": "string",
- "value": "string"
}
}
]
}
}, - "ruleOrder": 0
}
], - "startDate": "string"
}{ }This method returns the complete details of the item price markdown promotion that's indicated by the promotion_id path parameter.
Call getPromotions to retrieve the IDs of a seller's promotions.
| promotion_id required | string This path parameter takes a concatenation of the ID of the promotion you want to get plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@). |
{- "applyFreeShipping": true,
- "autoSelectFutureInventory": true,
- "blockPriceIncreaseInItemRevision": true,
- "description": "string",
- "endDate": "string",
- "marketplaceId": "string",
- "name": "string",
- "priority": "string",
- "promotionImageUrl": "string",
- "promotionStatus": "string",
- "selectedInventoryDiscounts": [
- {
- "discountBenefit": {
- "amountOffItem": {
- "currency": "string",
- "value": "string"
}, - "amountOffOrder": {
- "currency": "string",
- "value": "string"
}, - "percentageOffItem": "string",
- "percentageOffOrder": "string"
}, - "discountId": "string",
- "inventoryCriterion": {
- "inventoryCriterionType": "string",
- "inventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "listingIds": [
- "string"
], - "ruleCriteria": {
- "excludeInventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "excludeListingIds": [
- "string"
], - "markupInventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "markupListingIds": [
- "string"
], - "selectionRules": [
- {
- "brands": [
- "string"
], - "categoryIds": [
- "string"
], - "categoryScope": "string",
- "listingConditionIds": [
- "string"
], - "maxPrice": {
- "currency": "string",
- "value": "string"
}, - "minPrice": {
- "currency": "string",
- "value": "string"
}
}
]
}
}, - "ruleOrder": 0
}
], - "startDate": "string"
}This method updates the specified item price markdown promotion with the new configuration that you supply in the payload of the request. Specify the promotion you want to update using the promotion_id path parameter. Call getPromotions to retrieve the IDs of a seller's promotions.
When updating a promotion, supply all the fields that you used to configure the original promotion (and not just the fields you are updating). eBay replaces the specified promotion with the values you supply in the update request and if you don't pass a field that currently has a value, the update request fails.
The parameters you are allowed to update with this request depend on the status of the promotion you're updating:
| promotion_id required | string This path parameter takes a concatenation of the ID of the promotion you want to update plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@). |
This type defines the fields that describe an item price markdown promotion.
| applyFreeShipping | boolean If set to |
| autoSelectFutureInventory | boolean If set to |
| blockPriceIncreaseInItemRevision | boolean If set to |
| description | string This field is required if you are configuring an MARKDOWN_SALE promotion. Note: Offer-type text is a teaser that's presented throughout the buyer's journey through the sales flow and is generated by eBay. This text is not editable by the seller—it's derived from the settings in the discountRules and discountSpecification fields—and can be, for example, "20% off". Maximum length: 50 |
| endDate | string The date and time the promotion ends, in UTC format (
|
| marketplaceId | string The eBay marketplace ID of the site where the markdown promotion is hosted. Markdown promotions are supported on all eBay marketplaces. For implementation help, refer to eBay API documentation |
| name | string The seller-defined name or 'title' of the promotion that the seller can use to identify a promotion. This label is not displayed in end-user flows. |
| priority | string This field is ignored in markdown promotions. For implementation help, refer to eBay API documentation |
| promotionImageUrl | string Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT promotions, populate this field with a URL that points to an image to be used with the promotion. This image is displayed on the seller's All Offers page. The URL must point to either JPEG or PNG image and it must be a minimum of 500x500 pixels in dimension and cannot exceed 12Mb in size. |
| promotionStatus | string The current status of the promotion. When creating a new promotion, you must set this value to either |
Array of objects (SelectedInventoryDiscount) A list that defines the sets of selected items for the markdown promotion and the discount specified for promotion. | |
| startDate | string The date and time the promotion starts in UTC format ( |
{- "applyFreeShipping": true,
- "autoSelectFutureInventory": true,
- "blockPriceIncreaseInItemRevision": true,
- "description": "string",
- "endDate": "string",
- "marketplaceId": "string",
- "name": "string",
- "priority": "string",
- "promotionImageUrl": "string",
- "promotionStatus": "string",
- "selectedInventoryDiscounts": [
- {
- "discountBenefit": {
- "amountOffItem": {
- "currency": "string",
- "value": "string"
}, - "amountOffOrder": {
- "currency": "string",
- "value": "string"
}, - "percentageOffItem": "string",
- "percentageOffOrder": "string"
}, - "discountId": "string",
- "inventoryCriterion": {
- "inventoryCriterionType": "string",
- "inventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "listingIds": [
- "string"
], - "ruleCriteria": {
- "excludeInventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "excludeListingIds": [
- "string"
], - "markupInventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "markupListingIds": [
- "string"
], - "selectionRules": [
- {
- "brands": [
- "string"
], - "categoryIds": [
- "string"
], - "categoryScope": "string",
- "listingConditionIds": [
- "string"
], - "maxPrice": {
- "currency": "string",
- "value": "string"
}, - "minPrice": {
- "currency": "string",
- "value": "string"
}
}
]
}
}, - "ruleOrder": 0
}
], - "startDate": "string"
}{ }This method deletes the item price markdown promotion specified by the promotion_id path parameter. Call getPromotions to retrieve the IDs of a seller's promotions.
You can delete any promotion with the exception of those that are currently active (RUNNING). To end a running promotion, call updateItemPriceMarkdownPromotion and adjust the endDate field as appropriate.
| promotion_id required | string This path parameter takes a concatenation of the ID of the promotion you want to delete plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@). |
This method creates an item promotion, where the buyer receives a discount when they meet the buying criteria that's set for the promotion. Known here as "threshold promotions", these promotions trigger when a threshold is met.
eBay highlights promoted items by placing teasers for the promoted items throughout the online buyer flows.
Discounts are specified as either a monetary amount or a percentage off the standard sales price of a listing, letting you offer deals such as "Buy 1 Get 1" and "Buy $50, get 20% off".
Volume pricing promotions increase the value of the discount as the buyer increases the quantity they purchase.
Coded Coupons provide unique codes that a buyer can use during checkout to receive a discount. The seller can specify the number of times a buyer can use the coupon and the maximum amount across all purchases that can be discounted using the coupon. The coupon code can also be made public (appearing on the seller's Offer page, search pages, the item listing, and the checkout page) or private (only on the seller's Offer page, but the seller can include the code in email and social media).
Note: Coded Coupons are currently available in the US, UK, DE, FR, IT, ES, and AU marketplaces.
There are two ways to add items to a threshold promotion:
You must create a new promotion in either a DRAFT or SCHEDULED state. Use the DRAFT state when you are initially creating a promotion and you want to be sure it's correctly configured before scheduling it to run. When you create a promotion, the promotion ID is returned in the Location response header. Use this ID to reference the promotion in subsequent requests.
Tip: Refer to the Selling Integration Guide for details and examples showing how to create and manage threshold promotions using the Promotions Manager.
For information on the eBay marketplaces that support item promotions, see Promotions Manager requirements and restrictions.
This type defines the fields that describe an item promotion.
| applyDiscountToSingleItemOnly | boolean This flag is relevant in only when promotionType is set to |
object (Amount) A complex type that describes the value of a monetary amount as represented by a global currency. | |
object (CouponConfiguration) This container defines a coded coupon promotion. It is required if the promotion type is CODED_COUPON. | |
| description | string This is the seller-defined "tag line" for the offer, such as "Save on designer shoes." Note: Offer-type text is a teaser that's presented throughout the buyer's journey through the sales flow and is generated by eBay. The offer-type text is not editable by the seller—it's derived from the settings in the discountRules and discountSpecification fields—and can be, for example, "Extra 20% off when you buy 3+". Maximum length: 50 Required if you are configuring CODED_COUPON, ORDER_DISCOUNT, or MARKDOWN_SALE promotions (and not valid for VOLUME_DISCOUNT promotions). |
Array of objects (DiscountRule) This container defines a promotion using the following two required fields:
Note: For volume pricing, you must specify at least two and not more than four discountBenefit/discountSpecification pairs. In addition, you must define each set of rules with a ruleOrder value that corresponds with the order of volume discounts you present. Tip: Refer to Specifying item promotion discounts for information and examples on how to combine discountBenefit and discountSpecification to create different types of promotions. | |
| endDate | string The date and time the promotion ends in UTC format ( |
object (InventoryCriterion) This type defines either the selections rules or the list of listing IDs for the promotion. The "listing IDs" are are either the seller's item IDs or the eBay listing IDs. | |
| marketplaceId | string The eBay marketplace ID of the site where the threshold promotion is hosted. Threshold promotions are currently supported on a limited number of eBay marketplaces. Valid values:
|
| name | string The seller-defined name or "title" of the promotion that the seller can use to identify a promotion. This label is not displayed in end-user flows. |
| priority | string Applicable for only ORDER_DISCOUNT promotions, this field indicates the precedence of the promotion, which is used to determine the position of a promotion on the seller's All Offers page. If an item is associated with multiple promotions, the promotion with the higher priority takes precedence. For implementation help, refer to eBay API documentation |
| promotionImageUrl | string Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT promotions, and not valid for VOLUME_DISCOUNT promotions. |
| promotionStatus | string The current status of the promotion. When creating a new promotion, this value must be set to either |
| promotionType | string Use this field to specify the type of the promotion you are creating. The supported types are:
See the Promotions Manager documentation for details. Required if you are creating a volume pricing promotion ( |
| startDate | string The date and time the promotion starts in UTC format ( |
{- "applyDiscountToSingleItemOnly": true,
- "budget": {
- "currency": "string",
- "value": "string"
}, - "couponConfiguration": {
- "couponCode": "string",
- "couponType": "string",
- "maxCouponRedemptionPerUser": 0
}, - "description": "string",
- "discountRules": [
- {
- "discountBenefit": {
- "amountOffItem": {
- "currency": "string",
- "value": "string"
}, - "amountOffOrder": {
- "currency": "string",
- "value": "string"
}, - "percentageOffItem": "string",
- "percentageOffOrder": "string"
}, - "discountSpecification": {
- "forEachAmount": {
- "currency": "string",
- "value": "string"
}, - "forEachQuantity": 0,
- "minAmount": {
- "currency": "string",
- "value": "string"
}, - "minQuantity": 0,
- "numberOfDiscountedItems": 0
}, - "maxDiscountAmount": {
- "currency": "string",
- "value": "string"
}, - "ruleOrder": 0
}
], - "endDate": "string",
- "inventoryCriterion": {
- "inventoryCriterionType": "string",
- "inventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "listingIds": [
- "string"
], - "ruleCriteria": {
- "excludeInventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "excludeListingIds": [
- "string"
], - "markupInventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "markupListingIds": [
- "string"
], - "selectionRules": [
- {
- "brands": [
- "string"
], - "categoryIds": [
- "string"
], - "categoryScope": "string",
- "listingConditionIds": [
- "string"
], - "maxPrice": {
- "currency": "string",
- "value": "string"
}, - "minPrice": {
- "currency": "string",
- "value": "string"
}
}
]
}
}, - "marketplaceId": "string",
- "name": "string",
- "priority": "string",
- "promotionImageUrl": "string",
- "promotionStatus": "string",
- "promotionType": "string",
- "startDate": "string"
}{- "warnings": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
]
}This method returns the complete details of the threshold promotion specified by the promotion_id path parameter. Call getPromotions to retrieve the IDs of a seller's promotions.
| promotion_id required | string This path parameter takes a concatenation of the ID of the promotion you want to retrieve plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@). |
{- "applyDiscountToSingleItemOnly": true,
- "budget": {
- "currency": "string",
- "value": "string"
}, - "couponConfiguration": {
- "couponCode": "string",
- "couponType": "string",
- "maxCouponRedemptionPerUser": 0
}, - "description": "string",
- "discountRules": [
- {
- "discountBenefit": {
- "amountOffItem": {
- "currency": "string",
- "value": "string"
}, - "amountOffOrder": {
- "currency": "string",
- "value": "string"
}, - "percentageOffItem": "string",
- "percentageOffOrder": "string"
}, - "discountSpecification": {
- "forEachAmount": {
- "currency": "string",
- "value": "string"
}, - "forEachQuantity": 0,
- "minAmount": {
- "currency": "string",
- "value": "string"
}, - "minQuantity": 0,
- "numberOfDiscountedItems": 0
}, - "maxDiscountAmount": {
- "currency": "string",
- "value": "string"
}, - "ruleOrder": 0
}
], - "endDate": "string",
- "inventoryCriterion": {
- "inventoryCriterionType": "string",
- "inventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "listingIds": [
- "string"
], - "ruleCriteria": {
- "excludeInventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "excludeListingIds": [
- "string"
], - "markupInventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "markupListingIds": [
- "string"
], - "selectionRules": [
- {
- "brands": [
- "string"
], - "categoryIds": [
- "string"
], - "categoryScope": "string",
- "listingConditionIds": [
- "string"
], - "maxPrice": {
- "currency": "string",
- "value": "string"
}, - "minPrice": {
- "currency": "string",
- "value": "string"
}
}
]
}
}, - "marketplaceId": "string",
- "name": "string",
- "priority": "string",
- "promotionId": "string",
- "promotionImageUrl": "string",
- "promotionStatus": "string",
- "promotionType": "string",
- "startDate": "string"
}This method updates the specified threshold promotion with the new configuration that you supply in the request. Indicate the promotion you want to update using the promotion_id path parameter.
Call getPromotions to retrieve the IDs of a seller's promotions.
When updating a promotion, supply all the fields that you used to configure the original promotion (and not just the fields you are updating). eBay replaces the specified promotion with the values you supply in the update request and if you don't pass a field that currently has a value, the update request will fail.
The parameters you are allowed to update with this request depend on the status of the promotion you're updating:
Tip: When updating a RUNNING or PAUSED promotion, set the status field to SCHEDULED for the update request. When the promotion is updated, the previous status (either RUNNING or PAUSED) is retained.
| promotion_id required | string This path parameter takes a concatenation of the ID of the promotion you want to update plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@). |
This type defines the fields that describe an item promotion.
| applyDiscountToSingleItemOnly | boolean This flag is relevant in only when promotionType is set to |
object (Amount) A complex type that describes the value of a monetary amount as represented by a global currency. | |
object (CouponConfiguration) This container defines a coded coupon promotion. It is required if the promotion type is CODED_COUPON. | |
| description | string This is the seller-defined "tag line" for the offer, such as "Save on designer shoes." Note: Offer-type text is a teaser that's presented throughout the buyer's journey through the sales flow and is generated by eBay. The offer-type text is not editable by the seller—it's derived from the settings in the discountRules and discountSpecification fields—and can be, for example, "Extra 20% off when you buy 3+". Maximum length: 50 Required if you are configuring CODED_COUPON, ORDER_DISCOUNT, or MARKDOWN_SALE promotions (and not valid for VOLUME_DISCOUNT promotions). |
Array of objects (DiscountRule) This container defines a promotion using the following two required fields:
Note: For volume pricing, you must specify at least two and not more than four discountBenefit/discountSpecification pairs. In addition, you must define each set of rules with a ruleOrder value that corresponds with the order of volume discounts you present. Tip: Refer to Specifying item promotion discounts for information and examples on how to combine discountBenefit and discountSpecification to create different types of promotions. | |
| endDate | string The date and time the promotion ends in UTC format ( |
object (InventoryCriterion) This type defines either the selections rules or the list of listing IDs for the promotion. The "listing IDs" are are either the seller's item IDs or the eBay listing IDs. | |
| marketplaceId | string The eBay marketplace ID of the site where the threshold promotion is hosted. Threshold promotions are currently supported on a limited number of eBay marketplaces. Valid values:
|
| name | string The seller-defined name or "title" of the promotion that the seller can use to identify a promotion. This label is not displayed in end-user flows. |
| priority | string Applicable for only ORDER_DISCOUNT promotions, this field indicates the precedence of the promotion, which is used to determine the position of a promotion on the seller's All Offers page. If an item is associated with multiple promotions, the promotion with the higher priority takes precedence. For implementation help, refer to eBay API documentation |
| promotionImageUrl | string Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT promotions, and not valid for VOLUME_DISCOUNT promotions. |
| promotionStatus | string The current status of the promotion. When creating a new promotion, this value must be set to either |
| promotionType | string Use this field to specify the type of the promotion you are creating. The supported types are:
See the Promotions Manager documentation for details. Required if you are creating a volume pricing promotion ( |
| startDate | string The date and time the promotion starts in UTC format ( |
{- "applyDiscountToSingleItemOnly": true,
- "budget": {
- "currency": "string",
- "value": "string"
}, - "couponConfiguration": {
- "couponCode": "string",
- "couponType": "string",
- "maxCouponRedemptionPerUser": 0
}, - "description": "string",
- "discountRules": [
- {
- "discountBenefit": {
- "amountOffItem": {
- "currency": "string",
- "value": "string"
}, - "amountOffOrder": {
- "currency": "string",
- "value": "string"
}, - "percentageOffItem": "string",
- "percentageOffOrder": "string"
}, - "discountSpecification": {
- "forEachAmount": {
- "currency": "string",
- "value": "string"
}, - "forEachQuantity": 0,
- "minAmount": {
- "currency": "string",
- "value": "string"
}, - "minQuantity": 0,
- "numberOfDiscountedItems": 0
}, - "maxDiscountAmount": {
- "currency": "string",
- "value": "string"
}, - "ruleOrder": 0
}
], - "endDate": "string",
- "inventoryCriterion": {
- "inventoryCriterionType": "string",
- "inventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "listingIds": [
- "string"
], - "ruleCriteria": {
- "excludeInventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "excludeListingIds": [
- "string"
], - "markupInventoryItems": [
- {
- "inventoryReferenceId": "string"
}
], - "markupListingIds": [
- "string"
], - "selectionRules": [
- {
- "brands": [
- "string"
], - "categoryIds": [
- "string"
], - "categoryScope": "string",
- "listingConditionIds": [
- "string"
], - "maxPrice": {
- "currency": "string",
- "value": "string"
}, - "minPrice": {
- "currency": "string",
- "value": "string"
}
}
]
}
}, - "marketplaceId": "string",
- "name": "string",
- "priority": "string",
- "promotionImageUrl": "string",
- "promotionStatus": "string",
- "promotionType": "string",
- "startDate": "string"
}{- "warnings": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
]
}This method deletes the threshold promotion specified by the promotion_id path parameter. Call getPromotions to retrieve the IDs of a seller's promotions.
You can delete any promotion with the exception of those that are currently active (RUNNING). To end a running threshold promotion, call updateItemPromotion and adjust the endDate field as appropriate.
| promotion_id required | string This path parameter takes a concatenation of the ID of the promotion you want to delete plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@). |
This method returns the set of listings associated with the promotion_id specified in the path parameter. Call getPromotions to retrieve the IDs of a seller's promotions.
The listing details are returned in a paginated set and you can control and results returned using the following query parameters: limit, offset, q, sort, and status.
| promotion_id required | string This path parameter takes a concatenation of the ID of the promotion you want to get plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@). |
| limit | string Specifies the maximum number of promotions returned on a page from the result set. |
| offset | string Specifies the number of promotions to skip in the result set before returning the first promotion in the paginated response. Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of Default: 0 |
| q | string Reserved for future use. |
| sort | string Specifies the order in which to sort the associated listings in the response. If you precede the supplied value with a dash, the response is sorted in reverse order.
|
| status | string This query parameter applies only to markdown promotions. It filters the response based on the indicated status of the promotion. Currently, the only supported value for this parameter is |
{- "href": "string",
- "limit": 0,
- "listings": [
- {
- "currentPrice": {
- "currency": "string",
- "value": "string"
}, - "freeShipping": true,
- "inventoryReferenceId": "string",
- "inventoryReferenceType": "string",
- "listingCategoryId": "string",
- "listingCondition": "string",
- "listingConditionId": "string",
- "listingId": "string",
- "listingPromotionStatuses": [
- {
- "listingMarkdownStatus": "string",
- "statusChangedDate": "string",
- "statusMessage": "string"
}
], - "quantity": 0,
- "storeCategoryId": "string",
- "title": "string"
}
], - "next": "string",
- "offset": 0,
- "prev": "string",
- "total": 0,
- "warnings": [
- {
- "category": "string",
- "domain": "string",
- "errorId": 0,
- "inputRefIds": [
- "string"
], - "longMessage": "string",
- "message": "string",
- "outputRefIds": [
- "string"
], - "parameters": [
- {
- "name": "string",
- "value": "string"
}
], - "subdomain": "string"
}
]
}This method returns a list of a seller's undeleted promotions.
The call returns up to 200 currently-available promotions on the specified marketplace. While the response body does not include the promotion's discountRules or inventoryCriterion containers, it does include the promotionHref (which you can use to retrieve the complete details of the promotion).
Use query parameters to sort and filter the results by the number of promotions to return, the promotion state or type, and the eBay marketplace. You can also supply keywords to limit the response to the promotions that contain that keywords in the title of the promotion.
Maximum returned: 200
| limit | string Specifies the maximum number of promotions returned on a page from the result set. |
| marketplace_id required | string The eBay marketplace ID of the site where the promotion is hosted. Valid values:
|
| offset | string Specifies the number of promotions to skip in the result set before returning the first promotion in the paginated response. Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of Default: 0 |
| promotion_status | string Specifies the promotion state by which you want to filter the results. The response contains only those promotions that match the state you specify.
|
| promotion_type | string Filters the returned promotions based on their campaign promotion type. Specify one of the following values to indicate the promotion type you want returned:
|
| q | string A string consisting of one or more keywords. eBay filters the response by returning only the promotions that contain the supplied keywords in the promotion title. |
| sort | string Specifies the order for how to sort the response. If you precede the supplied value with a dash, the response is sorted in reverse order.
|
{- "href": "string",
- "limit": 0,
- "next": "string",
- "offset": 0,
- "prev": "string",
- "promotions": [
- {
- "couponCode": "string",
- "description": "string",
- "endDate": "string",
- "marketplaceId": "string",
- "name": "string",
- "priority": "string",
- "promotionHref": "string",
- "promotionId": "string",
- "promotionImageUrl": "string",
- "promotionStatus": "string",
- "promotionType": "string",
- "startDate": "string"
}
], - "total": 0
}This method pauses a currently-active (RUNNING) threshold promotion and changes the state of the promotion from RUNNING to PAUSED. Pausing a promotion makes the promotion temporarily unavailable to buyers and any currently-incomplete transactions will not receive the promotional offer until the promotion is resumed. Also, promotion teasers are not displayed when a promotion is paused.
Pass the ID of the promotion you want to pause using the promotion_id path parameter. Call getPromotions to retrieve the IDs of the seller's promotions.
Note: You can only pause threshold promotions (you cannot pause markdown promotions).
| promotion_id required | string This path parameter takes a concatenation of the ID of the promotion you want to pause plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@). |
This method restarts a threshold promotion that was previously paused and changes the state of the promotion from PAUSED to RUNNING. Only promotions that have been previously paused can be resumed. Resuming a promotion reinstates the promotional teasers and any transactions that were in motion before the promotion was paused will again be eligible for the promotion.
Pass the ID of the promotion you want to resume using the promotion_id path parameter. Call getPromotions to retrieve the IDs of the seller's promotions.
| promotion_id required | string This path parameter takes a concatenation of the ID of the promotion you want to resume plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@). |
This method generates a report that lists the seller's running, paused, and ended promotions for the specified eBay marketplace. The result set can be filtered by the promotion status and the number of results to return. You can also supply keywords to limit the report to promotions that contain the specified keywords.
Specify the eBay marketplace for which you want the report run using the marketplace_id query parameter. Supply additional query parameters to control the report as needed.
| limit | string Specifies the maximum number of promotions returned on a page from the result set. |
| marketplace_id required | string The eBay marketplace ID of the site for which you want the promotions report. Valid values:
|
| offset | string Specifies the number of promotions to skip in the result set before returning the first promotion in the paginated response. Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of Default: 0 |
| promotion_status | string Limits the results to the promotions that are in the state specified by this query parameter.
|
| promotion_type | string Filters the returned promotions in the report based on their campaign promotion type. Specify one of the following values to indicate the promotion type you want returned in the report:
|
| q | string A string consisting of one or more keywords. eBay filters the response by returning only the promotions that contain the supplied keywords in the promotion title. |
{- "href": "string",
- "limit": 0,
- "next": "string",
- "offset": 0,
- "prev": "string",
- "promotionReports": [
- {
- "averageItemDiscount": {
- "currency": "string",
- "value": "string"
}, - "averageItemRevenue": {
- "currency": "string",
- "value": "string"
}, - "averageOrderDiscount": {
- "currency": "string",
- "value": "string"
}, - "averageOrderRevenue": {
- "currency": "string",
- "value": "string"
}, - "averageOrderSize": "string",
- "baseSale": {
- "currency": "string",
- "value": "string"
}, - "itemsSoldQuantity": 0,
- "numberOfOrdersSold": 0,
- "percentageSalesLift": "string",
- "promotionHref": "string",
- "promotionId": "string",
- "promotionReportId": "string",
- "promotionSale": {
- "currency": "string",
- "value": "string"
}, - "promotionType": "string",
- "totalDiscount": {
- "currency": "string",
- "value": "string"
}, - "totalSale": {
- "currency": "string",
- "value": "string"
}
}
], - "total": 0
}This method generates a report that summarizes the seller's promotions for the specified eBay marketplace. The report returns information on RUNNING, PAUSED, and ENDED promotions (deleted reports are not returned) and summarizes the seller's campaign performance for all promotions on a given site.
For information about summary reports, see Reading the item promotion Summary report.
| marketplace_id required | string The eBay marketplace ID of the site you for which you want a promotion summary report. Valid values:
|
{- "baseSale": {
- "currency": "string",
- "value": "string"
}, - "lastUpdated": "string",
- "percentageSalesLift": "string",
- "promotionSale": {
- "currency": "string",
- "value": "string"
}, - "totalSale": {
- "currency": "string",
- "value": "string"
}
}