{
  "openapi": "3.1.0",
  "info": {
    "title": "Marketing API",
    "description": "<p>The <i>Marketing API </i> offers two platforms that sellers can use to promote and advertise their products:</p> <ul><li><b>Promoted Listings</b> is an eBay ad service that lets sellers set up <i>ad campaigns </i> for the products they want to promote. eBay displays the ads in search results and in other marketing modules as <b>SPONSORED</b> listings. If an item in a Promoted Listings campaign sells, the seller is assessed a Promoted Listings fee, which is a seller-specified percentage applied to the sales price. For complete details, refer to the <a href=\"/api-docs/sell/static/marketing/pl-landing.html\">Promoted Listings playbook</a>.</li><li><b>Promotions Manager</b> gives sellers a way to offer discounts on specific items as a way to attract buyers to their inventory. Sellers can set up discounts (such as \"20% off\" and other types of offers) on specific items or on an entire customer order. To further attract buyers, eBay prominently displays promotion <i>teasers</i> throughout buyer flows. For complete details, see <a href=\"/api-docs/sell/static/marketing/promotions-manager.html\">Promotions Manager</a>.</li></ul>  <p><b>Marketing reports</b>, 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.</p><p><b>Store Email Campaign</b> allows sellers to create and send email campaigns to customers who have signed up to receive their newsletter. For more information on email campaigns, see <a href=\"/api-docs/sell/static/marketing/store-email-campaigns.html#email-campain-types\" target=\"_blank\">Store Email Campaigns</a>.<p class=\"tablenote\"><b>Important!</b> Sellers must have an active eBay Store subscription, and they must accept the <b>Terms and Conditions</b> 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 <a href=\"/api-docs/sell/marketing/static/overview.html#PL-requirements\">Promoted Listings</a> and <a href=\"/api-docs/sell/marketing/static/overview.html#PM-requirements\">Promotions Manager</a>.</p> <p>The table below lists all the Marketing API calls grouped by resource.</p>",
    "contact": {
      "name": "eBay Inc,"
    },
    "license": {
      "name": "eBay API License Agreement",
      "url": "https://developer.ebay.com/join/api-license-agreement"
    },
    "version": "v1.24.1"
  },
  "servers": [
    {
      "url": "https://api.ebay.com{basePath}",
      "description": "Production",
      "variables": {
        "basePath": {
          "default": "/sell/marketing/v1"
        }
      }
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/ad_campaign/{campaign_id}/bulk_create_ads_by_inventory_reference": {
      "post": {
        "tags": [
          "ad"
        ],
        "description": "This method adds multiple listings that are managed with the <a href=\"/api-docs/sell/inventory/resources/methods\" title=\"Inventory API Reference\" target=\"_blank\">Inventory API</a> to an existing Promoted Listings campaign.<br /><br />For general strategy campaigns using the Cost Per Sale (CPS) model, bulk ads may be directly created for the listing.<br /><br />For each listing specified in the request, this method:<br /><ul><li>Creates an ad for the listing.</li> <li>Sets the bid percentage (also known as the <i>ad rate</i>) for the ads created.</li> <li>Associates the ads created with the specified campaign.</li></ul><br />To create ads for a listing, specify their <b>inventoryReferenceId</b> and <b>inventoryReferenceType</b>, plus the <b>bidPercentage</b> for the ad in the payload of the request. Specify the campaign to which you want to associate the ads using the <b>campaign_id</b> path parameter.<br /><br /><span class=\"tablenote\"><b>Note:</b> 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 <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br />Use <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-createcampaign\">createCampaign</a> to create a new campaign and use <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to get a list of existing campaigns.",
        "operationId": "bulkCreateAdsByInventoryReference",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to associated the ads being created.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "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.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the bulk request to create ads for eBay inventory reference IDs. eBay inventory reference IDs are seller-defined IDs used by the Inventory API.",
                "$ref": "#/components/schemas/BulkCreateAdsByInventoryReferenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateAdsByInventoryReferenceResponse"
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateAdsByInventoryReferenceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35007": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' {bidPercentage} is not valid. The bid percentage should be a single precision value. Minimum value: {minBidPercent} , Maximum value:{maxBidPercent}."
                },
                "35010": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The bidPercentage should not be provided when selected adRateStrategy is DYNAMIC for the campaign."
                },
                "35012": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The inventory reference ID {inventoryReferenceId} is not valid."
                },
                "35018": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "There are duplicate listing IDs or inventoryReference IDs in this request. You must remove the duplicate."
                },
                "35033": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one request is required for bulk requests."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35040": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The inventory reference type is not valid. Valid values are: {inventoryReferenceTypeValues}."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36106": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'adGroupId' is not supported for CPS funding model."
                },
                "36108": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'adGroupId' is required for CPC funding model."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No adgroup found for adgroup id {ad_group_id}."
                },
                "36219": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The ad group with ad group id {ad_group_id} has been archived."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35071": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs or inventory reference IDs. Only {maxSupportedNumber} IDs are supported per call."
                },
                "35072": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "InventoryReferenceId {inventoryReferenceId} is not eligible for Promoted Listings because it is a variation and variations can only be promoted using the parent ID to which it belongs. Replace this ID with the InventoryReferenceId of the parent and set 'inventoryReferenceType' to 'INVENTORY_ITEM_GROUP'."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/bulk_create_ads_by_listing_id": {
      "post": {
        "tags": [
          "ad"
        ],
        "description": "This method adds multiple listings to an existing Promoted Listings campaign using <b>listingId</b> values generated by the <a href=\"/Devzone/XML/docs/Reference/eBay/index.html\" title=\"Trading API Reference\" target=\"_blank\">Trading API</a> or <a href=\"/api-docs/sell/inventory/resources/methods\" title=\"Inventory API Reference\" target=\"_blank\">Inventory API</a>, or using values generated by an ad group ID.<p>For general strategy campaigns using the Cost Per Sale (CPS) funding model, bulk ads may be directly created for the listing.</p><p>For each listing ID specified in the request, this method:</p>  <ul><li>Creates an ad for the listing.</li> <li>Sets the bid percentage (also known as the <i>ad rate</i>) for the ad.</li> <li>Associates the ad with the specified campaign.</li></ul><p>To create an ad for a listing, specify its <b>listingId</b>, plus the <b>bidPercentage</b> for the ad in the payload of the request. Specify the campaign to associate the ads with using the <b>campaign_id</b> path parameter. Listing IDs are generated by eBay when a seller creates listings with the Trading API.</p><p>You can specify a maximum of <b>500 listings per call</b> 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.</p><p>For manual targeting priority strategy 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.<br><br><span class=\"tablenote\"><b>Note:</b> Ad groups are not required when adding listings to a smart targeting campaign.</span></p><p>For the ad group specified in the request, this method associates the ad with the specified ad group.</p><p>To create an ad for an ad group, specify the name of the ad group plus the <b>defaultBid</b> for the ad in the payload of the request. Specify the campaign to associate the ads with using the <b>campaign_id</b> path parameter. Ad groups are generated using the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-createadgroup\">createAdGroup</a>  method.</p> <p>You can specify one or more ad groups per campaign.</p><p>Use <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-createcampaign\">createCampaign</a> to create a new campaign and use <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to get a list of existing campaigns.</p>",
        "operationId": "bulkCreateAdsByListingId",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to associated the ads being created.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "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.",
          "content": {
            "application/json": {
              "schema": {
                "description": "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.",
                "$ref": "#/components/schemas/BulkCreateAdRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkAdResponse"
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkAdResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35007": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' {bidPercentage} is not valid. The bid percentage should be a single precision value. Minimum value: {minBidPercent} , Maximum value:{maxBidPercent}."
                },
                "35010": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The bidPercentage should not be provided when selected adRateStrategy is DYNAMIC for the campaign."
                },
                "35013": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is not valid."
                },
                "35014": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing Id is required for this call."
                },
                "35018": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "There are duplicate listing IDs or inventoryReference IDs in this request. You must remove the duplicate."
                },
                "35033": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one request is required for bulk requests."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35036": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "An ad for listing ID {listingId} already exists."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35048": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is invalid or has ended."
                },
                "35080": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' is not supported for CPC funding model."
                },
                "36106": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'adGroupId' is not supported for CPS funding model."
                },
                "36108": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'adGroupId' is required for CPC funding model."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                },
                "36412": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Campaigns where the 'campaignTargetingType' is 'SMART' do not support ad groups. Please remove the {adGroupFieldName} and try again."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35052": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId} is not supported by the Promoted Listing service for multi-quantity listings."
                },
                "35054": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} was created on a different marketplace than the campaign. The listing and campaign must reside on the same marketplace."
                },
                "35057": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} does not belong to the seller making this call."
                },
                "35058": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} is not a fixed price item. This is a requirement for a promoted listing."
                },
                "35059": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} is not a multi-quantity item. This is a requirement for a promoted listing."
                },
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35068": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs. Only {maxSupportedNumber} listings are supported per call."
                },
                "35071": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs or inventory reference IDs. Only {maxSupportedNumber} IDs are supported per call."
                },
                "35075": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId} is not supported by the Promoted Listing service for single-quantity listings."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "36152": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'bidPercentage' is not supported for CPC funding model."
                },
                "36221": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of ads supported in a ad group with this request. Only {maxItemsLimit} ads are allowed per ad group."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/bulk_delete_ads_by_inventory_reference": {
      "post": {
        "tags": [
          "ad"
        ],
        "description": "This method works with listings created with the <a href=\"/api-docs/sell/inventory/resources/methods\" title=\"Inventory API Reference\" target=\"_blank\">Inventory API</a>.<br /><br />The method deletes a set of ads, as specified by a list of inventory reference IDs, from the specified campaign. <i>Inventory reference IDs</i> are seller-defined IDs that are used with the Inventory API</a>.<br /><br />Pass the <b>campaign_id</b> as a path parameter and populate the payload with a list of <b>inventoryReferenceId</b> and <b>inventoryReferenceType</b> pairs that you want to delete.<br /><br />Get the campaign IDs for a seller by calling <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> and call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getads\">getAds</a> to get a list of the seller's inventory reference IDs.<br /><br /><span class=\"tablenote\"><b>Note:</b> 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 <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span>",
        "operationId": "bulkDeleteAdsByInventoryReference",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to delete a set of ads.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This request works with listings created via the <a href=\"/api-docs/sell/inventory/resources/methods\" target=\"_blank\">Inventory API</a>.<br /><br />The request is to delete a set of ads in bulk, as specified by a list of inventory reference IDs from the specified campaign.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This request works with listings created via the <a href=\"/api-docs/sell/inventory/resources/methods\" target=\"_blank\">Inventory API</a>.<br /><br />The request is to delete a set of ads in bulk, as specified by a list of inventory reference IDs from the specified campaign.",
                "$ref": "#/components/schemas/BulkDeleteAdsByInventoryReferenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkDeleteAdsByInventoryReferenceResponse"
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkDeleteAdsByInventoryReferenceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35007": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' {bidPercentage} is not valid. The bid percentage should be a single precision value. Minimum value: {minBidPercent} , Maximum value:{maxBidPercent}."
                },
                "35012": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The inventory reference ID {inventoryReferenceId} is not valid."
                },
                "35018": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "There are duplicate listing IDs or inventoryReference IDs in this request. You must remove the duplicate."
                },
                "35033": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one request is required for bulk requests."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35040": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The inventory reference type is not valid. Valid values are: {inventoryReferenceTypeValues}."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36101": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This functionality is not supported for the CPC funding model."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35071": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs or inventory reference IDs. Only {maxSupportedNumber} IDs are supported per call."
                },
                "35072": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "InventoryReferenceId {inventoryReferenceId} is not eligible for Promoted Listings because it is a variation and variations can only be promoted using the parent ID to which it belongs. Replace this ID with the InventoryReferenceId of the parent and set 'inventoryReferenceType' to 'INVENTORY_ITEM_GROUP'"
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/bulk_delete_ads_by_listing_id": {
      "post": {
        "tags": [
          "ad"
        ],
        "description": "This method works with listing IDs created with either the <a href=\"/Devzone/XML/docs/Reference/eBay/index.html\" title=\"Trading API Reference\" target=\"_blank\">Trading API</a> or the <a href=\"/api-docs/sell/inventory/resources/methods\" title=\"Inventory API Reference\" target=\"_blank\">Inventory API</a>.<br /><br />The method deletes a set of ads, as specified by a list of <b>listingID</b> 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.<br /><br />Pass the <b>campaign_id</b> as a path parameter and populate the payload with the set of listing IDs that you want to delete.<br /><br />Get the campaign IDs for a seller by calling <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> and call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getads\">getAds</a> to get a list of the seller's inventory reference IDs.<br /><br /><span class=\"tablenote\"><b>Note:</b> 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 <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br />When using the CPC funding model, use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-bulkupdateadsbidbylistingid\">bulkUpdateAdsStatusByListingId</a> method to change the status of ads to <code>ARCHIVED</code>.",
        "operationId": "bulkDeleteAdsByListingId",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the eBay-assigned identifier of the ad campaign for which to delete a set of ads.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This request object defines the fields for the <b>bulkDeleteAdsByListingId</b> request.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This request object defines the fields for the <b>bulkDeleteAdsByListingId</b> request.",
                "$ref": "#/components/schemas/BulkDeleteAdRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkDeleteAdResponse"
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkDeleteAdResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35013": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is not valid."
                },
                "35014": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID is required for this call."
                },
                "35018": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "There are duplicate listing IDs or inventoryReference IDs in this request. You must remove the duplicate."
                },
                "35033": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one request is required for bulk requests."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35040": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The inventory reference type is not valid. Valid values are: {inventoryReferenceTypeValues}."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36101": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This functionality is not supported for the CPC funding model."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35071": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs or inventory reference IDs. Only {maxSupportedNumber} IDs are supported per call."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/bulk_update_ads_bid_by_inventory_reference": {
      "post": {
        "tags": [
          "ad"
        ],
        "description": "This method works with listings created with either the <a href=\"/Devzone/XML/docs/Reference/eBay/index.html\" title=\"Trading API Reference\" target=\"_blank\">Trading API</a> or the <a href=\"/api-docs/sell/inventory/resources/methods\" title=\"Inventory API Reference\" target=\"_blank\">Inventory API</a>.  <p>The method updates the <b>bidPercentage</b> values for a set of ads associated with the specified campaign.</p>  <p>Specify the <b>campaign_id</b> as a path parameter and supply a set of listing IDs with their associated updated <b>bidPercentage</b> values in the request body. An eBay listing ID is generated when a listing is created with the Trading API.</p>  <p>Get the campaign IDs for a seller by calling <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> and call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getads\">getAds</a> to get a list of the seller's inventory reference IDs.</p><span class=\"tablenote\"><b>Note:</b> 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 <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span>",
        "operationId": "bulkUpdateAdsBidByInventoryReference",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to update the bid percentage for a set of ads.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This request object defines the fields for the <b>BulkCreateAdsByInventoryReference</b> request.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This request object defines the fields for the <b>BulkCreateAdsByInventoryReference</b> request.",
                "$ref": "#/components/schemas/BulkCreateAdsByInventoryReferenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkUpdateAdsByInventoryReferenceResponse"
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkUpdateAdsByInventoryReferenceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35007": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' {bidPercentage} is not valid. The bid percentage should be a single precision value. Minimum value: {minBidPercent} , Maximum value:{maxBidPercent}."
                },
                "35012": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The inventory reference ID {inventoryReferenceId} is not valid."
                },
                "35018": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "There are duplicate listing IDs or inventoryReference IDs in this request. You must remove the duplicate."
                },
                "35033": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one request is required for bulk requests."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35040": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The inventory reference type is not valid. Valid values are: {inventoryReferenceTypeValues}."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36101": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This functionality is not supported for the CPC funding model."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35071": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs or inventory reference IDs. Only {maxSupportedNumber} IDs are supported per call."
                },
                "35072": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "InventoryReferenceId {inventoryReferenceId} is not eligible for Promoted Listings because it is a variation and variations can only be promoted using the parent ID to which it belongs. Replace this ID with the InventoryReferenceId of the parent and set 'inventoryReferenceType' to 'INVENTORY_ITEM_GROUP'"
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35113": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is not supported when selected adRateStrategy is DYNAMIC for the campaign."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/bulk_update_ads_bid_by_listing_id": {
      "post": {
        "tags": [
          "ad"
        ],
        "description": "This method works with listings created with either the <a href=\"/Devzone/XML/docs/Reference/eBay/index.html\" title=\"Trading API Reference\" target=\"_blank\">Trading API</a> or the <a href=\"/api-docs/sell/inventory/resources/methods\" title=\"Inventory API Reference\" target=\"_blank\">Inventory API</a>.  <p>The method updates the <b>bidPercentage</b> values for a set of ads associated with the specified campaign.</p>  <p>Specify the <b>campaign_id</b> as a path parameter and supply a set of listing IDs with their associated updated <b>bidPercentage</b> values in the request body. An eBay listing ID is generated when a listing is created with the Trading API.</p>  <p>Get the campaign IDs for a seller by calling <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> and call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getads\">getAds</a> to get a list of the seller's inventory reference IDs.</p><span class=\"tablenote\"><b>Note:</b> 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 <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span>",
        "operationId": "bulkUpdateAdsBidByListingId",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to update the bid percentage for a set of ads.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This request object defines the fields for the <b>BulkCreateAdsByListingId</b> request.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This request object defines the fields for the <b>BulkCreateAdsByListingId</b> request.",
                "$ref": "#/components/schemas/BulkCreateAdRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkAdUpdateResponse"
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkAdUpdateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35007": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' {bidPercentage} is not valid. The bid percentage should be a single precision value. Minimum value: {minBidPercent} , Maximum value:{maxBidPercent}."
                },
                "35013": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is not valid."
                },
                "35014": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing Id is required for this call."
                },
                "35018": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "There are duplicate listing IDs or inventoryReference IDs in this request. You must remove the duplicate."
                },
                "35033": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one request is required for bulk requests."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35044": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No Ad found for 'ad_id' {ad_id}. Please correct the 'ad_id' and try again."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35048": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is invalid or has ended."
                },
                "36101": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This functionality is not supported for the CPC funding model."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35052": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId}  is not supported by the Promoted Listing service for multi-quantity listings."
                },
                "35058": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} is not a fixed price item. This is a requirement for a promoted listing."
                },
                "35059": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} is not a multi-quantity item. This is a requirement for a promoted listing."
                },
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35071": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs or inventory reference IDs. Only {maxSupportedNumber} IDs are supported per call."
                },
                "35075": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId} is not supported by the Promoted Listing service for single-quantity listings."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35113": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is not supported when selected adRateStrategy is DYNAMIC for the campaign."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/bulk_update_ads_status": {
      "post": {
        "tags": [
          "ad"
        ],
        "description": "This method works with listings created with either the <a href= \"/Devzone/XML/docs/Reference/eBay/index.html\">Trading API</a> or the <a href=\"/api-docs/sell/inventory/resources/methods\" target=\"_blank\">Inventory API</a>.<br /><br />This method updates the status of ads in bulk.<br /><br />Specify the <b>campaign_id</b> you want to update as a URI parameter, and configure the <b>adGroupStatus</b> in the request payload.",
        "operationId": "bulkUpdateAdsStatus",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ad statuses being updated.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "The bulk request to update the ads.",
          "content": {
            "application/json": {
              "schema": {
                "description": "The bulk request to update the ads.",
                "$ref": "#/components/schemas/BulkUpdateAdStatusRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkAdUpdateStatusResponse"
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkAdUpdateStatusResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35033": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one request is required for bulk requests."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35044": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No Ad found for 'ad_id' {ad_id}. Please correct the 'ad_id' and try again."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35083": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The requested 'adStatus' is not valid."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35052": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId}  is not supported by the Promoted Listing service for multi-quantity listings."
                },
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35071": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs or inventory reference IDs. Only {maxSupportedNumber} IDs are supported per call."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "36160": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This functionality is only supported for CPC funding model."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/bulk_update_ads_status_by_listing_id": {
      "post": {
        "tags": [
          "ad"
        ],
        "description": "The method updates the status of ads in bulk, based on listing ID values.<br /><br />Specify the <b>campaign_id</b> as a path parameter and supply a set of listing IDs with their updated <b>adStatus</b> values in the request body. An eBay listing ID is generated when a listing is created with the Trading API.<br /><br />Get the campaign IDs for a seller by calling <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> and call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getads\">getAds</a> to retrieve a list of seller inventory reference IDs.",
        "operationId": "bulkUpdateAdsStatusByListingId",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ads being updated.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "The bulk request to update ads.",
          "content": {
            "application/json": {
              "schema": {
                "description": "The bulk request to update ads.",
                "$ref": "#/components/schemas/BulkUpdateAdStatusByListingIdRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkAdUpdateStatusByListingIdResponse"
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkAdUpdateStatusByListingIdResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35013": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing Id {listingId} is not valid."
                },
                "35014": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing Id is required for this call."
                },
                "35018": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "There are duplicate listing IDs or inventoryReference IDs in this request. You must remove the duplicate."
                },
                "35033": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one request is required for bulk requests."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35048": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing Id {listingId} is invalid or has ended."
                },
                "35083": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The requested 'adStatus' is not valid."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                },
                "36219": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The ad group with ad group id {ad_group_id} has been archived."
                },
                "36412": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Campaigns where the 'campaignTargetingType' is 'SMART' do not support ad groups. Please remove the {adGroupFieldName} and try again."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35052": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId}  is not supported by the Promoted Listing service for multi-quantity listings."
                },
                "35058": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing Id {listingId} is not a fixed price item. This is a requirement for a promoted listing."
                },
                "35059": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing Id {listingId} is not a multi-quantity item. This is a requirement for a promoted listing."
                },
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35071": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs or inventory reference IDs. Only {maxSupportedNumber} IDs are supported per call."
                },
                "35075": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId} is not supported by the Promoted Listing service for single-quantity listings."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35084": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The Ad associated with listing Id {listingId} is archived."
                },
                "35085": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'adGroupId' {ad_group_id} does not exist under campaign {campaign_id}."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/ad": {
      "get": {
        "tags": [
          "ad"
        ],
        "description": "This method retrieves Promoted Listings ads that are associated with listings created with either the <a href=\"/Devzone/XML/docs/Reference/eBay/index.html\" title=\"Trading API Reference\" target=\"_blank\">Trading API</a> or the <a href=\"/api-docs/sell/inventory/resources/methods\" title=\"Inventory API Reference\" target=\"_blank\">Inventory API</a>. <p>The method retrieves ads related to the specified campaign. Specify the Promoted Listings campaign to target with the <b>campaign_id</b> path parameter.</p>  <p>Because of the large number of possible results, you can use query parameters to paginate the result set by specifying a <b>limit</b>, 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 <b>offset</b> path parameter.</p><p>To retrieve video ads preference information for each ad, set the <b>fieldgroups</b> query parameter to <code>VIDEO</code>.</p> <p>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve the current campaign IDs for the seller.</p>",
        "operationId": "getAds",
        "parameters": [
          {
            "name": "ad_group_ids",
            "in": "query",
            "description": "A comma-separated list of ad group IDs. The results will be filtered to only include active ads for these ad groups.<br><br>Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups\">getAdGroups</a> method to retrieve the ad group ID for the ad group.<br /><br /><span class=\"tablenote\"><b>Note:</b> This field only applies to the Cost Per Click (CPC) funding model; it does not apply to the Cost Per Sale (CPS) funding model.</span>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "ad_status",
            "in": "query",
            "description": "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.<br><br>See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getads.adstatusenum\">AdStatusEnum</a> for supported values.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "PAUSED",
                "ARCHIVED"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ads being retrieved.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\" target=\"_blank\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Specifies the maximum number of ads to return on a page in the paginated response.<br><br><b>Default: </b>10 <br><br><b>Maximum:</b> 500",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "listing_ids",
            "in": "query",
            "description": "A comma-separated list of listing IDs. <br><br><span class=\"tablenote\"><b>Note:</b> The response includes only active ads. The results do not include listing IDs that are excluded by other conditions.</span>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Specifies the number of ads to skip in the result set before returning the first ad in the paginated response.  <p>Combine <b>offset</b> with the <b>limit</b> query parameter to control the items returned in the response. For example, if you supply an <b>offset</b> of <code>0</code> and a <b>limit</b> of <code>10</code>, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If <b>offset</b> is <code>10</code> and <b>limit</b> is <code>20</code>, the first page of the response contains items 11-30 from the complete result set.</p> <p><b>Default:</b> 0</p>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "fieldgroups",
            "in": "query",
            "description": "A comma-separated list of values that controls what is returned in the response. If not provided, standard ad fields are returned. <ul><li><b>DEFAULT</b>: Returns the standard ad fields. The <b>videoAdsPreferences</b> container is not included in the response.</li><li><b>VIDEO</b>: Adds the <b>videoAdsPreferences</b> container to the response, including video ads preferences for each ad.</li></ul>",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "default": "DEFAULT",
              "enum": [
                "DEFAULT",
                "VIDEO"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdPagedCollectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35013": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is not valid."
                },
                "35029": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'limit' has to be greater than zero and less than {maxLimitValue}."
                },
                "35030": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'offset' cannot be less than zero."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35083": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The requested 'adStatus' is not valid."
                },
                "36106": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The '{adGroupFieldName}' is not supported for CPS funding model."
                },
                "36412": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Campaigns where the 'campaignTargetingType' is 'SMART' do not support ad groups. Please remove the {adGroupFieldName} and try again."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35068": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs. Only {maxSupportedNumber} listings are supported per call."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "ad"
        ],
        "description": "This method adds a listing to an existing Promoted Listings campaign using a <b>listingId</b> value generated by the <a href=\"/Devzone/XML/docs/Reference/eBay/index.html\" title=\"Trading API Reference\" target=\"_blank\">Trading API</a> or <a href=\"/api-docs/sell/inventory/resources/methods\" title=\"Inventory API Reference\" target=\"_blank\">Inventory API</a>, or using a value generated by an ad group ID. <p>For general strategy campaigns using the Cost Per Sale (CPS) funding model, an ad may be directly created for the listing.</p><p>For the listing ID specified in the request, this method:</p>  <ul><li>Creates an ad for the listing.</li> <li>Sets the bid percentage (also known as the <i>ad rate</i>) for the ad.</li> <li>Associates the ad with the specified campaign.</li></ul>  <p>To create an ad for a listing, specify its <b>listingId</b>, plus the <b>bidPercentage</b> for the ad in the payload of the request. Specify the campaign to associate the ad with using the <b>campaign_id</b> path parameter. Listing IDs are generated by eBay when a seller creates listings with the Trading API.</p><p>For manual targeting priority strategy 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.<br><br><span class=\"tablenote\"><b>Note:</b> Ad groups are not required when adding listings to a smart targeting campaign.</span></p><p>For the ad group specified in the request, this method associates the ad with the specified ad group.</p><p>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 <b>campaign_id</b> path parameter. Ad groups are generated using the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-createadgroup\">createAdGroup</a> method.</p> <p>You can specify one or more ad groups per campaign.</p><p>Use <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-createcampaign\">createCampaign</a> to create a new campaign and use <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to get a list of existing campaigns.</p><p>This call has no response payload. If the ad is successfully created, a <code>201 Created</code> HTTP status code and the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getad\">getAd</a> URI of the ad are returned in the location header.</p>",
        "operationId": "createAdByListingId",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to associate the newly created ad.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This request object defines the fields used in the <b>createAdByListingId</b> request.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This request object defines the fields used in the <b>createAdByListingId</b> request.",
                "$ref": "#/components/schemas/CreateAdRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "description": "The <b>location</b> response header contains the getAd URI of the newly created ad. The URI includes the newly created <code>adID</code>, which you can use to reference the ad."
                },
                "style": "simple",
                "explode": false
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35007": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' {bidPercentage} is not valid. The bid percentage should be a single precision value. Minimum value: {minBidPercent} , Maximum value:{maxBidPercent}."
                },
                "35010": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The bidPercentage should not be provided when selected adRateStrategy is DYNAMIC for the campaign."
                },
                "35013": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is not valid."
                },
                "35014": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID is required for this call."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35036": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "An ad for listing ID {listingId} already exists."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35048": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is invalid or has ended."
                },
                "35080": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' is not supported for CPC funding model."
                },
                "36106": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The '{adGroupFieldName}' is not supported for CPS funding model."
                },
                "36152": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' is not supported for CPC funding model."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No adgroup found for adgroup id {ad_group_id}."
                },
                "36219": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The ad group with ad group id {ad_group_id} has been archived."
                },
                "36412": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Campaigns where the 'campaignTargetingType' is 'SMART' do not support ad groups. Please remove the {adGroupFieldName} and try again."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35048": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is invalid or has ended."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35052": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId} is not supported by the Promoted Listing service for multi-quantity listings."
                },
                "35054": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} was created on a different marketplace than the campaign. The listing and campaign must reside on the same marketplace."
                },
                "35057": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} does not belong to the seller making this call."
                },
                "35058": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} is not a fixed price item. This is a requirement for a promoted listing."
                },
                "35059": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} is not a multi-quantity item. This is a requirement for a promoted listing."
                },
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35075": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId} is not supported by the Promoted Listing service for single-quantity listings."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "36221": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of ads supported in a ad group with this request. Only {maxItemsLimit} ads are allowed per ad group."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/create_ads_by_inventory_reference": {
      "post": {
        "tags": [
          "ad"
        ],
        "description": "This method adds a listing that is managed with the <a href=\"/api-docs/sell/inventory/resources/methods\" title=\"Inventory API Reference\" target=\"_blank\">Inventory API</a> to an existing Promoted Listings campaign.<br /><br />For general strategy campaigns using the Cost Per Sale (CPS) funding model, an ad may be directly created for the listing.<br /><br />For each listing specified in the request, this method:<br /><ul><li>Creates an ad for the listing.</li> <li>Sets the bid percentage (also known as the <i>ad rate</i>) for the ads created.</li> <li>Associates the created ad with the specified campaign.</li></ul><br />To create an ad for a listing, specify its <b>inventoryReferenceId</b> and <b>inventoryReferenceType</b>, plus the <b>bidPercentage</b> for the ad in the payload of the request. Specify the campaign to associate the ad with using the <b>campaign_id</b> path parameter.<br /><br /><span class=\"tablenote\"><b>Note:</b> 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 <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br />Use <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-createcampaign\">createCampaign</a> to create a new campaign and use <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to get a list of existing campaigns.",
        "operationId": "createAdsByInventoryReference",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to associate the newly created ads.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This request object defines the fields used in the <b>createAdsByInventoryReference</b> request.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This request object defines the fields used in the <b>createAdsByInventoryReference</b> request.",
                "$ref": "#/components/schemas/CreateAdsByInventoryReferenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdReferences"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35007": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' {bidPercentage} is not valid. The bid percentage should be a single precision value. Minimum value: {minBidPercent} , Maximum value:{maxBidPercent}."
                },
                "35010": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The bidPercentage should not be provided when selected adRateStrategy is DYNAMIC for the campaign."
                },
                "35012": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The inventory reference ID {inventoryReferenceId} is not valid."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35040": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The inventory reference type is not valid. Valid values are: {inventoryReferenceTypeValues}."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35080": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' is not supported for CPC funding model"
                },
                "36106": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The '{adGroupFieldName}' is not supported for CPS funding model."
                },
                "36152": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' is not supported for CPC funding model."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                },
                "36219": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The ad group with ad group id {ad_group_id} has been archived."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35072": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "InventoryReferenceId {inventoryReferenceId} is not eligible for Promoted Listings because it is a variation and variations can only be promoted using the parent ID to which it belongs. Replace this ID with the InventoryReferenceId of the parent and set 'inventoryReferenceType' to 'INVENTORY_ITEM_GROUP'"
                },
                "35073": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "inventoryReferenceId {inventoryReferenceId} is not eligible for Promoted Listings because it is a variation and variations can only be promoted using the parent ID to which it belongs. Replace this ID with the inventoryReferenceId of the parent and set 'inventoryReferenceType' to 'INVENTORY_ITEM_GROUP'."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/ad/{ad_id}": {
      "get": {
        "tags": [
          "ad"
        ],
        "description": "This method retrieves the specified ad from the specified campaign.  <p>In the request, supply the <b>campaign_id</b> and <b>ad_id</b> as path parameters.</p><p>To retrieve video ads preference information for the ad, set the <b>fieldgroups</b> query parameter to <code>VIDEO</code>.</p> <p>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve a list of the seller's current campaign IDs and call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getads\">getAds</a> to retrieve their current ad IDs.</p>",
        "operationId": "getAd",
        "parameters": [
          {
            "name": "ad_id",
            "in": "path",
            "description": "This path parameter specifies the unique identifier of the ad being retrieved.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getads\">getAds</a> method to retrieve ad IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ad being retrieved.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "fieldgroups",
            "in": "query",
            "description": "A comma-separated list of values that controls what is returned in the response. If not provided, standard ad fields are returned. <ul><li><b>DEFAULT</b>: Returns the standard ad fields. The <b>videoAdsPreferences</b> container is not included in the response.</li><li><b>VIDEO</b>: Adds the <b>videoAdsPreferences</b> container to the response, including video ads preferences for each ad.</li></ul>",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "default": "DEFAULT",
              "enum": [
                "DEFAULT",
                "VIDEO"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ad"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35044": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No Ad found for 'ad_id' {ad_id}. Please correct the 'ad_id' and try again."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35044": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No Ad found for 'ad_id' {ad_id}. Please correct the 'ad_id' and try again."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Business error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "ad"
        ],
        "description": "This method removes the specified ad from the specified campaign.<br /><br />Pass the ID of the ad to delete with the ID of the campaign associated with the ad as path parameters to the call.<br /><br />Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to get the current list of the seller's campaign IDs.<br /><br /><span class=\"tablenote\"><b>Note:</b> 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 <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br />When using the CPC funding model, use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-bulkupdateadsstatusbylistingid\">bulkUpdateAdsStatusByListingId</a> method to change the status of ads to <code>ARCHIVED</code>.",
        "operationId": "deleteAd",
        "parameters": [
          {
            "name": "ad_id",
            "in": "path",
            "description": "This path parameter specifies the unique identifier of the ad being deleted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getads\">getAds</a> method to retrieve ad IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ad being deleted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35044": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No Ad found for 'ad_id' {ad_id}. Please correct the 'ad_id' and try again."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36101": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This functionality is not supported for the CPC funding model."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35044": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No Ad found for 'ad_id' {ad_id}. Please correct the 'ad_id' and try again."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/delete_ads_by_inventory_reference": {
      "post": {
        "tags": [
          "ad"
        ],
        "description": "This method works with listings that are managed with the <a href=\"/api-docs/sell/inventory/resources/methods\" title=\"Inventory API Reference\" target=\"_blank\">Inventory API</a>.  <p>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.</p> <p>Specify the campaign ID (as a path parameter) and a list of <b>inventoryReferenceId</b> and <b>inventoryReferenceType</b> pairs to be deleted.</p>  <p>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to get a list of the seller's current campaign IDs.</p><span class=\"tablenote\"><b>Note:</b> 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 <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br />When using the CPC funding model, use the bulkUpdateAdsStatusByInventoryReference method to change the status of ads to <code>ARCHIVED</code>.",
        "operationId": "deleteAdsByInventoryReference",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ads being deleted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This request object defines the fields for the <b>deleteAdsByInventoryReference</b> request.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This request object defines the fields for the <b>deleteAdsByInventoryReference</b> request.",
                "$ref": "#/components/schemas/DeleteAdsByInventoryReferenceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdIds"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35012": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The inventory reference ID {inventoryReferenceId} is not valid."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35040": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The inventory reference type is not valid. Valid values are: {inventoryReferenceTypeValues}."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36101": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This functionality is not supported for the CPC funding model."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35072": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "InventoryReferenceId {inventoryReferenceId} is not eligible for Promoted Listings because it is a variation and variations can only be promoted using the parent ID to which it belongs. Replace this ID with the inventoryReferenceId of the parent and set 'inventoryReferenceType' to 'INVENTORY_ITEM_GROUP'"
                },
                "35073": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "inventoryReferenceId {inventoryReferenceId} is not eligible for Promoted Listings because it is a variation and variations can only be promoted using the parent ID to which it belongs. Replace this ID with the inventoryReferenceId of the parent and set 'inventoryReferenceType' to 'INVENTORY_ITEM_GROUP'."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/get_ads_by_inventory_reference": {
      "get": {
        "tags": [
          "ad"
        ],
        "description": "This method retrieves Promoted Listings ads associated with listings that are managed with the <a href=\"/api-docs/sell/inventory/resources/methods\" title=\"Inventory API Reference\" target=\"_blank\">Inventory API</a> from the specified campaign.<br /><br />Supply the <b>campaign_id</b> as a path parameter and use query parameters to specify the <b>inventory_reference_id</b> and <b>inventory_reference_type</b> pairs.<br /><br />In the Inventory API, an <i>inventory reference ID</i> is either a seller-defined <b>SKU</b> value or an <b>inventoryItemGroupKey</b> (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 <b>inventory_reference_id</b> and the associated <b>inventory_reference_type</b>.<br /><br />Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve all of the seller's the current campaign IDs.<br /><br /><span class=\"tablenote\"><b>Note:</b> 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 <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span>",
        "operationId": "getAdsByInventoryReference",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ads being retrieved.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "inventory_reference_id",
            "in": "query",
            "description": "This query parameter specifies the unique identifier of a single-item listing or a multi-variation listing.<br><br>To retrieve an ad for a single-item listing, set the <b>inventoryReferenceType</b> value to <code>INVENTORY_ITEM</code> and specify an item ID or a SKU (if the SKU is defined in the listing).<br><br>To retrieve an ad for a multi-variation listing, set the <b>inventoryReferenceType</b> value to <code>INVENTORY_ITEM_GROUP</code> and specify the item ID for the multi-variation listing or the <b>inventoryitemGroupKey</b> value as defined in the Inventory API.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "inventory_reference_type",
            "in": "query",
            "description": "This query parameter specifies the type of the item the <b>inventory_reference_id</b> references.<br><br><b>Valid values</b>:<ul><li>INVENTORY_ITEM</li><li>INVENTORY_ITEM_GROUP</li></ul><br>See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getadsbyinventoryreference.inventoryreferencetypeenum\">InventoryReferenceType</a> for more information.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "INVENTORY_ITEM",
                "INVENTORY_ITEM_GROUP"
              ]
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ads"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35012": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The inventory reference ID {inventoryReferenceId} is not valid."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35040": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The inventory reference type is not valid. Valid values are: {inventoryReferenceTypeValues}."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36106": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The '{adGroupFieldName}' is not supported for CPS funding model."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/ad/{ad_id}/update_bid": {
      "post": {
        "tags": [
          "ad"
        ],
        "description": "This method updates the bid percentage (also known as the \"ad rate\") for the specified ad in the specified campaign. <p>In the request, supply the <b>campaign_id</b> and <b>ad_id</b> as path parameters, and supply the new <b>bidPercentage</b> value in the payload of the call.</p>  <p>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve a seller's current campaign IDs and call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getads\">getAds</a> to get their ad IDs.</p><span class=\"tablenote\"><b>Note:</b> 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 <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span>",
        "operationId": "updateBid",
        "parameters": [
          {
            "name": "ad_id",
            "in": "path",
            "description": "This path parameter specifies the unique identifier of the ad for which the bid percentage is being updated.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getads\">getAds</a> method to retrieve ad IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ad being updated.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type defines the fields for the <b>updateBid</b> request.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the fields for the <b>updateBid</b> request.",
                "$ref": "#/components/schemas/UpdateBidPercentageRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35007": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' {bidPercentage} is not valid. The bid percentage should be a single precision value. Minimum value: {minBidPercent} , Maximum value:{maxBidPercent}."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35044": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No Ad found for 'ad_id' {ad_id}. Please correct the 'ad_id' and try again."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35048": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is invalid or has ended."
                },
                "36101": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This functionality is not supported for the CPC funding model."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35044": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No Ad found for 'ad_id' {ad_id}. Please correct the 'ad_id' and try again."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35048": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is invalid or has ended."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35052": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId} is not supported by the Promoted Listing service for multi-quantity listings."
                },
                "35058": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} is not a fixed price item. This is a requirement for a promoted listing."
                },
                "35059": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} is not a multi-quantity item. This is a requirement for a promoted listing."
                },
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35075": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId} is not supported by the Promoted Listing service for single-quantity listings."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35113": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is not supported when selected adRateStrategy is DYNAMIC for the campaign."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/ad_group": {
      "get": {
        "tags": [
          "ad_group"
        ],
        "description": "This method retrieves ad groups for the specified campaign.<br /><br />Each campaign can only have <b>one</b> ad group.<br /><br />In the request, supply the <b>campaign_id</b> as the path parameter.<br /><br />Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve a list of the current campaign IDs for a seller.",
        "operationId": "getAdGroups",
        "parameters": [
          {
            "name": "ad_group_status",
            "in": "query",
            "description": "A comma-separated list of ad group statuses. The results will be filtered to only include the given statuses of the ad group.<br><br> See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups.adgroupstatusenum\">AdGroupStatusEnum</a> for supported values.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "PAUSED",
                "ARCHIVED"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ad groups being retrieved.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The number of results, from the current result set, to be returned in a single page.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "offset",
            "in": "query",
            "description": "The number of results that will be skipped in the result set. This is used with the <b>limit</b> field to control the pagination of the output.<br /><br />For example, if the <b>offset</b> is set to <code>0</code> and the <b>limit</b> is set to <code>10</code>, the method will retrieve items 1 through 10 from the list of items returned. If the <b>offset</b> is set to <code>10</code> and the <b>limit</b> is set to <code>10</code>, the method will retrieve items 11 through 20 from the list of items returned.<br><br><b>Default</b>: <code>0</code>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdGroupPagedCollectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35029": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'limit' has to be greater than zero and less than {maxLimitValue}."
                },
                "35030": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'offset' cannot be less than zero."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This method is not supported for campaigns with smart targeting type."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "ad_group"
        ],
        "description": "This method adds an ad group to an existing priority strategy campaign that uses manual targeting.<br /><br />To create an ad group for a campaign, specify the <b>defaultBid</b> for the ad group in the payload of the request. Then specify the campaign to which the ad group should be associated using the <b>campaign_id</b> path parameter.<br /><br />Each campaign can have one or more associated ad groups.",
        "operationId": "createAdGroup",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign to associate with the ad group being created.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type defines the fields for the <b>createAdGroup</b> request.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the fields for the <b>createAdGroup</b> request.",
                "$ref": "#/components/schemas/CreateAdGroupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "description": "The <b>location</b> response header contains the <b>getAdGroup</b> URL to the newly created ad group. The URL includes the newly assigned <code>adGroupID</code>, which you can use to retrieve the ad group."
                },
                "style": "simple",
                "explode": false
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36201": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "An ad group with name {name} already exists for this campaign."
                },
                "36202": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The ad group name cannot be more than {maxAdGroupNameLength} characters."
                },
                "36203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' value {defaultBidValue} is not valid. The default bid value should be a double precision value."
                },
                "36204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' currency {defaultBidCurrency} is not valid or missing."
                },
                "36205": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' value {defaultBidValue} is below floor value {bidFloorValue}."
                },
                "36206": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' value {defaultBidValue} is above max value {bidMaxValue}."
                },
                "36207": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' value {defaultBidValue} is more than daily budget."
                },
                "36212": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' currency {defaultBidCurrency} should be the same as the daily budget."
                },
                "36214": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Ad Group name is required for this call."
                },
                "36215": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' is required for this call."
                },
                "36216": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' value is required for this call."
                },
                "36217": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The Ad Group name contains invalid characters. {notAllowedCharacters} are not allowed."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This method is not supported for campaigns with smart targeting type."
                },
                "36213": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign funding model should be CPC. Please check funding model for provided campaign id."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/ad_group/{ad_group_id}": {
      "get": {
        "tags": [
          "ad_group"
        ],
        "description": "This method retrieves the details of a specified ad group, such as the ad group’s default bid and status.<br /><br />In the request, specify the <b>campaign_id</b> and <b>ad_group_id</b> as path parameters.<br /><br />Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve a list of the current campaign IDs for a seller and call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups\">getAdGroups</a> for the ad group ID of the ad group you wish to retrieve.",
        "operationId": "getAdGroup",
        "parameters": [
          {
            "name": "ad_group_id",
            "in": "path",
            "description": "This path parameter specifies the unique identifier of the ad group being retrieved.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups\">getAdGroups</a> method to retrieve ad group IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the ad group being retrieved.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdGroup"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This method is not supported for campaigns with smart targeting type."
                },
                "36213": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign funding model should be CPC. Please check funding model for provided campaign id."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "ad_group"
        ],
        "description": "This method updates the ad group associated with a campaign.<br /><br />With this method, you can modify the <b>default bid</b> for the ad group, change the state of the ad group, or change the name of the ad group. Pass the <b>ad_group_id</b> you want to update as a URI parameter, and configure the <b>adGroupStatus</b> and <b>defaultBid</b> in the request payload.<br /><br />Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroup\">getAdGroup</a> to retrieve the current default bid and status of the ad group that you would like to update.",
        "operationId": "updateAdGroup",
        "parameters": [
          {
            "name": "ad_group_id",
            "in": "path",
            "description": "This path parameter specifies the unique identifier of the ad group that is being updated.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups\">getAdGroups</a> method to retrieve ad group IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which the ad group is being updated.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type defines the fields for the <b>UpdateAdGroup</b> request.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the fields for the <b>UpdateAdGroup</b> request.",
                "$ref": "#/components/schemas/UpdateAdGroupRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36201": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "An ad group with name {name} already exists for this campaign."
                },
                "36202": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The ad group name cannot be more than {maxAdGroupNameLength} characters."
                },
                "36203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' value {defaultBidValue} is not valid. The default bid value should be a double precision value."
                },
                "36204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' currency {defaultBidCurrency} is not valid or missing."
                },
                "36205": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' value {defaultBidValue} is below floor value {bidFloorValue}."
                },
                "36206": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' value {defaultBidValue} is above max value {bidMaxValue}."
                },
                "36207": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' value {defaultBidValue} is more than daily budget."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                },
                "36212": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' currency {defaultBidCurrency} should be the same as the daily budget."
                },
                "36216": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' value {defaultBidValue} is not valid or missing."
                },
                "36217": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The Ad Group name contains invalid characters. {notAllowedCharacters} are not allowed."
                },
                "36224": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'defaultBid' or 'adGroupStatus' or 'name' value is required for this call."
                },
                "36225": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'ad_group_statuses' value is invalid. It should be either ACTIVE, PAUSED or ARCHIVED."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This method is not supported for campaigns with smart targeting type."
                },
                "36213": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign funding model should be CPC. Please check funding model for provided campaign id."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/ad_group/{ad_group_id}/suggest_bids": {
      "post": {
        "tags": [
          "ad_group"
        ],
        "description": "This method allows sellers to retrieve the suggested bids for input keywords and match type.",
        "operationId": "suggestBids",
        "parameters": [
          {
            "name": "ad_group_id",
            "in": "path",
            "description": "This path parameter specifies the unique identifier of the ad group containing the keywords for which the bid suggestions will be provided.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups\">getAdGroups</a> method to retrieve ad group IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the keywords for which bid suggestions will be provided.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "The data requested to retrieve the suggested bids.",
          "content": {
            "application/json": {
              "schema": {
                "description": "The data requested to retrieve the suggested bids.",
                "$ref": "#/components/schemas/TargetedBidRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TargetedBidsPagedCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35041": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'marketplaceId' is required."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35091": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You have exceeded the maximum number of requests. Only {maxSupportedNumber} are supported per call."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                },
                "36301": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The provided keyword match type is not supported. Valid values are: {matchTypeValues}."
                },
                "36304": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The keywordText {keywordText} cannot be more than {maxKeywordTextLength} characters."
                },
                "36311": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The keywordText cannot be null or empty."
                },
                "36312": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The keywordText contains invalid characters {invalidCharacters}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35051": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'marketplaceId' {marketplaceId} is not supported. Promoted Listings is supported only on these marketplaces: {supportedMarketplaces}."
                },
                "36320": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The keywordText {keywordText} cannot have total number of words more than {maxWordsInKeyword} words."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/ad_group/{ad_group_id}/suggest_keywords": {
      "post": {
        "tags": [
          "ad_group"
        ],
        "description": "This method allows sellers to retrieve a list of keyword ideas to be targeted for Promoted Listings campaigns.",
        "operationId": "suggestKeywords",
        "parameters": [
          {
            "name": "ad_group_id",
            "in": "path",
            "description": "This path parameter specifies the unique identifier of the ad group for which the keyword suggestions will be provided.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups\">getAdGroups</a> method to retrieve ad group IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which keyword suggestions will be provided.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "The required data to retrieve suggested keywords.",
          "content": {
            "application/json": {
              "schema": {
                "description": "The required data to retrieve suggested keywords.",
                "$ref": "#/components/schemas/TargetedKeywordRequest"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TargetedKeywordsPagedCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35013": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is not valid."
                },
                "35041": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'marketplaceId' is required."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                },
                "36301": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The provided keyword match type is not supported. Valid values are: {matchTypeValues}."
                },
                "70006": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The provided exclusion is not supported. Valid values are {supportedExclusions}."
                },
                "70007": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The provided additionalInfo is not supported. Valid values are {supportedAdditionalInfo}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35051": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'marketplaceId' {marketplaceId} is not supported. Promoted Listings is supported only on these marketplaces: {supportedMarketplaces}."
                },
                "35054": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} was created on a different marketplace than the campaign. The listing and campaign must reside on the same marketplace."
                },
                "35057": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} does not belong to the seller making this call."
                },
                "35068": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs. Only {maxSupportedNumber} listings are supported per call."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/clone": {
      "post": {
        "tags": [
          "campaign"
        ],
        "description": "This method clones (makes a copy of) the specified campaign's <b>campaign criterion</b>. The <b>campaign criterion</b> is a container for the fields that define the criteria for a rule-based campaign.<p>To clone a campaign, supply the <b>campaign_id</b> as a path parameter in your call. There is no request payload.</p>  <p>The ID of the newly-cloned campaign is returned in the <b>Location</b> response header.</p><p>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve a seller's current campaign IDs.</p>  <p><b>Requirement: </b>In order to clone a campaign, the <b>campaignStatus</b> must be <code>ENDED</code> and the campaign must define a set of selection rules (it must be a rules-based campaign).</p><span class=\"tablenote\"><b>Note:</b> 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 <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span>",
        "operationId": "cloneCampaign",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign being cloned.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type defines the fields for a clone campaign request.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the fields for a clone campaign request.",
                "$ref": "#/components/schemas/CloneCampaignRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Success",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "description": "The <b>location</b> response header contains the  <b>getCampaign</b> URI to the retrieve the newly created campaign."
                },
                "style": "simple",
                "explode": false
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35006": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'fundingStrategy' is required for this call."
                },
                "35007": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' {bidPercentage} is not valid. The bid percentage should be a single precision value. Minimum value: {minBidPercent} , Maximum value:{maxBidPercent}."
                },
                "35019": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Campaign name is required for this call."
                },
                "35020": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign name cannot be more than {maxCampaignNameLength} characters."
                },
                "35021": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A campaign with the name of {campaignName} already exists. Please provide a different name."
                },
                "35023": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request contains invalid characters. {notAllowedCharacters} are not allowed."
                },
                "35024": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign start date {startDate} cannot be after the end date {endDate}."
                },
                "35025": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A campaign start date is required."
                },
                "35026": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A campaign start or end date {date} cannot be in the past."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36101": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This functionality is not supported for the CPC funding model."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35062": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} has not ended yet. cloneCampaign is supported only for criterion based campaigns that have ended."
                },
                "35065": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for criterion based campaigns."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35106": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'BidPercentage' should be provided when selected 'adRateStrategy' is 'FIXED'."
                },
                "35107": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'dynamicAdRatePreferences' can be provided only when selected 'adRateStrategy' is 'DYNAMIC'."
                },
                "35108": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'adRateAdjustmentPercent' {adRateAdjustmentPercent} is not valid. Please set 'adRateAdjustmentPercent' {adRateAdjustmentPercent} between {minAllowedAdRateAdjustmentPercent}% - {maxAllowedAdRateAdjustmentPercent}%."
                },
                "35109": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'adRateCapPercent' {adRateCapPercent} is not valid. Please set 'adRateCapPercent' between {minAllowedAdRateCapPercent}% - {maxAllowedAdRateCapPercent}%."
                },
                "35110": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'adRateStrategy' is not supported for CPC funding model."
                },
                "35111": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'dynamicAdRatePreferences' is not supported for CPC funding model."
                },
                "35112": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'adRateStrategy' is currently only supported for criterion based campaign with 'autoselectFutureInventory' as True."
                },
                "35113": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'dynamicAdRatePreferences' is currently only supported for criterion based campaign with 'autoselectFutureInventory' as True."
                },
                "35114": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'dynamicAdRatePreferences' list currently can only support one element containing dynamicAdRatePreference. Please remove additional elements and try again."
                },
                "35304": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "Another campaign cannot be created at this time, as the user is currently using a feature that only supports one campaign at a time."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign": {
      "get": {
        "tags": [
          "campaign"
        ],
        "description": "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 channel, the status, and the funding model (i.e., Cost Per Sale (CPS) or Cost Per Click (CPC)). <p>You can filter the result set by a campaign name, end date range, start date range, campaign channel, or campaign status. You can also paginate the records returned from the result set using the <b>limit</b> query parameter, and control which records to return using the  <b>offset</b> parameter.</p>",
        "operationId": "getCampaigns",
        "parameters": [
          {
            "name": "campaign_name",
            "in": "query",
            "description": "This query parameter specifies the name of the campaign being retrieved. The results are filtered to include only the campaign by the specified name.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve a list of a seller's campaign names.<br /><br /><b>Note: </b>The results might be null if other filters exclude the campaign with this name. <br /><br /><b>Maximum: </b> 1 campaign name",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "campaign_status",
            "in": "query",
            "description": "This query parameter specifies the status of the campaign(s) being retrieved.<br><br><span class=\"tablenote\"><b>Note:</b> The results might not include all the campaigns with this status if other filters exclude them.</span><br><b>Valid values:</b> See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns.campaignstatusenum\">CampaignStatusEnum</a> <br /><br /><b>Maximum: </b> 1 status",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "DELETED",
                "DRAFT",
                "ENDED",
                "ENDING_SOON",
                "PAUSED",
                "PENDING",
                "RUNNING",
                "SCHEDULED",
                "SYSTEM_PAUSED"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "campaign_targeting_types",
            "in": "query",
            "description": "This query parameter specifies the targeting type of the campaign(s) to be retrieved.<br><br>The results will be filtered to only include campaigns with the specified targeting type. If not specified, all campaigns matching other filter parameters will be returned. The results might not include these campaigns if other search conditions exclude them.<br><br><b>Valid values:</b> See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns.campaigntargetingtypeenum\">CampaignTargetingTypeEnum</a>",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "MANUAL",
                "SMART"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "channels",
            "in": "query",
            "description": "This query parameter specifies the channel for the campaign(s) being retrieved.<br><br>The results will be filtered to only include campaigns with the specified channel. If not specified, all campaigns matching other filter parameters will be returned. The results might not include these campaigns if other search conditions exclude them.<br /><br /><b>Valid Values:</b> See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns.channelenum\">ChannelEnum</a>",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ON_SITE",
                "OFF_SITE"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "end_date_range",
            "in": "query",
            "description": "This query parameter 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. <br><br><b>Valid format (UTC)</b>: <ul><li><code> yyyy-MM-ddThh:mm:ssZ..yyyy-MM-ddThh:mm:ssZ </code>  (campaign ends within this range)</li><li><code>yyyy-MM-ddThh:mm:ssZ..</code> (campaign ends on or after this date)</li><li><code>..yyyy-MM-ddThh:mm:ssZ </code> (campaign ends on or before this date)</li><li><code>2016-09-08T00:00.00.000Z..2016-09-09T00:00:00Z</code> (campaign ends on September 08, 2016)</li></ul><br><span class=\"tablenote\"><b>Note:</b>The results might not include all the campaigns ending on this date if other filters exclude them.</span>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "funding_strategy",
            "in": "query",
            "description": "This query parameter specifies the funding strategy for the campaign(s) being retrieved.<br /><br />The results will be filtered to only include campaigns with the specified funding model. If not specified, all campaigns matching the other filter parameters will be returned. The results might not include these campaigns if other search conditions exclude them.<br /><br /><b>Valid Values:</b> See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttasks.fundingmodelenum\">FundingModelEnum</a>",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "COST_PER_SALE",
                "COST_PER_CLICK"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "limit",
            "in": "query",
            "description": "<p>This query parameter specifies the maximum number of campaigns to return on a page in the paginated response.</p>  <b>Default: </b>10<br><br><b>Maximum: </b> 500",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "offset",
            "in": "query",
            "description": "This query parameter specifies the number of campaigns to skip in the result set before returning the first report in the paginated response.<br><br>Combine <b>offset</b> with the <b>limit</b> query parameter to control the items returned in the response. For example, if you supply an <b>offset</b> of <code>0</code> and a <b>limit</b> of <code>10</code>, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If <b>offset</b> is <code>10</code> and <b>limit</b> is <code>20</code>, the first page of the response contains items 11-30 from the complete result set.<br><br> <b>Default:</b> 0",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "start_date_range",
            "in": "query",
            "description": "This query parameter 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.<br><br><b>Valid format (UTC): </b> <ul><li><code>yyyy-MM-ddThh:mm:ssZ..yyyy-MM-ddThh:mm:ssZ</code> (starts within this range)</li><li><code>yyyy-MM-ddThh:mm:ssZ</code> (campaign starts on or after this date)</li><li><code>..yyyy-MM-ddThh:mm:ssZ </code>(campaign starts on or before this date)</li><li><code>2016-09-08T00:00.00.000Z..2016-09-09T00:00:00Z</code> (campaign starts on September 08, 2016)</li></ul><br><span class=\"tablenote\"><b>Note:</b> The results might not include all the campaigns with this start date if other filters exclude them.</span>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "marketplace_id",
            "in": "query",
            "description": "This parameter specifies the eBay marketplace ID of the site for which you want to retrieve campaigns.<br><br>See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported Marketplace ID values.",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CampaignPagedCollectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35020": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign name cannot be more than {maxCampaignNameLength} characters."
                },
                "35023": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request contains invalid characters. {notAllowedCharacters} are not allowed."
                },
                "35027": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The date range {dateRange} is not valid. Ensure the beginning of the range is before the end of the range."
                },
                "35028": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The format of the date range {dateRange} is invalid. The format for a date range is yyyy-MM-ddThh:mm:ss.sssZ..yyyy-MM-ddThh:mm:ss.sssZ or yyyy-MM-ddThh:mm:ss.sssZ.. or ..yyyy-MM-ddThh:mm:ss.sssZ."
                },
                "35029": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'limit' has to be greater than zero and less than {maxLimitValue}."
                },
                "35030": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'offset' cannot be less than zero."
                },
                "35043": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign status of {campaignStatus} is either invalid or not supported for this operation."
                },
                "35079": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Funding strategy needs to be one of {fundingStrategy} types."
                },
                "35123": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'campaignTargetingType' is not valid. Valid values for 'campaignTargetingType' are: {campaignTargetingTypeValues}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "campaign"
        ],
        "description": "This method can be used to create a Promoted Listings general, priority, or offsite campaign.<br><br>A Promoted Listings <i>campaign</i> is the structure in which you place the ads or ad group for the listings you wish to promote.<br><br><span class=\"tablenote\"><b>Note:</b> Campaigns can only contain ads for a maximum of 50,000 items.</span><br>General strategy campaigns utilize a Cost Per Sale (CPS) funding model. Sellers can set the ad rate and bidding strategies that are right for their business through the <b>adRateStrategy</b>, <b>biddingStrategy</b>, <b>bidPercentage</b> fields. For more information on general strategy campaigns, see <a href=\"/api-docs/sell/static/marketing/pl-campaign-flow-pls.html\" target=\"_blank \">Promoted Listings general strategy campaign flow</a>.<br><br>Priority strategy campaigns utilize a Cost per Click (CPC) funding model. Sellers can create a daily budget through the <b>budget</b> container and choose what <b>channel</b> that their ads appear on. In addition, priority strategy campaigns give sellers the ability to create ad groups and specify keywords to ensure their ads reach their intended audience. For more information on priority strategy campaigns, see <a href=\"/api-docs/sell/static/marketing/pl-campaign-flow-pla.html\" target=\"_blank \">Promoted listings priority strategy campaign flow</a>.<br><br>Promoted Offsite campaigns give sellers the ability to create their own advertising campaign and promote their eBay listing in leading external search channels. For more information on Promoted Offsite campaigns, see <a href=\"/api-docs/sell/static/marketing/offsite-ads.html\" target=\"_blank \">Promoted Offsite</a>.<br><br><span class=\"tablenote\"><b>Note:</b> Sellers can use the <a href=\"/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility\" target=\"_blank \">getAdvertisingEligibility</a> method of the <a href=\"/api-docs/sell/account/overview.html\" target=\"_blank \">Account API v1</a> to determine their eligibility status for eBay advertising programs.</span><br>To create a basic campaign, supply: <ul><li>The user-defined campaign name</li> <li>The start date (and optionally the end date) of the campaign</li> <li>The eBay marketplace on which the campaign is hosted</li> <li>Details on the campaign funding model</li></ul>For details on creating Promoted Listings campaigns and how to select the items to be included in your campaigns, see <a href=\"/api-docs/sell/static/marketing/pl-create-campaign.html\" target=\"_blank\">Promoted Listings campaign creation</a>.",
        "operationId": "createCampaign",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type defines the fields for the create campaign request.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the fields for the create campaign request.",
                "$ref": "#/components/schemas/CreateCampaignRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "description": "The <b>location</b> response header contains the <a href=\"`/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaign\">getCampaign</a> URI to the newly created campaign. The URL includes the eBay-assigned <code>campaignId</code>, which you can use to reference the campaign."
                },
                "style": "simple",
                "explode": false
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35103": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This campaign has reached maximum capacity of {maxSupportedNumber} listings. To continue promoting listings, create a new campaign."
                },
                "36410": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This campaign has been created with the suggested budget."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35003": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'campaignCriterion' is required for a criterion based campaign."
                },
                "35004": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "One of the selectionRule containers is empty. You must specify at least one rule in each selectionRule container. Note: 'categoryScope' is not a rule."
                },
                "35005": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'selectionRules' is required for criterion based campaigns."
                },
                "35006": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'fundingStrategy' is required for this call."
                },
                "35007": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' {bidPercentage} is not valid. The bid percentage should be a single precision value. Minimum value: {minBidPercent} , Maximum value:{maxBidPercent}."
                },
                "35008": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The category ID {categoryId} is not valid."
                },
                "35009": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing Condition ID {listingConditionId} is not valid. Refer to the API call documentation for a list of valid values."
                },
                "35015": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxPrice' or 'minPrice' value is missing or invalid. The value cannot be less than or equal to zero."
                },
                "35016": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'minPrice' {minPrice} cannot be greater than the 'maxPrice' {maxPrice}."
                },
                "35017": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'currency' is not valid or missing."
                },
                "35019": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Campaign name is required for this call."
                },
                "35020": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign name cannot be more than {maxCampaignNameLength} characters."
                },
                "35021": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A campaign with the name of {campaignName} already exists. Please provide a different name."
                },
                "35022": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The brand name {brandName} is not valid."
                },
                "35023": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request contains invalid characters. {notAllowedCharacters} are not allowed."
                },
                "35024": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign start date {startDate} cannot be after the end date {endDate}."
                },
                "35025": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A campaign start date is required."
                },
                "35026": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A campaign start or end date {date} cannot be in the past."
                },
                "35038": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The funding model is required. Valid values for 'fundingModel' are: {fundingModelValues}."
                },
                "35039": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'categoryScope' is required for criterion based campaigns using category based listing selection rules. Valid values are: {categoryScopeValues}."
                },
                "35041": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'marketplaceId' is required."
                },
                "35042": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The criterion type is required for criterion based campaigns. Valid values are: {criterionTypeValues}."
                },
                "35124": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCpc' {maxCpc} is not valid. Minimum value: {minMaxCpc} , Maximum value:{maxMaxCpc}."
                },
                "35125": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPreferences' list currently supports only one element. Please remove additional elements and try again."
                },
                "35134": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A 'biddingStrategy' cannot be supplied for smart targeting campaigns. Please either remove 'biddingStrategy' from the request to create a smart targeting campaign or supply another value for 'campaignTargetingType'."
                },
                "36101": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The daily budget value format is a maximum of two decimal points."
                },
                "36158": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The daily budget value format {dailyBudgetValue} cannot have more than 2 decimal places."
                },
                "36161": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Smart targeting campaigns require a `bidPreferences.maxCpc` value."
                },
                "36162": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCpc' currency should be the same as the daily budget."
                },
                "36163": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCpc' value {maxCpcValue} is below minimum value {maxCpcMinimumValue}."
                },
                "36164": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCpc' value {maxCpcValue} is above maximum value {maxCpcMaximumValue}."
                },
                "36165": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCpc' value {maxCpcValue} is more than maximum daily budget {maxDailyBudget}."
                },
                "36166": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCpc' value {maxCpcValue} is invalid. Refer to the API call documentation for more information."
                },
                "36406": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'channels' value {channel} can only be used with the {funding_model} fundingModel."
                },
                "36407": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'channels' value is invalid."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35051": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'marketplaceId' {marketplaceId} is not supported. Promoted Listings is supported only on these marketplaces: {supportedMarketplaces}."
                },
                "35052": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId} is not supported by the Promoted Listing service for multi-quantity listings."
                },
                "35053": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "MarketplaceId: {marketplaceId} and Currency: {currency} for the listing selection rule do not match."
                },
                "35067": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The seller must accept the Promoted Listing terms and conditions. For the requirements to use the Promoted Listing API, refer to the documentation."
                },
                "35069": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "No more than {maxNumberOfSelectionRules} listing selection rules are allowed in a campaign."
                },
                "35072": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The number of listings that result from the rules exceeds the maximum number of listings allowed in a campaign, which is {maxSupportedNumber}. Refine the rules and submit the call again."
                },
                "35074": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "There were no eligible listings found for the selection rules provided. Please check the rules and submit the call again."
                },
                "35075": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId} is not supported by the Promoted Listing service for single-quantity listings."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35094": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "Maximum number of campaigns allowed with the 'channels' value {channel} is exceeded."
                },
                "35095": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'marketplaceId' {marketplaceId} is not supported. Offsite Ads is supported only on these marketplaces: {supportedMarketplaces}."
                },
                "35104": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'categoryScope' STORE can not be found. Please define the store categories first or use 'categoryScope' MARKETPLACE to select categories."
                },
                "35106": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'BidPercentage' should be provided when selected 'adRateStrategy' is 'FIXED'."
                },
                "35107": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'dynamicAdRatePreferences' can be provided only when selected 'adRateStrategy' is 'DYNAMIC'."
                },
                "35108": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'adRateAdjustmentPercent' {adRateAdjustmentPercent} is not valid. Please set 'adRateAdjustmentPercent' {adRateAdjustmentPercent} between {minAllowedAdRateAdjustmentPercent}% - {maxAllowedAdRateAdjustmentPercent}%."
                },
                "35109": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'adRateCapPercent' {adRateCapPercent} is not valid. Please set 'adRateCapPercent' between {minAllowedAdRateCapPercent}% - {maxAllowedAdRateCapPercent}%."
                },
                "35110": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'adRateStrategy' is not supported for CPC funding model."
                },
                "35111": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'dynamicAdRatePreferences' is not supported for CPC funding model."
                },
                "35114": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'dynamicAdRatePreferences' list currently can only support one element containing dynamicAdRatePreference. Please remove additional elements and try again."
                },
                "35127": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'maxCPC' is only supported for CPC funding model campaigns with on-site channels and smart targeting type."
                },
                "35128": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'campaignTargetingType' is only supported for CPC funding model campaigns with on-site channels."
                },
                "35132": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'biddingStrategy' field is not supported for CPS funding model."
                },
                "35304": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "Another campaign cannot be created at this time, as the user is currently using a feature that only supports one campaign at a time."
                },
                "36151": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'campaignCriterion' {campaignCriterion} is not supported for CPC funding model."
                },
                "36152": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'bidPercentage' is not supported for CPC funding model."
                },
                "36153": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The daily budget currency {currency} is not supported for {fieldName}. The supported currency for the {marketplaceId} marketplace is {supportedCurrencyCode}."
                },
                "36154": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The daily budget below minimum allowed {minAllowed}."
                },
                "36155": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The daily budget above maximum allowed {maxAllowed}."
                },
                "36156": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "campaignBudget is not supported for CPS funding model."
                },
                "36157": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The daily budget is required for campaigns with CPC funding model."
                },
                "36158": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The daily budget value format {dailyBudgetValue} cannot have more than 2 decimal places."
                },
                "36159": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'marketplaceId' {marketPlaceId} is not supported. Promoted Listings with CPC funding model is supported only on these marketplaces: {supportedMarketplaces}."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}": {
      "get": {
        "tags": [
          "campaign"
        ],
        "description": "This method retrieves the details of a single campaign, as specified with the <b>campaign_id</b> query parameter.  <p>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 <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getads\">getAds</a>.</p>  <p>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve a list of the seller's campaign IDs.</p>",
        "operationId": "getCampaign",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign being retrieved.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Business error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developers support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "campaign"
        ],
        "description": "This method deletes the campaign specified by the <code>campaign_id</code> query parameter.<br /><br /><span class=\"tablenote\"><b>Note: </b> You can only delete campaigns that have ended.</span><br />Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve the <b>campaign_id</b> and the campaign status (<code>RUNNING</code>, <code>PAUSED</code>, <code>ENDED</code>, and so on) for all the seller's campaigns.",
        "operationId": "deleteCampaign",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign being deleted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\" target=\"_blank\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35056": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The state of the campaign cannot be changed as requested."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/end": {
      "post": {
        "tags": [
          "campaign"
        ],
        "description": "This method ends an active (<code>RUNNING</code>) or paused campaign. Specify the campaign you want to end by supplying its campaign ID in a query parameter.  <p>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve the <b>campaign_id</b> and the campaign status (<code>RUNNING</code>, <code>PAUSED</code>, <code>ENDED</code>, and so on) for all the seller's campaigns.</p>",
        "operationId": "endCampaign",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the <code>RUNNING</code> or <code>PAUSED</code> ad campaign that is being ended.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35056": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The state of the campaign cannot be changed as requested."
                },
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/find_campaign_by_ad_reference": {
      "get": {
        "tags": [
          "campaign"
        ],
        "description": "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 <b>listing_id</b>, <i>or</i> an <b>inventory_reference_id</b> and <b>inventory_reference_type</b> pair, as used in the Inventory API.<br /><br />eBay <i>listing IDs</i> are generated by either the <a href=\"/Devzone/XML/docs/Reference/eBay/index.html\" title=\"Trading API Reference\" target=\"_blank\">Trading API</a> or the <a href=\"/api-docs/sell/inventory/resources/methods\">Inventory API</a> when you create a listing.<br /><br />An <i>inventory reference ID</i> can be either a seller-defined <b>SKU</b> or <b>inventoryItemGroupKey</b>, as specified in the Inventory API.<br /><br /><span class=\"tablenote\"><b>Note:</b> 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 <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span>",
        "operationId": "findCampaignByAdReference",
        "parameters": [
          {
            "name": "inventory_reference_id",
            "in": "query",
            "description": "This query parameter specifies the unique identifier of a single-item listing or a multi-variation listing associated with the campaign being retrieved.<br><br>To retrieve an campaign for a single-item listing, set the <b>inventoryReferenceType</b> value to <code>INVENTORY_ITEM</code> and specify an item ID or a SKU (if the SKU is defined in the listing).<br><br>To retrieve an campaign for a multi-variation listing, set the <b>inventoryReferenceType</b> value to <code>INVENTORY_ITEM_GROUP</code> and specify the item ID for the multi-variation listing or the <b>inventoryitemGroupKey</b> value as defined in the Inventory API.<br><br><span class=\"tablenote\"><b>Note:</b> You must always pass in both <b>inventory_reference_id</b> and <b>inventory_reference_type</b>.</span>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "inventory_reference_type",
            "in": "query",
            "description": "This query parameter specifies the type of the seller's inventory reference ID, which is a listing or group of items.<br><br>See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getadsbyinventoryreference.inventoryreferencetypeenum\">InventoryReferenceTypeEnum</a> for supported values.<br><br><span class=\"tablenote\"><b>Note:</b> You must always pass in both <b>inventory_reference_id</b> and <b>inventory_reference_type</b>.</span>",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "INVENTORY_ITEM",
                "INVENTORY_ITEM_GROUP"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "listing_id",
            "in": "query",
            "description": "This query parameter specifies the unique identifier of the eBay listing associated with the ad being used to retrieve the campaign.<br /><br />eBay <i>listing IDs</i> are generated by either the <a href=\"/Devzone/XML/docs/Reference/eBay/index.html\" title=\"Trading API Reference\" target=\"_blank\">Trading API</a> or the <a href=\"/api-docs/sell/inventory/resources/methods\" target=\"_blank\">Inventory API</a> when you create a listing.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaigns"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35013": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is not valid."
                },
                "35014": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID is required for this call."
                },
                "35031": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A 'listing_id' or an 'inventory_reference_id' and 'inventory_reference_type' is required for this call."
                },
                "35032": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A 'listing_id' and an 'inventory_reference_id' cannot be used together in the same call. To use both in a campaign, you must submit two calls."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Business error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/get_campaign_by_name": {
      "get": {
        "tags": [
          "campaign"
        ],
        "description": "This method retrieves the details of a single campaign, as specified with the <b>campaign_name</b> 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.</p><p>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve a list of the seller's campaign names.</p>",
        "operationId": "getCampaignByName",
        "parameters": [
          {
            "name": "campaign_name",
            "in": "query",
            "description": "This query parameter specifies name of the campaign being retrieved.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve a list of a seller's campaign names.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Campaign"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35019": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Campaign name is required for this call."
                },
                "35020": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign name cannot be more than {maxCampaignNameLength} characters."
                },
                "35023": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request contains invalid characters. {notAllowedCharacters} are not allowed."
                },
                "35046": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found with the name {campaign_name}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35046": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found with the name {campaign_name}."
                }
              }
            }
          },
          "409": {
            "description": "Business error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/pause": {
      "post": {
        "tags": [
          "campaign"
        ],
        "description": "This method pauses an active (RUNNING) campaign.  <p>You can restart the campaign by calling <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-resumecampaign\">resumeCampaign</a>, as long as the campaign's end date is in the future.<br><br><span class=\"tablenote\"><b>Note:</b>The listings associated with a paused campaign cannot be added into another campaign.</span><br>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve the <b>campaign_id</b> and the campaign status (<code>RUNNING</code>, <code>PAUSED</code>, <code>ENDED</code>, and so on) for all the seller's campaigns.",
        "operationId": "pauseCampaign",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the <code>RUNNING</code> ad campaign being paused.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35056": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The state of the campaign cannot be changed as requested."
                },
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35303": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The status of this campaign cannot be modified through this API. Refer to the API call documentation for more information."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/resume": {
      "post": {
        "tags": [
          "campaign"
        ],
        "description": "This method resumes a paused campaign, as long as its end date is in the future. Supply the <b>campaign_id</b> for the campaign you want to restart as a query parameter in the request.  <p>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve the <b>campaign_id</b> and the campaign status (<code>RUNNING</code>, <code>PAUSED</code>, <code>ENDED</code>, and so on) for all the seller's campaigns.</p>",
        "operationId": "resumeCampaign",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the paused ad campaign that is being resumed.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35056": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The state of the campaign cannot be changed as requested."
                },
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/suggest_budget": {
      "get": {
        "tags": [
          "campaign"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> This method is only supported for Promoted Offsite campaigns. Sellers can use the <a href=\"/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility\" target=\"_blank \">getAdvertisingEligibility</a> method of the <a href=\"/api-docs/sell/account/overview.html\" target=\"_blank \">Account API v1</a> to determine if they are eligible for offsite campaigns.</span><br>This method allows sellers to retrieve the suggested budget for an offsite campaign.",
        "operationId": "suggestBudget",
        "parameters": [
          {
            "name": "X-EBAY-C-MARKETPLACE-ID",
            "in": "header",
            "description": "This header identifies the seller's eBay marketplace.<br><br><span class=\"tablenote\"><b>Note:</b> If a marketplace ID value is not provided, the default value of <code>EBAY_US</code> is used.</span><br>See <a href=\"/develop/guides-v2/using-ebay-restful-apis#marketpl\" target=\"_blank \">Marketplace ID values</a> for supported values.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "EBAY_AT",
                "EBAY_AU",
                "EBAY_BE",
                "EBAY_CA",
                "EBAY_CH",
                "EBAY_CN",
                "EBAY_CZ",
                "EBAY_DE",
                "EBAY_DK",
                "EBAY_ES",
                "EBAY_FI",
                "EBAY_FR",
                "EBAY_GB",
                "EBAY_GR",
                "EBAY_HK",
                "EBAY_HU",
                "EBAY_ID",
                "EBAY_IE",
                "EBAY_IL",
                "EBAY_IN",
                "EBAY_IT",
                "EBAY_JP",
                "EBAY_MY",
                "EBAY_NL",
                "EBAY_NO",
                "EBAY_NZ",
                "EBAY_PE",
                "EBAY_PH",
                "EBAY_PL",
                "EBAY_PR",
                "EBAY_PT",
                "EBAY_RU",
                "EBAY_SE",
                "EBAY_SG",
                "EBAY_TH",
                "EBAY_TW",
                "EBAY_US",
                "EBAY_VN",
                "EBAY_ZA",
                "EBAY_HALF_US",
                "EBAY_MOTORS_US"
              ]
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SuggestBudgetResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35041": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'marketplaceId' is required."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35095": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'marketplaceId' {marketplaceId} is not supported. Offsite Ads is supported only on these marketplaces: {supportedMarketplaces}."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/suggest_items": {
      "get": {
        "tags": [
          "campaign"
        ],
        "description": "This method allows sellers to obtain ideas for listings, which can be targeted for Promoted Listings campaigns.",
        "operationId": "suggestItems",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which suggestions are being provided.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "category_ids",
            "in": "query",
            "description": "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 <code>null</code>.<br><br>Use the <a href=\"/api-docs/commerce/taxonomy/resources/category_tree/methods/getCategorySuggestions\" target=\"_blank\">getCategorySuggestions</a> method to retrieve category IDs.<br /><br /><b>Maximum: </b> 10 ",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "limit",
            "in": "query",
            "description": "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. <br /><br /><b>Default: </b>10 <br /><br /><b>Minimum: </b> 1<br /><br /><b>Maximum: </b> 1000",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Specifies the number of campaigns to skip in the result set before returning the first report in the paginated response.<br><br>Combine <b>offset</b> with the <b>limit</b> query parameter to control the items returned in the response. For example, if you supply an <b>offset</b> of <code>0</code> and a <b>limit</b> of <code>10</code>, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If <b>offset</b> is <code>10</code> and <b>limit</b> is <code>20</code>, the first page of the response contains items 11-30 from the complete result set.<br><br> <b>Default:</b> 0",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TargetedAdsPagedCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35008": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The category ID {categoryId} is not valid."
                },
                "35029": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'limit' has to be greater than zero and less than {maxLimitValue}."
                },
                "35030": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'offset' cannot be less than zero."
                },
                "35041": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'marketplaceId' is required."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35090": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Category ID limit exceeded. You can pass up to a maximum of {maxCategoryLimit} category IDs per request."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35051": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'marketplaceId' {marketplaceId} is not supported. Promoted Listings is supported only on these marketplaces: {supportedMarketplaces}."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/suggest_max_cpc": {
      "post": {
        "tags": [
          "campaign"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> This method is only supported for smart targeting priority strategy campaigns. Sellers can use the <a href=\"/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility \" target=\"_blank \">getAdvertisingEligibility</a> method of the Account API v1 to determine if they are eligible for a priority strategy campaign.</span><br />This method allows sellers to retrieve the suggested maximum cost-per-click value for a smart targeting campaign. This value is required when creating a smart targeting campaign and indicates the maximum amount for which the eBay suggested bid can be adjusted.",
        "operationId": "suggestMaxCpc",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type defines the fields used in the <b>suggestMaxCpc</b> request.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the fields used in the <b>suggestMaxCpc</b> request.",
                "$ref": "#/components/schemas/SuggestMaxCpcRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "description": "This type defines the fields used in the <b>suggestMaxCpc</b> response.",
                  "$ref": "#/components/schemas/SuggestMaxCpcResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35041": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'marketplaceId' is required."
                },
                "35135": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Please supply one or more values in the ‘listingIds’ field in the request."
                },
                "35136": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The following values you supplied in the ‘listingIds’ field are invalid: {listingIds}"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35051": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'marketplaceId' {marketplaceId} is not supported. Promoted Listings is supported only on these marketplaces: {supportedMarketplaces}."
                },
                "35057": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing Id {listingId} does not belong to the seller making this call"
                },
                "35068": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs. Only {maxSupportedNumber} listings are supported per call."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/update_ad_rate_strategy": {
      "post": {
        "tags": [
          "campaign"
        ],
        "description": "This method updates the ad rate strategy for an existing rules-based general strategy ad campaign that uses the Cost Per Sale (CPS) funding model.<br /><br />Specify the <b>campaign_id</b> as a path parameter. You can retrieve the campaign IDs for a seller by calling the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method.<br /><br /><span class=\"tablenote\"><b>Note:</b> This method only applies to the CPS funding model; it does not apply to the Cost Per Click (CPC) funding model. See <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span>",
        "operationId": "updateAdRateStrategy",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which the ad rate strategy is being updated.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type defines the request fields for the ad rate strategy that shall be updated.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the request fields for the ad rate strategy that shall be updated.",
                "$ref": "#/components/schemas/UpdateAdrateStrategyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35007": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPercentage' {bidPercentage} is not valid. The bid percentage should be a single precision value. Minimum value: {minBidPercent} , Maximum value:{maxBidPercent}."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35043": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign status of {campaignStatus} is either invalid or not supported for this operation."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35106": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'BidPercentage' should be provided when selected 'adRateStrategy' is 'FIXED'."
                },
                "35107": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'dynamicAdRatePreferences' can be provided only when selected 'adRateStrategy' is 'DYNAMIC'."
                },
                "35108": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'adRateAdjustmentPercent' {adRateAdjustmentPercent} is not valid. Please set 'adRateAdjustmentPercent' {adRateAdjustmentPercent} between {minAllowedAdRateAdjustmentPercent}% - {maxAllowedAdRateAdjustmentPercent}%."
                },
                "35109": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'adRateCapPercent' {adRateCapPercent} is not valid. Please set 'adRateCapPercent' between {minAllowedAdRateCapPercent}% - {maxAllowedAdRateCapPercent}%."
                },
                "35110": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'adRateStrategy' is not supported for CPC funding model."
                },
                "35111": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'dynamicAdRatePreferences' is not supported for CPC funding model."
                },
                "35114": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'dynamicAdRatePreferences' list currently can only support one element containing dynamicAdRatePreference. Please remove additional elements and try again."
                },
                "35308": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'adRateStrategy' of this campaign cannot be modified through this API. Refer to the API call documentation for more information."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/update_bidding_strategy": {
      "post": {
        "tags": [
          "campaign"
        ],
        "description": "This method allows sellers to change the bidding strategy for a specified Cost Per Click (CPC) campaign that uses manual targeting. Available bidding strategies are:<ul><li><code>FIXED</code><br><br>When using a fixed bidding strategy, sellers manually assign and adjust keyword bids for the CPC campaign.</li><li><code>DYNAMIC</code><br><br>When using a dynamic bidding strategy, eBay will manage a campaign's keyword bids and automatically update them daily to the suggested bid.<br><br><span class=\"tablenote\"><b>Note:</b> For a CPC campaign using dynamic bidding, sellers can continue to manually add keywords for the campaign, but they are no longer able to manually adjust their associated bid values. In order to manually adjust bid values, sellers must use the <code>FIXED</code> bidding strategy.</span></li></ul>In addition, this method allows sellers to modify the <b>maxCPC</b> value of a smart targeting campaign.<br><span class=\"tablenote\"><b>Note:</b> This method only applies to the Cost Per Click (CPC) funding model; it does not apply to the Cost Per Sale (CPS) funding model. Refer to <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span>",
        "operationId": "updateBiddingStrategy",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which the keyword bidding strategy is being updated.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type specifies the new value for the bidding strategy.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type specifies the new value for the bidding strategy.",
                "$ref": "#/components/schemas/UpdateBiddingStrategyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35124": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCpc' {maxCpc} is not valid. Minimum value: {minMaxCpc} , Maximum value:{maxMaxCpc}."
                },
                "35125": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bidPreferences' list currently supports only one element. Please remove additional elements and try again."
                },
                "35130": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'biddingStrategy' is required."
                },
                "36100": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This functionality is not supported for CPS funding model."
                },
                "36101": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This functionality is not supported for CPS funding model."
                },
                "36161": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Smart targeting campaigns require a `bidPreferences.maxCpc` value."
                },
                "36162": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCpc' currency should be the same as the daily budget."
                },
                "36163": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCpc' value {maxCpcValue} is below minimum value {maxCpcMinimumValue}."
                },
                "36164": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCpc' value {maxCpcValue} is above maximum value {maxCpcMaximumValue}."
                },
                "36165": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCpc' value {maxCpcValue} is more than maximum daily budget {maxDailyBudget}."
                },
                "36166": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCpc' value {maxCpcValue} is invalid. Refer to the API call documentation for more information."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35126": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'biddingStrategy' isn't applicable for campaigns with smart targeting type."
                },
                "35127": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "'maxCPC' is only supported for CPC funding model campaigns with on-site channels and smart targeting type."
                },
                "35134": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "A 'biddingStrategy' cannot be supplied for smart targeting campaigns. Please either remove 'biddingStrategy' from the request to create a smart targeting campaign or supply another value for 'campaignTargetingType'."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/update_campaign_budget": {
      "post": {
        "tags": [
          "campaign"
        ],
        "description": "This method updates the daily budget for a priority strategy campaign that uses the Cost Per Click (CPC) funding model.<br /><br />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.<br /><br />Specify the <b>campaign_id</b> as a path parameter. You can retrieve the campaign IDs for a seller by calling the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method.<br><br><span class=\"tablenote\"><b>Note:</b> The daily budget for a campaign can only be updated 15 times per day. If this limit is exceeded, an error will occur and you will be blocked from updating the  budget until the next day.</span>",
        "operationId": "updateCampaignBudget",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which the budget is being updated.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type defines the request fields for the budget details that shall be updated.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the request fields for the budget details that shall be updated.",
                "$ref": "#/components/schemas/UpdateCampaignBudgetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "36169": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You can update your budget one more time today."
                },
                "36170": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You’ve reached the daily update limit for daily budget changes."
                }
              }
            }
          },
          "204": {
            "description": "No content",
            "x-response-codes": {
              "errors": {
                "36169": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You can update your budget one more time today."
                },
                "36170": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You’ve reached the daily update limit for daily budget changes."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36100": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This functionality is not supported for CPS funding model."
                },
                "36101": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The daily budget value format is a maximum of two decimal points."
                },
                "36158": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The daily budget value format {dailyBudgetValue} cannot have more than 2 decimal places."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "36153": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The daily budget currency {currency} is not supported for {fieldName}. The supported currency for the {marketplaceId} marketplace is {supportedCurrencyCode}."
                },
                "36154": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The daily budget below minimum allowed {minAllowed}."
                },
                "36155": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The daily budget above maximum allowed {maxAllowed}."
                },
                "36156": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "campaignBudget is not supported for CPS funding model."
                },
                "36157": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The daily budget is required for campaigns with CPC funding model."
                },
                "36158": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The daily budget value format {dailyBudgetValue} cannot have more than 2 decimal places."
                },
                "36167": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The daily budget change must be at least 0.50 {currencyCode}."
                },
                "36168": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the allowed limit on daily budget changes for this campaign."
                },
                "36408": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The seller must accept the new pricing policy before the campaign can be updated."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/update_campaign_identification": {
      "post": {
        "tags": [
          "campaign"
        ],
        "description": "This method can be used to change the name of a campaign, as well as modify the start or end dates. <p>Specify the <b>campaign_id</b> you want to update as a URI parameter, and configure the <b>campaignName</b> and <b>startDate</b> in the request payload.  <p>If you want to change only the end date of the campaign, specify the current campaign name, set <b>endDate</b> as desired, and set <b>startDate</b> to the actual start date of the campaign. This applies if the campaign status is <code>RUNNING</code> or <code>PAUSED</code>. You can retrieve the <b>startDate</b> using the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaign.campaign.startdate\">getCampaign</a> method.</p> <p>Note that if you do not set a new end date in this call, any current <b>endDate</b> value will be set to <code>null</code>. To preserve the currently-set end date, you must specify the value again in your request.</p>  <p>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve a seller's campaign details, including the campaign ID, campaign name, and the start and end dates of the campaign.",
        "operationId": "updateCampaignIdentification",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign being updated.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type defines the fields to update the campaign name and start and end dates.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the fields to update the campaign name and start and end dates.",
                "$ref": "#/components/schemas/UpdateCampaignIdentificationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35019": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Campaign name is required for this call."
                },
                "35020": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign name cannot be more than {maxCampaignNameLength} characters."
                },
                "35021": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A campaign with the name of {campaignName} already exists. Please provide a different name."
                },
                "35023": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request contains invalid characters. {notAllowedCharacters} are not allowed."
                },
                "35024": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign start date {startDate} cannot be after the end date {endDate}."
                },
                "35025": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A campaign start date is required."
                },
                "35026": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A campaign start or end date {date} cannot be in the past."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35055": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The start date cannot be modified for an active campaign."
                },
                "35061": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is being synced to match the specifications of the campaign. Please wait a few minutes and try the call again."
                },
                "35063": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The campaign with 'campaign_id' {campaign_id} is ending soon. No update operations are allowed on this campaign until it ends."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35306": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'endDate' of this campaign cannot be modified through this API. Refer to the API call documentation for more information."
                },
                "35307": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'campaignName' of this campaign cannot be modified through this API. Refer to the API call documentation for more information."
                },
                "36408": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The seller must accept the new pricing policy before the campaign can be updated."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/bulk_create_keyword": {
      "post": {
        "tags": [
          "keyword"
        ],
        "description": "This method adds keywords, in bulk, to an existing priority strategy ad group in a campaign that uses manual targeting.<br><br>This method also sets the CPC rate for each keyword, depending on the selected bidding strategy, as follows:<br><br><ul><li><code>FIXED</code>: If the seller provides a keyword bid, that bid value will be used.<br>If no bid is provided, the adgroup's default bid value will be used.</li><li><code>DYNAMIC</code>: The eBay suggested bid will be used.<br>If the seller passes in a value, a warning will be returned.</li></ul><br>In the request, supply the <b>campaign_id</b> as a path parameter.<br /><br />Call the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve a list of current campaign IDs for a specified seller.",
        "operationId": "bulkCreateKeyword",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which a set of keywords is being created.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "A type that defines the fields for the bulk request to create keywords.",
          "content": {
            "application/json": {
              "schema": {
                "description": "A type that defines the fields for the bulk request to create keywords.",
                "$ref": "#/components/schemas/BulkCreateKeywordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateKeywordResponse"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35133": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The bid provided in the call was ignored because the selected biddingStrategy is DYNAMIC for the campaign."
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateKeywordResponse"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35133": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The bid provided in the call was ignored because the selected biddingStrategy is DYNAMIC for the campaign."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35033": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one request is required for bulk requests."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                },
                "36219": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The ad group with ad group id {ad_group_id} has been archived."
                },
                "36301": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The keyword match type {matchType} is not supported. Valid values are: {matchTypeValues}."
                },
                "36303": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A keyword with text {keywordText} and match type {matchType} already exists for this Ad Group."
                },
                "36304": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The keywordText {keywordText} cannot be more than {maxKeywordTextLength} characters."
                },
                "36305": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is not valid. The default bid value should be a double precision value."
                },
                "36306": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is below floor value {bidFloorValue}."
                },
                "36307": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is above max value {bidMaxValue}."
                },
                "36308": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' currency {bidCurrency} is not valid or missing."
                },
                "36309": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' currency {bidCurrency} should be the same as the daily budget."
                },
                "36311": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The keywordText cannot be null or empty."
                },
                "36312": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The keywordText contains invalid characters {invalidCharacters}"
                },
                "36313": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is more than maximum daily budget {maxDailyBudget}."
                },
                "36315": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "There are duplicate KeywordText and matchType combination in this request. You must remove the duplicate."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This method is not supported for campaigns with smart targeting type."
                },
                "36316": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of Keyword requests in a bulk request. Only {maxSupportedRequestNumberInBulk} IDs are supported per call."
                },
                "36319": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of create Keyword for an Ad Group. Only {maxSupportedNumber} IDs are supported per Ad Group."
                },
                "36320": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The keywordText {keywordText} cannot have total number of words more than {maxWordsInKeyword} words."
                },
                "36322": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "Total keyword requests exceed the current AdGroup keyword capacity, which is {maxSupportedRequestNumber}."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/bulk_update_keyword": {
      "post": {
        "tags": [
          "keyword"
        ],
        "description": "This method updates the bids and statuses of keywords, in bulk, for an existing priority strategy campaign.<br /><br />In the request, supply the <b>campaign_id</b> as a path parameter.<br /><br />Call the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve a list of current campaign IDs for a specified seller.",
        "operationId": "bulkUpdateKeyword",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which a set of keywords is being updated. <br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "A type that defines the fields for the bulk request to update keywords.",
          "content": {
            "application/json": {
              "schema": {
                "description": "A type that defines the fields for the bulk request to update keywords.",
                "$ref": "#/components/schemas/BulkUpdateKeywordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkUpdateKeywordResponse"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35133": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The bid provided in the call was ignored because the selected biddingStrategy is DYNAMIC for the campaign."
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkUpdateKeywordResponse"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35133": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The bid provided in the call was ignored because the selected biddingStrategy is DYNAMIC for the campaign."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36305": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is not valid. The default bid value should be a double precision value."
                },
                "36306": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is below floor value {bidFloorValue}."
                },
                "36307": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is above max value {bidMaxValue}."
                },
                "36308": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' currency {bidCurrency} is not valid or missing."
                },
                "36309": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' currency {bidCurrency} should be the same as the daily budget."
                },
                "36310": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No keyword found for keyword id {keyword_id}."
                },
                "36313": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is more than maximum daily budget {maxDailyBudget}."
                },
                "36317": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' or 'keywordStatus' is missing, either one is required for update."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This method is not supported for campaigns with smart targeting type."
                },
                "36316": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of Keyword requests in a bulk request. Only {maxSupportedRequestNumberInBulk} IDs are supported per call."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/keyword": {
      "get": {
        "tags": [
          "keyword"
        ],
        "description": "This method can be used to retrieve all of the keywords for ad groups in priority strategy campaigns that use the Cost Per Click (CPC) funding model.<br /><br />In the request, specify the <b>campaign_id</b> as a path parameter. If one or more <b>ad_group_ids</b> are passed in the request body, the keywords for those ad groups will be returned. If <b>ad_group_ids</b> are not passed in the response body, the call will return all the keywords in the campaign.<br /><br />Call the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller.",
        "operationId": "getKeywords",
        "parameters": [
          {
            "name": "ad_group_ids",
            "in": "query",
            "description": "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.<br><br>Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups\">getAdGroups</a> method to retrieve the ad group IDs for a seller.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the keyword(s) being retrieved. <br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "keyword_status",
            "in": "query",
            "description": "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.<br><br>See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-keyword-getkeywords.keywordstatusenum\">KeywordStatusEnum</a> for supported values.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "PAUSED",
                "ARCHIVED"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "limit",
            "in": "query",
            "description": "<p>Specifies the maximum number of results to return on a page in the paginated response.</p>  <b>Default: </b>10 <br><b>Maximum: </b> 500",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Specifies the number of results to skip in the result set before returning the first report in the paginated response.  <p>Combine <b>offset</b> with the <b>limit</b> query parameter to control the items returned in the response. For example, if you supply an <b>offset</b> of <code>0</code> and a <b>limit</b> of <code>10</code>, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If <b>offset</b> is <code>10</code> and <b>limit</b> is <code>20</code>, the first page of the response contains items 11-30 from the complete result set.</p> <p><b>Default:</b> 0</p>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeywordPagedCollectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35029": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'limit' has to be greater than zero and less than {maxLimitValue}."
                },
                "35030": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'offset' cannot be less than zero."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36314": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Ad Group IDs should be delimited by {adGroupIdsDelimiter}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This method is not supported for campaigns with smart targeting type."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "keyword"
        ],
        "description": "This method creates keywords using a specified campaign ID for an existing priority strategy campaign that uses manual targeting.<br /><br />In the request, supply the <b>campaign_id</b> as a path parameter.<br /><br />Call the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-suggestkeywords\">suggestKeywords</a> method to retrieve a list of keyword ideas to be targeted for priority strategy campaigns, and call the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller.",
        "operationId": "createKeyword",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which a keyword is being created. <br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\" target=\"_blank\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "A type that defines the fields for the request to create a keyword.",
          "content": {
            "application/json": {
              "schema": {
                "description": "A type that defines the fields for the request to create a keyword.",
                "$ref": "#/components/schemas/CreateKeywordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "description": "The <b>location</b> response header contains the getKeyword URI of the newly created keyword.  The URI includes the newly created <code>keywordId</code>, which you can use to reference the keyword."
                },
                "style": "simple",
                "explode": false
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35133": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The bid provided in the call was ignored because the selected biddingStrategy is DYNAMIC for the campaign."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                },
                "36219": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The ad group with ad group id {ad_group_id} has been archived."
                },
                "36301": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The keyword match type {matchType} is not supported. Valid values are: {matchTypeValues}."
                },
                "36303": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A keyword with text {keywordText} and match type {matchType} already exists for this Ad Group."
                },
                "36304": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The keywordText {keywordText} cannot be more than {maxKeywordTextLength} characters."
                },
                "36305": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is not valid. The default bid value should be a double precision value."
                },
                "36306": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is below floor value {bidFloorValue}."
                },
                "36307": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is above max value {bidMaxValue}."
                },
                "36308": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' currency {bidCurrency} is not valid or missing."
                },
                "36309": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' currency {bidCurrency} should be the same as the daily budget."
                },
                "36311": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The keywordText cannot be null or empty."
                },
                "36312": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The keywordText contains invalid characters {invalidCharacters}."
                },
                "36313": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is more than maximum daily budget {maxDailyBudget}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This method is not supported for campaigns with smart targeting type."
                },
                "36319": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of create Keyword for an Ad Group. Only {maxSupportedNumber} IDs are supported per Ad Group."
                },
                "36320": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The keywordText {keywordText} cannot have total number of words more than {maxWordsInKeyword} words."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/keyword/{keyword_id}": {
      "get": {
        "tags": [
          "keyword"
        ],
        "description": "This method retrieves details on a specific keyword from an ad group within a priority strategy campaign that uses the Cost Per Click (CPC) funding model.<br /><br />In the request, specify the <b>campaign_id</b> and <b>keyword_id</b> as path parameters.<br /><br />Call the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller and call the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-keyword-getkeywords\">getKeywords</a> method to retrieve their keyword IDs.",
        "operationId": "getKeyword",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the keyword being retrieved. <br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "keyword_id",
            "in": "path",
            "description": "This path parameter specifies the unique identifier of the keyword being retrieved.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-keyword-getkeywords\">getKeywords</a> method to retrieve keyword IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Keyword"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36310": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No keyword found for keyword id {keyword_id}."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36310": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No keyword found for keyword id {keyword_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This method is not supported for campaigns with smart targeting type."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "keyword"
        ],
        "description": "This method updates keywords using a campaign ID and keyword ID for an existing priority strategy campaign.<br /><br />In the request, specify the <b>campaign_id</b> and <b>keyword_id</b> as path parameters.<br /><br />Call the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller and call the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-keyword-getkeywords\">getKeywords</a> method to retrieve their keyword IDs.",
        "operationId": "updateKeyword",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the keyword being updated. <br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "keyword_id",
            "in": "path",
            "description": "This path parameter specifies the unique identifier of the keyword being updated.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-keyword-getkeywords\">getKeywords</a> method to retrieve keyword IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "A type that defines the fields for the request to update a keyword.",
          "content": {
            "application/json": {
              "schema": {
                "description": "A type that defines the fields for the request to update a keyword.",
                "$ref": "#/components/schemas/UpdateKeywordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateKeywordResponse"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35133": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The bid provided in the call was ignored because the selected biddingStrategy is DYNAMIC for the campaign."
                }
              }
            }
          },
          "204": {
            "description": "No content",
            "x-response-codes": {
              "errors": {
                "35133": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The bid provided in the call was ignored because the selected biddingStrategy is DYNAMIC for the campaign."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36305": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is not valid. The default bid value should be a double precision value."
                },
                "36306": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is below floor value {bidFloorValue}."
                },
                "36307": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is above max value {bidMaxValue}."
                },
                "36308": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' currency {bidCurrency} is not valid or missing."
                },
                "36309": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' currency {bidCurrency} should be the same as the daily budget."
                },
                "36310": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No keyword found for keyword id {keyword_id}."
                },
                "36313": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' value {bidValue} is more than maximum daily budget {maxDailyBudget}."
                },
                "36317": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'bid' or 'keywordStatus' is missing, either one is required for update."
                },
                "36318": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The keyword with 'keyword_id' {keyword_Id} is already archived and cannot be updated."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36310": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No keyword found for keyword id {keyword_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This method is not supported for campaigns with smart targeting type."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/bulk_create_negative_keyword": {
      "post": {
        "tags": [
          "negative_keyword"
        ],
        "description": "This method adds negative keywords, in bulk, to an existing ad group in a priority strategy campaign that uses manual targeting.<br /><br />Specify the <b>campaignId</b> and <b>adGroupId</b> in the request body, along with the <b>negativeKeywordText</b> and <b>negativeKeywordMatchType</b>.<br /><br />Call the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve a list of current campaign IDs for a specified seller.",
        "operationId": "bulkCreateNegativeKeyword",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "A type that defines the fields for the bulk request to create negative keywords.",
          "content": {
            "application/json": {
              "schema": {
                "description": "A type that defines the fields for the bulk request to create negative keywords.",
                "$ref": "#/components/schemas/BulkCreateNegativeKeywordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateNegativeKeywordResponse"
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkCreateNegativeKeywordResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35033": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one request is required for bulk requests."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                },
                "36219": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The ad group with ad group id {ad_group_id} has been archived."
                },
                "36323": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'negativeKeywordText' {negativeKeywordText} and 'negativeKeywordMatchType' {negativeKeywordMatchType} already exists for this Campaign."
                },
                "36330": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The provided negative keyword match type is not supported. Valid values are: {negativeKeywordMatchTypeValues}."
                },
                "36331": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'negativeKeywordText' {negativeKeywordText} and 'negativeKeywordMatchType' {negativeKeywordMatchType} already exists for this Ad Group."
                },
                "36332": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'negativeKeywordText' {negativeKeywordText} cannot be more than {maxNegativeKeywordTextLength} characters."
                },
                "36333": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'negativeKeywordText' cannot be null or empty"
                },
                "36334": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'negativeKeywordText' contains invalid characters {invalidCharacters}"
                },
                "36335": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You have exceeded the maximum number of negative keyword for an ad group. Only {maxSupportedNegativeKeywordNumber} Ids are supported per ad group."
                },
                "36336": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'negativeKeywordText' {negativeKeywordText} cannot have total number of words more than {maxWordsInNegativeKeyword} words."
                },
                "36337": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You have exceeded the maximum number of negative keyword requests in a bulk. Only {maxSupportedNegativeKeywordRequestNumberInBulk} Ids are supported per call."
                },
                "36338": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "There are duplicate 'negativeKeywordText' and 'negativeKeywordMatchType' combination in this request. You must remove the duplicate(s)."
                },
                "36339": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Total negative keyword requests exceed the current AdGroup negative keyword capacity, which is {maxSupportedNegativeKeywordRequestNumber}."
                },
                "36345": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'campaignId' and 'adGroupId' are required."
                },
                "36346": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You have exceeded the maximum number of negative keyword for a campaign. Only {maxSupportedNegativeKeywordNumberCampaign} Ids are supported per campaign."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This method is not supported for campaigns with smart targeting type."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/bulk_update_negative_keyword": {
      "post": {
        "tags": [
          "negative_keyword"
        ],
        "description": "This method updates the statuses of existing negative keywords, in bulk.<br /><br />Specify the <b>negativeKeywordId</b> and <b>negativeKeywordStatus</b> in the request body.",
        "operationId": "bulkUpdateNegativeKeyword",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "A type that defines the fields for the bulk request to update negative keyword statuses.",
          "content": {
            "application/json": {
              "schema": {
                "description": "A type that defines the fields for the bulk request to update negative keyword statuses.",
                "$ref": "#/components/schemas/BulkUpdateNegativeKeywordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkUpdateNegativeKeywordResponse"
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkUpdateNegativeKeywordResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "36337": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You have exceeded the maximum number of negative keyword requests in a bulk. Only {maxSupportedNegativeKeywordRequestNumberInBulk} Ids are supported per call."
                },
                "36340": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No negative keyword found for negative keyword id {negativeKeywordId}."
                },
                "36341": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "There are duplicate negative keyword IDs in this request. You must remove the duplicate(s)."
                },
                "36342": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "NegativeKeywordStatus is missing or invalid. It is required for update."
                },
                "36343": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Negative keyword with negative keyword id {negativeKeywordId} is already archived and cannot be updated."
                },
                "36348": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Negative keyword id 'negativeKeywordId' is required."
                },
                "36349": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'negativeKeywordId' is invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/negative_keyword": {
      "get": {
        "tags": [
          "negative_keyword"
        ],
        "description": "This method can be used to retrieve all of the negative keywords for ad groups in priority strategy campaigns that use the Cost Per Click (CPC) funding model.<br /><br />The results can be filtered using the <b>campaign_ids</b>, <b>ad_group_ids</b>, and <b>negative_keyword_status</b> query parameters.<br /><br />Call the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller.",
        "operationId": "getNegativeKeywords",
        "parameters": [
          {
            "name": "ad_group_ids",
            "in": "query",
            "description": "A comma-separated list of ad group IDs.<br /><br />This query parameter is used if the seller wants to retrieve the negative keywords from one or more specific ad groups. The results might not include these ad group IDs if other search conditions exclude them.<br /><br />Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups\">getAdGroups</a> method to retrieve the ad group IDs for a seller.<br /><br /><i>Required if</i> the search results must be filtered to include negative keywords created at the ad group level.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "campaign_ids",
            "in": "query",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the negative keywords being retrieved.<br /><br />This query parameter is used if the seller wants to retrieve the negative keywords from a specific campaign. The results might not include these campaign IDs if other search conditions exclude them.<br /><br /><span class=\"tablenote\"><b>Note:</b> Currently, only one campaign ID value is supported for each request.</span><br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The number of results, from the current result set, to be returned in a single page.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "negative_keyword_status",
            "in": "query",
            "description": "A comma-separated list of negative keyword statuses.<br /><br />This query parameter is used if the seller wants to filter the search results based on one or more negative keyword statuses.<br><br> See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-negative_keyword-getnegativekeywords.negativekeyword.negativekeywordtext\">NegativeKeywordStatusEnum</a> for supported values.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "ARCHIVED"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "offset",
            "in": "query",
            "description": "The number of results that will be skipped in the result set. This is used with the <b>limit</b> field to control the pagination of the output.<br /><br />For example, if the <b>offset</b> is set to <code>0</code> and the <b>limit</b> is set to <code>10</code>, the method will retrieve items 1 through 10 from the list of items returned. If the <b>offset</b> is set to <code>10</code> and the <b>limit</b> is set to <code>10</code>, the method will retrieve items 11 through 20 from the list of items returned.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NegativeKeywordPagedCollectionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35029": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'limit' has to be greater than zero and less than {maxLimitValue}."
                },
                "35030": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'offset' cannot be less than zero."
                },
                "36329": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The ad group ID is required."
                },
                "36347": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Currently only one value is supported for 'campaign_ids'."
                },
                "36350": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'negative_keyword_status' is invalid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This method is not supported for campaigns with smart targeting type."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "negative_keyword"
        ],
        "description": "This method adds a negative keyword to an existing ad group in a priority strategy campaign that uses manual targeting.<br /><br />Specify the <b>campaignId</b> and <b>adGroupId</b> in the request body, along with the <b>negativeKeywordText</b> and <b>negativeKeywordMatchType</b>.<br /><br />Call the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve a list of current campaign IDs for a specified seller.",
        "operationId": "createNegativeKeyword",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "A type that defines the fields for the request to create a negative keyword.",
          "content": {
            "application/json": {
              "schema": {
                "description": "A type that defines the fields for the request to create a negative keyword.",
                "$ref": "#/components/schemas/CreateNegativeKeywordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "description": "The <b>location</b> response header contains the URI of the newly created negative keyword. The URI includes the newly created <code>negativeKeywordId</code>, which you can use to reference the negative keyword."
                },
                "style": "simple",
                "explode": false
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                },
                "36219": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The ad group with ad group id {ad_group_id} has been archived."
                },
                "36323": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'negativeKeywordText' {negativeKeywordText} and 'negativeKeywordMatchType' {negativeKeywordMatchType} already exists for this Campaign."
                },
                "36330": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The provided negative keyword match type is not supported. Valid values are: {negativeKeywordMatchTypeValues}."
                },
                "36331": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'negativeKeywordText' {negativeKeywordText} and 'negativeKeywordMatchType' {negativeKeywordMatchType} already exists for this Ad Group."
                },
                "36332": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'negativeKeywordText' {negativeKeywordText} cannot be more than {maxNegativeKeywordTextLength} characters."
                },
                "36333": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'negativeKeywordText' cannot be null or empty."
                },
                "36334": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'negativeKeywordText' contains invalid characters {invalidCharacters}."
                },
                "36335": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You have exceeded the maximum number of negative keyword for an ad group. Only {maxSupportedNegativeKeywordNumber} IDs are supported per ad group."
                },
                "36336": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'negativeKeywordText' {negativeKeywordText} cannot have total number of words more than {maxWordsInNegativeKeyword} words."
                },
                "36345": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'campaignId' and 'adGroupId' are required."
                },
                "36346": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You have exceeded the maximum number of negative keyword for a campaign. Only {maxSupportedNegativeKeywordNumberCampaign} IDs are supported per campaign."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "36210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ad group found for ad group id {ad_group_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This method is not supported for campaigns with smart targeting type."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/negative_keyword/{negative_keyword_id}": {
      "get": {
        "tags": [
          "negative_keyword"
        ],
        "description": "This method retrieves details on a specific negative keyword.<br /><br />In the request, specify the <b>negative_keyword_id</b> as a path parameter.",
        "operationId": "getNegativeKeyword",
        "parameters": [
          {
            "name": "negative_keyword_id",
            "in": "path",
            "description": "This path parameter specifies the unique identifier for the negative keyword being retrieved.<br /><br />Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-negative_keyword-getnegativekeywords\">getNegativeKeywords</a> method to retrieve negative keyword IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NegativeKeyword"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "36340": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No negative keyword found for negative keyword id {negativeKeywordId}."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "36340": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No negative keyword found for negative keyword id {negativeKeywordId}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "negative_keyword"
        ],
        "description": "This method updates the status of an existing negative keyword.<br /><br />Specify the <b>negative_keyword_id</b> as a path parameter, and specify the <b>negativeKeywordStatus</b> in the request body.",
        "operationId": "updateNegativeKeyword",
        "parameters": [
          {
            "name": "negative_keyword_id",
            "in": "path",
            "description": "The unique identifier for the negative keyword.<br /><br />This value is returned in the <b>Location</b> response header from the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-negative_keyword-createnegativekeyword\">createNegativeKeyword</a> method.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "A type that defines the fields for the request to update a negative keyword.",
          "content": {
            "application/json": {
              "schema": {
                "description": "A type that defines the fields for the request to update a negative keyword.",
                "$ref": "#/components/schemas/UpdateNegativeKeywordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "36340": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No negative keyword found for negative keyword id {negativeKeywordId}."
                },
                "36342": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "NegativeKeywordStatus is missing or invalid. It is required for update."
                },
                "36343": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Negative keyword with negative keyword id {negativeKeywordId} is already archived and cannot be updated."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_report/{report_id}": {
      "get": {
        "tags": [
          "ad_report"
        ],
        "description": "This call downloads the report as specified by the <b>report_id</b> path parameter.  <br><br>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-createreporttask\" title=\"createReportTask API docs\">createReportTask</a> to schedule and generate a Promoted Listings report. All date values are returned in UTC format (<code>yyyy-MM-ddThh:mm:ss.sssZ</code>).<br/><br/><span class=\"tablenote\"><b>Note:</b> The reporting of some data related to sales and ad-fees may require a 72-hour (<b>maximum</b>) adjustment period which is often referred to as the <i>Reconciliation Period</i>. Such adjustment periods should, on average, be minimal. However, at any given time, the <b>payments</b> tab may be used to view those amounts that have actually been charged.</span><br/><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><b><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></b></span></span>For <b>ad_report</b> and <b>ad_report_task</b> methods, the API call limit is subject to a per user quota. These API calls can <b>only</b> be executed a maximum of 200 times per hour for each seller/user. If the number of calls per hour exceeds this limit, any new calls will be blocked for the next hour.</p></div>",
        "operationId": "getReport",
        "parameters": [
          {
            "name": "report_id",
            "in": "path",
            "description": "This path parameter specifies the unique ID of the Promoted Listings report being retrieved.<br><br>Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttasks\">getReportTasks</a> method to retrieve report IDs.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/tab-separated-values": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35110": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'report_id' {report_id} was not found. Correct the 'report_id' and try the call again."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_report_metadata": {
      "get": {
        "tags": [
          "ad_report_metadata"
        ],
        "description": "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.</br></br> You can retrieve metadata for all report types,funding models and channels, or you can filter based on funding model and/or channel.<br/><br/><span class=\"tablenote\"><b>Note:</b> The reporting of some data related to sales and ad-fees may require a 72-hour (<b>maximum</b>) adjustment period which is often referred to as the <i>Reconciliation Period</i>. Such adjustment periods should, on average, be minimal. However, at any given time, the <b>payments</b> tab may be used to view those amounts that have actually been charged.</span>",
        "operationId": "getReportMetadata",
        "parameters": [
          {
            "name": "funding_model",
            "in": "query",
            "description": "This query parameter is used only if the user wants to see report metadata for a specific funding model. Refer to the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttasks.fundingmodelenum\">FundingModelEnum</a> type for supported values.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "channel",
            "in": "query",
            "description": "This query parameter is used only if the user wants to see <code>COST_PER_CLICK</code> report metadata for a specific channel. Refer to the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttasks.channelenum\">ChannelEnum</a> type for supported values.<br><br><span class=\"tablenote\"><b>Note:</b> The channel parameter is only applicable for <code>COST_PER_CLICK</code> funding model.</span>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportMetadatas"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35121": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'fundingModel' is invalid. Valid values are: {supportedFundingModels}."
                },
                "35125": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'channel' is invalid. Valid values are: {supportedChannels}."
                },
                "35127": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'channels' are not supported for the 'fundingModel' {fundingModel}."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope"
            ]
          }
        ]
      }
    },
    "/ad_report_metadata/{report_type}": {
      "get": {
        "tags": [
          "ad_report_metadata"
        ],
        "description": "This call retrieves metadata that details the fields used by a specific Promoted Listings report type. Use the <b>report_type</b> path parameter to indicate metadata to retrieve.<br/><br/>This method does not use a request payload.<br/><br/><span class=\"tablenote\"><b>Note:</b> The reporting of some data related to sales and ad-fees may require a 72-hour (<b>maximum</b>) adjustment period which is often referred to as the <i>Reconciliation Period</i>. Such adjustment periods should, on average, be minimal. However, at any given time, the <b>payments</b> tab may be used to view those amounts that have actually been charged.</span>",
        "operationId": "getReportMetadataForReportType",
        "parameters": [
          {
            "name": "report_type",
            "in": "path",
            "description": "This path parameter specifies the name of the report type whose metadata you want to retrieve.<br /><br />For details about available report types and their descriptions, refer to the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttasks.reporttypeenum\">ReportTypeEnum</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "funding_model",
            "in": "query",
            "description": "The funding model used in the report. The funding model must be compatible with the report type specified in the path parameter. Refer to the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttasks.fundingmodelenum\">FundingModelEnum</a> type for supported values.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "channel",
            "in": "query",
            "description": "The channel used in the report. The channel must be compatible with the report type specified in the path parameter. Refer to the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttasks.channelenum\">ChannelEnum</a> type for supported values. <br><br><span class=\"tablenote\"><b>Note:</b> The channel parameter is only applicable for <code>COST_PER_CLICK</code> funding model.</span>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportMetadata"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35116": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Supplied 'report_type' not found. Valid values are: {supportedReportTypes}."
                },
                "35121": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'fundingModel' is invalid. Valid values are: {supportedFundingModels}."
                },
                "35125": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'channel' is invalid. Valid values are: {supportedChannels}."
                },
                "35127": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'channels' are not supported for the 'fundingModel' {fundingModel}."
                },
                "35132": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'channels' {supportedChannels} are not supported for the 'report_type' {reportType}."
                },
                "35133": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'fundingModel' is not supported for the  'report_type' {reportType}."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You are currently not authorized to access the Promoted Listings Advanced program. Please contact support."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope"
            ]
          }
        ]
      }
    },
    "/ad_report_task": {
      "get": {
        "tags": [
          "ad_report_task"
        ],
        "description": "This method returns information on all the existing report tasks related to a seller. <p>Use the <b>report_task_statuses</b> query parameter to control which reports to return. You can paginate the result set by specifying a <b>limit</b>, which dictates how many report tasks to return on each page of the response. Use the <b>offset</b> parameter to specify how many reports to skip in the result set before returning the first result.</p><br/><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><b><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></b></span></span>For <b>ad_report</b> and <b>ad_report_task</b> methods, the API call limit is subject to a per user quota. These API calls can <b>only</b> be executed a maximum of 200 times per hour for each seller/user. If the number of calls per hour exceeds this limit, any new calls will be blocked for the next hour.</p></div>",
        "operationId": "getReportTasks",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Specifies the maximum number of report tasks to return on a page in the paginated response.<br><br><b>Default:</b> 10<br><b>Maximum:</b> 500",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Specifies the number of report tasks to skip in the result set before returning the first report in the paginated response.  <p>Combine <b>offset</b> with the <b>limit</b> query parameter to control the reports returned in the response. For example, if you supply an <b>offset</b> of <code>0</code> and a <b>limit</b> of <code>10</code>, the response contains the first 10 reports from the complete list of report tasks retrieved by the call. If <b>offset</b> is <code>10</code> and <b>limit</b> is <code>10</code>, the first page of the response contains reports 11-20 from the complete result set.</p> <b>Default:</b> 0",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "report_task_statuses",
            "in": "query",
            "description": "This query parameter filters the returned report tasks by their status. Supply a comma-separated list of the report statuses you want returned. The results are filtered to include only the report statuses you specify.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> The results might not include some report tasks if other search conditions exclude them.</span><br />See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttasks.reporttask.reporttaskstatus\">TaskStatusEnum</a> for supported values.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportTaskPagedCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35029": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'limit' has to be greater than zero and less than {maxLimitValue}."
                },
                "35030": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'offset' cannot be less than zero {offset}."
                },
                "35109": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'report_task_statuses' {invalid_report_task_statuses} is invalid. Valid values are: {supportedReportTaskStatuses}."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "ad_report_task"
        ],
        "description": "This method creates a <i>report task</i>, which generates a Promoted Listings report based on the values specified in the call.<br /><br />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. <i>Metrics </i>are the quantitative measurements in the report while <i>dimensions</i> specify the attributes of the data included in the reports.<br /><br />When creating a report task, you can specify the items you want included in the report. The items you specify, using either <b>listingId</b> or <b>inventoryReference</b> values, must be in a Promoted Listings campaign for them to be included in the report.<br /><br />For details on the required and optional fields for each report type, see <a href=\"/api-docs/sell/static/marketing/pl-reports.html\" target=\"_blank\">Promoted Listings reporting</a>.<br /><br />This call returns the URL to the report task in the <b>Location</b> response header, and the URL includes the report-task ID.<br /><br />Reports often take time to generate and it's common for this call to return an HTTP status of <code>202</code>, which indicates the report is being generated. Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttasks\">getReportTasks</a> (or <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttask\">getReportTask</a> with the report-task ID) to determine the status of a Promoted Listings report. When a report is complete, eBay sets its status to <b>SUCCESS</b> and you can download it using the URL returned in the <b>reportHref</b> field of the <b>getReportTask</b> call. Report files are tab-separated value gzip files with a file extension of <code>.tsv.gz</code>.<br/><br/><span class=\"tablenote\"><b>Note:</b> The reporting of some data related to sales and ad-fees may require a 72-hour (<b>maximum</b>) adjustment period which is often referred to as the <i>Reconciliation Period</i>. Such adjustment periods should, on average, be minimal. However, at any given time, the <b>payments</b> tab may be used to view those amounts that have actually been charged.</span><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> 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 <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_metadata-getreportmetadata\">getReportMetadata</a> to retrieve a list of the fields you need to configure for each Promoted Listings report type.</span><br/><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><b><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></b></span></span>For <b>ad_report</b> and <b>ad_report_task</b> methods, the API call limit is subject to a per user quota. These API calls can <b>only</b> be executed a maximum of 200 times per hour for each seller/user. If the number of calls per hour exceeds this limit, any new calls will be blocked for the next hour.</p></div><br><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><b><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></b></span></span> The data threshold for a single report is currently 1 million records; if this threshold is exceeded, the report will fail.</p></div>",
        "operationId": "createReportTask",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "The container for the fields that define the report task.",
          "content": {
            "application/json": {
              "schema": {
                "description": "The container for the fields that define the report task.",
                "$ref": "#/components/schemas/CreateReportTask"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "headers": {
              "Warning": {
                "schema": {
                  "type": "string",
                  "description": "Carries additional information about the status or transformation of a message that might not be reflected in the status code."
                },
                "style": "simple",
                "explode": false
              },
              "Location": {
                "schema": {
                  "type": "string",
                  "description": "The <b>location</b> response header contains the URL to the newly created report task. The URL includes the eBay-assigned <code>reportTaskId</code>, which you can use to reference the report task."
                },
                "style": "simple",
                "explode": false
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35012": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'inventoryReferenceId' {inventoryReferenceId} is not valid."
                },
                "35013": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'listingId' {listingId} is not valid. Correct the 'listingId' and try the call again."
                },
                "35040": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'inventoryReferenceType' {inventoryReferenceType} is not supported."
                },
                "35041": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A 'marketplaceId' is required. Supported marketplaces are: {supportedMarketplaces}"
                },
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for {campaignId}."
                },
                "35090": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "dateFrom and dateTo span exceeds maximum allowed. Only up to {maxDayRange} days are supported."
                },
                "35100": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Campaign ID is required for this call."
                },
                "35102": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The {date_key} date is required for this call."
                },
                "35103": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The date cannot be in future."
                },
                "35104": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The report start date {dateFrom} cannot be after the end date {dateTo}."
                },
                "35105": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The report 'dateFrom' {dateFrom} is out of range. Reports are limited up to {maxDays} days in the past."
                },
                "35106": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'dimensionKey' {dimensionKey} is not valid. To see the supported dimension keys for a report, use one of the 'Get Metadata' calls."
                },
                "35107": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'dimensionKey' {dimensionKey} is not supported for the 'reportType' {reportType}. To see the supported dimension keys for a report, use one of the 'Get Metadata' calls."
                },
                "35108": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'annotationKey' {annotationKey} is not supported for the 'dimensionKey' {dimensionKey}. To see the supported annotation and dimension keys for a report, use one of the 'Get Metadata' calls."
                },
                "35111": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'inventoryReferenceId' {inventoryReferenceId} is not valid."
                },
                "35113": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID is required for this call."
                },
                "35114": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'reportType' is invalid. Valid values are: {supportedReportTypes}."
                },
                "35115": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'metricKey' {metricKey} is not supported for the 'reportType' {reportType}. To see the supported metric keys for a report, use one of the 'Get Metadata' calls."
                },
                "35118": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'reportFormat' is missing or invalid. Valid values are: {supportedReportFormats}"
                },
                "35119": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The minimum set of 'dimensionKey' is not provided for the 'reportType' {reportType}. Minimum required dimensionKeys are: {minimumDimensionKeys}"
                },
                "35120": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least  one 'metricKey' must be provided for 'reportType' {reportType}. Valid metricKeys are: {supportedMetricKeys}"
                },
                "35121": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'fundingModel' is invalid. Valid values are: {supportedFundingModels}."
                },
                "35122": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The metric key is not supported for the funding model."
                },
                "35123": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'dimensionKey' {dimensionKey} is not valid for the 'fundingModel' {fundingModel}"
                },
                "35124": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Multiple funding models are not supported. Please use one of the following funding models: {supportedFundingModels}"
                },
                "35125": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'channel' is invalid. Valid values are: {supportedChannels}."
                },
                "35126": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Multiple channels are not supported. Please use one of the following channels: {supportedChannels}"
                },
                "35127": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'channels' are not supported for the 'fundingModel' {fundingModel}"
                },
                "35128": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'dimensionKey' {dimensionKey} is not valid for the 'channels' {supportedChannels}"
                },
                "35129": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'metricKey' {metricKey} is not supported for the 'channels' {supportedChannels}"
                },
                "35130": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'annotationKey' {annotationKey} is not supported for the 'fundingModel' {fundingModel}."
                },
                "35131": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'annotationKey' {annotationKey} is not supported for the 'channels' {supportedChannels}"
                },
                "35137": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The {date_key} date format is not valid."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You are currently not authorized to access the Promoted Listings Advanced program. Please contact support"
                },
                "35091": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'additionalRecords' are supported only with COST_PER_CLICK FundingModel and non-performing data is applicable for account level reports with no Day level dimension. 'additionalRecords' are applicable for reportTypes {supportedReportTypes}"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35051": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'marketplaceId' {marketplaceId} is not supported. Supported marketplaces are: {supportedMarketplaces}"
                },
                "35068": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs. Only {maxSupportedListings} listings are supported per call."
                },
                "35101": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of campaign IDs. Only {maxSupportedCampaigns} campaigns are supported per call."
                },
                "35112": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The maximum number {maxSupportedInventoryReferences} of inventory references has been exceeded."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_report_task/{report_task_id}": {
      "get": {
        "tags": [
          "ad_report_task"
        ],
        "description": "This call returns the details of a specific Promoted Listings report task, as specified by the <b>report_task_id</b> path parameter. <p>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).</p>  <p>Report-task IDs are generated by eBay when you call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-createreporttask\">createReportTask</a>. Get a complete list of a seller's report-task IDs by calling <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttasks\">getReportTasks</a>.</p><br/><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><b><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></b></span></span>For <b>ad_report</b> and <b>ad_report_task</b> methods, the API call limit is subject to a per user quota. These API calls can <b>only</b> be executed a maximum of 200 times per hour for each seller/user. If the number of calls per hour exceeds this limit, any new calls will be blocked for the next hour.</p></div>",
        "operationId": "getReportTask",
        "parameters": [
          {
            "name": "report_task_id",
            "in": "path",
            "description": "This path parameter specifies the unique identifier of the report task being retrieved.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttasks\">getReportTasks</a> method to retrieve report task Ids.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportTask"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35140": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ReportTask found for 'report_task_id' {report_task_id}. Please correct the 'report_task_id' and try again."
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "ad_report_task"
        ],
        "description": "This call deletes the report task specified by the <b>report_task_id</b> path parameter. This method also deletes any reports generated by the report task.  <p>Report task IDs are generated by eBay when you call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-createreporttask\">createReportTask</a>. Get a complete list of a seller's report-task IDs by calling <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttasks\">getReportTasks</a>.</p><br/><div class=\"msgbox_important\"><p class=\"msgbox_importantInDiv\" data-mc-autonum=\"&lt;b&gt;&lt;span style=&quot;color: #dd1e31;&quot; class=&quot;mcFormatColor&quot;&gt;Important! &lt;/span&gt;&lt;/b&gt;\"><span class=\"autonumber\"><span><b><span style=\"color: #dd1e31;\" class=\"mcFormatColor\">Important!</span></b></span></span>For <b>ad_report</b> and <b>ad_report_task</b> methods, the API call limit is subject to a per user quota. These API calls can <b>only</b> be executed a maximum of 200 times per hour for each seller/user. If the number of calls per hour exceeds this limit, any new calls will be blocked for the next hour.</p></div>",
        "operationId": "deleteReportTask",
        "parameters": [
          {
            "name": "report_task_id",
            "in": "path",
            "description": "This path parameter specifies the unique identifier of the report task being deleted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_report_task-getreporttasks\">getReportTasks</a> method to retrieve report task Ids.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35140": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No ReportTask found for 'report_task_id' {report_task_id}. Please correct the 'report_task_id' and try again."
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35141": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The Report Task with 'report_task_id' {report_task_id} is being modified. Please wait a few minutes and try the call again."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/item_price_markdown": {
      "post": {
        "tags": [
          "item_price_markdown"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method creates an <b>item price markdown discount</b> (know simply as a \"markdown discount\") where a discount amount is applied directly to the items included in the discount. Discounts can be specified as either a monetary amount or a percentage off the standard sales price. eBay highlights discounted items by placing teasers for the items throughout the online sales flows.  <p>Unlike an <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-item_promotion-createitempromotion\">item discount</a>, a markdown discount does not require the buyer meet a \"threshold\" before the offer takes effect. With markdown discounts, all the buyer needs to do is purchase the item to receive the discount benefit.</p>  <p class=\"tablenote\"><b>Important:</b> There are some restrictions for which listings are available for price markdown discounts. For details, see <a href=\"/api-docs/sell/static/marketing/pm-requirements.html\" target=\"_blank\">Discounts Manager requirements and restrictions</a>. <br><br>In addition, we recommend you list items at competitive prices before including them in your markdown discounts. For an extensive list of pricing recommendations, see the <b>Growth</b> tab in Seller Hub.</p> <p>There are two ways to enable items for markdown discounts:</p> <ul><li><b>Key-based discounts</b> select items using either the listing IDs or inventory reference IDs of the items you want to discount. Note that if you use inventory reference IDs, you must specify both the <b>inventoryReferenceId</b> and the associated <b>inventoryReferenceType</b> of the item(s) you want to include.</li>  <li><b>Rule-based discounts</b> select items using a list of eBay category IDs or seller Store category IDs. Rules can further constrain items being discounted by minimum and maximum prices, brands, and item conditions.</li></ul>  <p>New discounts must be created in either a <code>DRAFT</code> or a <code>SCHEDULED</code> state. Use the DRAFT state when you are initially creating a discount and you want to be sure it's correctly configured before scheduling it to run. When you create a discount, the <b>promotionId</b> is returned in the <b>Location</b> response header. Use this ID to reference the discount in subsequent requests (such as to schedule a discount that's in a DRAFT state).</p>  <p class=\"tablenote\"><b>Tip:</b> Refer to <a href=\"/api-docs/sell/static/marketing/promotions-manager.html\" target=\"_blank\">Discounts Manager</a> in the <i>Selling Integration Guide</i> for details and examples showing how to create and manage seller discounts.</p>  <p>Markdown discounts are available on all eBay marketplaces. For more information, see <a href=\"/api-docs/sell/static/marketing/pm-requirements.html\" target=\"_blank\">Discounts Manager requirements and restrictions</a>.</p>",
        "operationId": "createItemPriceMarkdownPromotion",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type defines the fields that describe an item price markdown discount.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the fields that describe an item price markdown discount.",
                "$ref": "#/components/schemas/ItemPriceMarkdown"
              }
            }
          },
          "required": false
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "description": "The <b>location</b> response header contains the URL to the newly created item price markdown discount. The URL includes the eBay-assigned <b>promotionId</b>, which you can use to reference the discount."
                },
                "style": "simple",
                "explode": false
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38226": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID must be numeric if you're using listingIds."
                },
                "38227": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID is invalid."
                },
                "38263": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The SKU or custom label used in inventoryReferenceId exceeds the maximum length, which is {skuLength}."
                },
                "38272": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's an auction-style listing."
                },
                "38273": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's a minimum advertised price (MAP) listing."
                },
                "38274": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You haven't included electronic payment method as a payment method. In order to make this listing eligible, update it to include electronic payment method."
                },
                "38275": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This SKU used in inventoryReferenceId matches an item that is part of a listing with variations. This SKU is only eligible if we add all of the listing variations. To add this listing, use the parent, or main, SKU (custom label)."
                },
                "345112": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid Store category. Please refer to API documentation to source allowed values."
                },
                "345113": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid marketplace category ID. Please refer to API documentation for the supported values."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                },
                "38218": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A valid entry is required for {fieldName}."
                },
                "38219": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The start date and time must be earlier than the end date and time."
                },
                "38220": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The end date and time must be later than the current date and time."
                },
                "38226": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID must be numeric if you're using listingIds."
                },
                "38227": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID is invalid."
                },
                "38228": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The amount value of '{fieldName}' contains decimals, only integers are supported."
                },
                "38229": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The start date and time should be later than the current date and time."
                },
                "38234": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "HTML is not allowed in the '{fieldName}' field."
                },
                "38235": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid input for the '{fieldName}' field. For help, see the documentation for this call."
                },
                "38238": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'discountBenefit' data is missing, which is required by this call. For help, see the documentation for this call."
                },
                "38240": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid input for the 'promotionStatus' field. For help, see the documentation for this call."
                },
                "38242": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request can have only one of these fields: 'inventoryCriterion.inventoryItems' or 'inventoryCriterion.listingIds'."
                },
                "38255": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The promotion description exceeds the maximum length, which is {promoDescriptionLength}."
                },
                "38256": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The promotion name exceeds the maximum length, which is {promoNameLength}."
                },
                "38261": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Promotions are currently limited to a maximum of {maxListingInclLimit} parent items, when entering item IDs or choosing from live inventory."
                },
                "38262": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can only include up to {maxSkuInclLimit} SKUs or custom labels in inventoryItems."
                },
                "38263": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The SKU or custom label used in inventoryReferenceId exceeds the maximum length, which is {skuLength}."
                },
                "38270": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The currency type does not match what is used for the Marketplace ID submitted."
                },
                "345056": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request can have only one of these field types: 'inventoryItems' or 'listingIds'."
                },
                "345057": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request can have only one of these fields: 'percentageOffItem', or 'amountOffItem' in 'discountBenefit'. For help, see the documentation for this call."
                },
                "345058": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "When using multiple selectedInventoryDiscounts containers, each must have a unique percentageoffitems value. For help, see the documentation for this call."
                },
                "345059": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "If using percentageoffitems you can have between 1 and 10 selectedInventoryDiscounts containers. For help, see the documentation for this call."
                },
                "345060": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "If using amountoffitems you can only have selectedInventoryDiscounts container. For help, see the documentation for this call."
                },
                "345061": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The discount ID value is a read only value."
                },
                "345063": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Priority is not supported for the item_price_markdown calls."
                },
                "345110": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can specify only one of Inventory Items, Listing IDs or Rules in the Inventory Criterion."
                },
                "345111": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify Rules when using the Inventory by Value Criterion."
                },
                "345112": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid Store category. Please refer to API documentation to source allowed values."
                },
                "345113": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid marketplace category ID. Please refer to API documentation for the supported values."
                },
                "345114": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A Category scope is required for the Rule. Please refer to API documentation for allowed values."
                },
                "345115": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one Category is required. Please provide a valid input for this field and try again."
                },
                "345116": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can specify only Marketplace categories or Store categories when creating Rules."
                },
                "345120": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid Item condition. Please refer to API documentation for allowed values."
                },
                "345121": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can specify only one of Inventory Items or Listing IDs in the Exclusion Criterion."
                },
                "345122": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "category ids cannot be specified with the inventory of type any."
                },
                "345123": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "brands cannot be specified with inventory of type any or Store."
                },
                "345125": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify a child Marketplace Category ID when the parent Marketplace Category ID is already specified. Please refer to the API documentation to source allowed values."
                },
                "345126": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify a child Store Category ID when the parent Store Category ID is already specified. Please refer to the API documentation to source allowed values."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38248": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'percentOffItem' value is invalid. For help, see the documentation for this call."
                },
                "38250": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'amountOffItem' value is invalid. For help, see the documentation for this call."
                },
                "38272": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's an auction-style listing."
                },
                "38273": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's a minimum advertised price (MAP) listing."
                },
                "38274": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You haven't included electronic payment method as a payment method. In order to make this listing eligible, update it to include electronic payment method."
                },
                "38275": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This SKU used in inventoryReferenceId matches an item that is part of a listing with variations. This SKU is only eligible if we add all of the listing variations. To add this listing, use the parent, or main, SKU (custom label)."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/item_price_markdown/{promotion_id}": {
      "get": {
        "tags": [
          "item_price_markdown"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method returns the complete details of the item price markdown discount that's indicated by the <b>promotion_id</b> path parameter. <br><br>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> to retrieve the IDs of a seller's discounts.",
        "operationId": "getItemPriceMarkdownPromotion",
        "parameters": [
          {
            "name": "promotion_id",
            "in": "path",
            "description": "This path parameter takes a concatenation of the ID of the discount you want to retrieve plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an \"at sign\" (<b>@</b>). <br><br>The ID of the discount (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> method to retrieve promotion Ids. See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported Marketplace ID values.<br><br><b>Example:</b> <code>1********5@EBAY_US</code>",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemPriceMarkdown"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                },
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "item_price_markdown"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method updates the specified item price markdown discount with the new configuration that you supply in the payload of the request. Specify the discount you want to update using the <b>promotion_id</b> path parameter. Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> to retrieve the IDs of a seller's discounts.<br><br>When updating a discount, supply all the fields that you used to configure the original discount (and not just the fields you are updating). eBay replaces the specified discount 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.  <br><br>The parameters you are allowed to update with this request depend on the status of the discount you're updating:  <ul><li>DRAFT or SCHEDULED discounts: You can update any of the parameters in these discounts that have not yet started to run, including the <b>discountRules</b>.</li> <li>RUNNING discounts: You can change the <b>endDate</b> and the item's inventory but you cannot change the discount or the start date.</li> <li>ENDED discounts: Nothing can be changed.</li></ul>",
        "operationId": "updateItemPriceMarkdownPromotion",
        "parameters": [
          {
            "name": "promotion_id",
            "in": "path",
            "description": "This path parameter takes a concatenation of the ID of the discount you want to update plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an \"at sign\" (<b>@</b>). <br><br>The ID of the discount (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> method to retrieve promotion Ids. See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported Marketplace ID values.<br><br><b>Example:</b> <code>1********5@EBAY_US</code>",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type defines the fields that describe an item price markdown discount.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the fields that describe an item price markdown discount.",
                "$ref": "#/components/schemas/ItemPriceMarkdown"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "$ref": "#/components/schemas/BaseResponse"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38226": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID must be numeric if you're using listingIds."
                },
                "38227": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID is invalid."
                },
                "38263": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The SKU or custom label used in inventoryReferenceId exceeds the maximum length, which is {skuLength}."
                },
                "38272": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's an auction-style listing."
                },
                "38273": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's a minimum advertised price (MAP) listing."
                },
                "38274": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You haven't included electronic payment method as a payment method. In order to make this listing eligible, update it to include electronic payment method."
                },
                "38275": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This SKU used in inventoryReferenceId matches an item that is part of a listing with variations. This SKU is only eligible if we add all of the listing variations. To add this listing, use the parent, or main, SKU (custom label)."
                },
                "345064": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You have moved inventory between discountBenefit containers or have the same inventory in multiple discountBenefit containers. For help, see the documentation for this call."
                },
                "345112": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid Store category. Please refer to API documentation to source allowed values."
                },
                "345113": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid marketplace category ID. Please refer to API documentation for the supported values."
                }
              }
            }
          },
          "204": {
            "description": "Success",
            "x-response-codes": {
              "errors": {
                "38226": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID must be numeric if you're using listingIds."
                },
                "38227": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID is invalid."
                },
                "38263": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The SKU or custom label used in inventoryReferenceId exceeds the maximum length, which is {skuLength}."
                },
                "38272": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's an auction-style listing."
                },
                "38273": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's a minimum advertised price (MAP) listing."
                },
                "38274": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You haven't included electronic payment method as a payment method. In order to make this listing eligible, update it to include electronic payment method."
                },
                "38275": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This SKU used in inventoryReferenceId matches an item that is part of a listing with variations. This SKU is only eligible if we add all of the listing variations. To add this listing, use the parent, or main, SKU (custom label)."
                },
                "345064": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You have moved inventory between discountBenefit containers or have the same inventory in multiple discountBenefit containers. For help, see the documentation for this call."
                },
                "345112": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid Store category. Please refer to API documentation to source allowed values."
                },
                "345113": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid marketplace category ID. Please refer to API documentation for the supported values."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                },
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                },
                "38218": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A valid entry is required for {fieldName}."
                },
                "38219": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The start date and time must be earlier than the end date and time."
                },
                "38220": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The end date and time must be later than the current date and time."
                },
                "38225": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update a promotion that has ended."
                },
                "38228": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The amount value of '{fieldName}' contains decimals, only integers are supported."
                },
                "38229": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The start date and time should be later than the current date and time."
                },
                "38232": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update the promotion discount for an active promotion."
                },
                "38234": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "HTML is not allowed in the '{fieldName}' field."
                },
                "38235": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid input for the '{fieldName}' field. For help, see the documentation for this call."
                },
                "38238": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'discountBenefit' data is missing, which is required by this call. For help, see the documentation for this call."
                },
                "38240": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid input for the 'promotionStatus' field. For help, see the documentation for this call."
                },
                "38242": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request can have only one of these fields: 'inventoryCriterion.inventoryItems' or 'inventoryCriterion.listingIds'."
                },
                "38255": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The promotion description exceeds the maximum length, which is {promoDescriptionLength}."
                },
                "38256": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The promotion name exceeds the maximum length, which is {promoNameLength}."
                },
                "38260": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "To update the start date of a promotion, the promotion must be in draft or scheduled state."
                },
                "38261": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Promotions are currently limited to a maximum of {maxListingInclLimit} parent items, when entering item IDs or choosing from live inventory."
                },
                "38262": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can only include up to {maxSkuInclLimit} SKUs or custom labels in inventoryItems."
                },
                "38269": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The promotion ID does not match any of the seller's promotions."
                },
                "38270": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The currency type does not match what is used for the Marketplace ID submitted."
                },
                "345056": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request can have only one of these field types: 'inventoryItems' or 'listingIds'."
                },
                "345057": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request can have only one of these fields: 'percentageOffItem', or 'amountOffItem' in 'discountBenefit'. For help, see the documentation for this call."
                },
                "345058": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "When using multiple selectedInventoryDiscounts containers, each must have a unique percentageoffitems value. For help, see the documentation for this call."
                },
                "345059": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "If using percentageoffitems you can have between 1 and 10 selectedInventoryDiscounts containers. For help, see the documentation for this call."
                },
                "345060": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "If using amountoffitems you can only have selectedInventoryDiscounts container. For help, see the documentation for this call."
                },
                "345061": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The discount ID value is a read only value."
                },
                "345063": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Priority is not supported for the item_price_markdown calls."
                },
                "345065": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot change the status of aa SCHEDULED promotion to DRAFT. For help, see the documentation for this call."
                },
                "345070": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The giving discount ID does not exist in the promotion. For help, see the documentation for this call."
                },
                "345071": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The giving discount type is not consistent with existing active promotion. For help, see the documentation for this call."
                },
                "345072": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The giving inventory criterion type is not consistent with existing active promotion. For help, see the documentation for this call."
                },
                "345110": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can specify only one of Inventory Items, Listing IDs or Rules in the Inventory Criterion."
                },
                "345111": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify Rules when using the Inventory by Value Criterion."
                },
                "345114": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A Category scope is required for the Rule. Please refer to API documentation for allowed values."
                },
                "345115": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one Category is required. Please provide a valid input for this field and try again."
                },
                "345116": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can specify only Marketplace categories or Store categories when creating Rules."
                },
                "345120": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid Item condition. Please refer to API documentation for allowed values."
                },
                "345121": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify Rules or inventory items when using the Inventory by ALL Criterion."
                },
                "345122": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "category ids cannot be specified with the inventory of type any."
                },
                "345123": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "brands cannot be specified with inventory of type any or Store."
                },
                "345125": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify a child Marketplace Category ID when the parent Marketplace Category ID is already specified. Please refer to the API documentation to source allowed values."
                },
                "345126": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify a child Store Category ID when the parent Store Category ID is already specified. Please refer to the API documentation to source allowed values."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38248": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'percentOffItem' value is invalid. For help, see the documentation for this call."
                },
                "38250": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'amountOffItem' value is invalid. For help, see the documentation for this call."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, please contact support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "item_price_markdown"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method deletes the item price markdown discount specified by the <b>promotion_id</b> path parameter. Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> to retrieve the IDs of a seller's discounts.  <br><br>You can delete any discount with the exception of those that are currently active (RUNNING). To end a running discount, call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-item_price_markdown-updateitempricemarkdownpromotion\">updateItemPriceMarkdownPromotion</a> and adjust the <b>endDate</b> field as appropriate.",
        "operationId": "deleteItemPriceMarkdownPromotion",
        "parameters": [
          {
            "name": "promotion_id",
            "in": "path",
            "description": "This path parameter takes a concatenation of the ID of the discount you want to delete plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an \"at sign\" (<b>@</b>). <br><br>The ID of the discount (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> method to retrieve promotion Ids. See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported Marketplace ID values.<br><br><b>Example:</b> <code>1********5@EBAY_US</code>",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                },
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                },
                "345067": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A promotion can only be deleted if it is ended."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, please contact support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/item_promotion": {
      "post": {
        "tags": [
          "item_promotion"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method creates an <b>item discount</b>, where the buyer receives a discount when they meet the specific buying criteria. Known here as \"threshold discounts\", these discounts trigger when a threshold is met.  <p>eBay highlights discounted items by placing teasers for the discounted items throughout the online buyer flows.</p>  <p><i>Discounts</i> 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\".</p> <p><i>Volume pricing</i> discounts increase the value of the discount as the buyer increases the quantity they purchase.</p> <p><i>Coded Coupons</i> 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).</p> <p class=\"tablenote\"><b>Note</b>: Coded Coupons are currently available in the US, UK, DE, FR, IT, ES, and AU marketplaces.</p><p>There are two ways to add items to a threshold discount:</p>  <ul><li><b>Key-based discounts</b> select items using either the listing IDs or inventory reference IDs of the items you want to discount. Note that if you use inventory reference IDs, you must specify both the <b>inventoryReferenceId</b> and the associated <b>inventoryReferenceType</b> of the item(s) you want to be discounted.</li> <li><b>Rule-based discounts</b> select items using a list of eBay category IDs or seller Store category IDs. Rules can further constrain the items being discounted by minimum and maximum prices, brands, and item conditions.</li></ul>  <p>You must create a new discount in either a <code>DRAFT</code> or <code>SCHEDULED</code> state. Use the DRAFT state when you are initially creating a discount and you want to be sure it's correctly configured before scheduling it to run. When you create a discount, the promotion ID is returned in the <b>Location</b> response header. Use this ID to reference the discount in subsequent requests.</p>  <p class=\"tablenote\"><b>Tip:</b> Refer to the <a href=\"/api-docs/sell/static/marketing/promotions-manager.html\" target=\"_blank\">Selling Integration Guide</a> for details and examples showing how to create and manage threshold discounts using the Discounts Manager.</p>  <p>For information on the eBay marketplaces that support item discounts, see <a href=\"/api-docs/sell/static/marketing/pm-requirements.html\" target=\"_blank\">Discounts Manager requirements and restrictions</a>.</p>",
        "operationId": "createItemPromotion",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type defines the fields that describe an item discount.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the fields that describe an item discount.",
                "$ref": "#/components/schemas/ItemPromotion"
              }
            }
          },
          "required": false
        },
        "responses": {
          "201": {
            "description": "Created",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "description": "URL location of new item promotion."
                },
                "style": "simple",
                "explode": false
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponse"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38226": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID must be numeric if you're using listingIds."
                },
                "38227": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID is invalid."
                },
                "38263": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The SKU or custom label used in inventoryReferenceId exceeds the maximum length, which is {skuLength}."
                },
                "38272": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's an auction-style listing."
                },
                "38273": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's a minimum advertised price (MAP) listing."
                },
                "38274": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You haven't included electronic payment method as a payment method. In order to make this listing eligible, update it to include electronic payment method."
                },
                "38275": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This SKU used in inventoryReferenceId matches an item that is part of a listing with variations. This SKU is only eligible if you add all of the listing variations. To add this listing, use the parent, or main, SKU (custom label)."
                },
                "345112": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid Store category. Please refer to API documentation to source allowed values."
                },
                "345113": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid marketplace category ID. Please refer to API documentation for the supported values."
                },
                "345137": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'priority' can not be set for this promotion type. For help, see the documentation for this call."
                },
                "345138": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'description' can not be set for this promotion type. For help, see the documentation for this call."
                },
                "345139": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'applyDiscountToSingleItemOnly' can not be set for this promotion type. For help, see the documentation for this call."
                },
                "345140": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'promotionImageUrl' can not be set for this promotion type. For help, see the documentation for this call."
                },
                "345142": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'applyDiscountToSingleItemOnly' is currently not supported for this Marketplace ID. For help, see the documentation for this call."
                },
                "345143": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'couponType' can not be set for this promotion type. For help, see the documentation for this call."
                },
                "345144": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'maxCouponRedemptionPerUser' can not be set for this promotion type. For help, see the documentation for this call."
                },
                "345145": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'maxDiscountAmount' can not be set for this promotion type. For help, see the documentation for this call."
                },
                "345146": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'budget' can not be set for this promotion type. For help, see the documentation for this call."
                },
                "345147": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'couponCode' can not be set for this promotion type. For help, see the documentation for this call."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                },
                "38205": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The Marketplace ID is not recognized or is not eligible for promotions."
                },
                "38207": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The promotion priority is invalid. Please check and try the call again."
                },
                "38218": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A valid entry is required for {fieldName}."
                },
                "38219": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The start date and time must be earlier than the end date and time."
                },
                "38220": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The end date and time must be later than the current date and time."
                },
                "38226": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID must be numeric if you're using listingIds."
                },
                "38227": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID is invalid."
                },
                "38228": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The amount value of '{fieldName}' contains decimals, only integers are supported."
                },
                "38229": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The start date and time should be later than the current date and time."
                },
                "38234": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "HTML is not allowed in the '{fieldName}' field."
                },
                "38235": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid input for the '{fieldName}' field. For help, see the documentation for this call."
                },
                "38236": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'discountSpecification' data is missing, which is required by this call. For help, see the documentation for this call."
                },
                "38237": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request can have only one of these fields: 'minQuantity', 'forEachQuantity', 'minAmount', or 'forEachAmount' in 'discountSpecification'. For help, see the documentation for this call."
                },
                "38238": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'discountBenefit' data is missing, which is required by this call. For help, see the documentation for this call."
                },
                "38239": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request can have only one of these fields: 'percentageOffOrder', 'amountOffOrder', 'percentageOffItem', or 'amountOffItem' in 'discountBenefit'. For help, see the documentation for this call."
                },
                "38240": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid input for the 'promotionStatus' field. For help, see the documentation for this call."
                },
                "38241": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This discount rule combination is currently not supported. For help, see the documentation for this call."
                },
                "38242": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request can have only one of these fields: 'inventoryCriterion.inventoryItems' or 'inventoryCriterion.listingIds'."
                },
                "38253": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The data combination of 'DiscountSpecification' and 'DiscountBenefit' is not valid for this promotion type. For help, see the documentation for this call."
                },
                "38255": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The promotion description exceeds the maximum length, which is {promoDescriptionLength}."
                },
                "38256": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The promotion name exceeds the maximum length, which is {promoNameLength}."
                },
                "38257": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This promotion type supports only one discount rule for the item promotion."
                },
                "38260": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "To update the start date of a promotion, the promotion must be in draft or scheduled state."
                },
                "38261": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Promotions are currently limited to a maximum of {maxListingInclLimit} parent items, when entering item IDs or choosing from live inventory."
                },
                "38262": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can only include up to {maxSkuInclLimit} SKUs or custom labels in inventoryItems."
                },
                "38263": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The SKU or custom label used in inventoryReferenceId exceeds the maximum length, which is {skuLength}."
                },
                "38265": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Number of discount items is greater than the quantity specified in 'DiscountSpecification'."
                },
                "38267": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'DiscountBenefit.amountOffOrder' field cannot be used with the 'DiscountSpecification.numberOfDiscountedItems' field. This parameter is reserved for Buy x, Get x discounts. For help, see the documentation for this call."
                },
                "345110": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can specify only one of Inventory Items, Listing IDs or Rules in the Inventory Criterion."
                },
                "345111": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify Rules when using the Inventory by Value Criterion."
                },
                "345112": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid Store category. Please refer to API documentation to source allowed values."
                },
                "345113": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid marketplace category ID. Please refer to API documentation for the supported values."
                },
                "345114": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A Category scope is required for the Rule. Please refer to API documentation for allowed values."
                },
                "345115": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one Category is required. Please provide a valid input for this field and try again."
                },
                "345116": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can specify only Marketplace categories or Store categories when creating Rules."
                },
                "345118": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can specify only one of Inventory Items or Listing IDs in the Exclusion Criterion."
                },
                "345120": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid Item condition. Please refer to API documentation for allowed values."
                },
                "345121": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can specify only one of Inventory Items or Listing IDs in the Exclusion Criterion."
                },
                "345122": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "category ids cannot be specified with the inventory of type any."
                },
                "345123": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "brands cannot be specified with inventory of type any or Store."
                },
                "345124": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Exclusions are currently limited to a maximum of 100 parent items, when entering Inventory Items or Listing IDs, or choosing from live inventory."
                },
                "345125": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify a child Marketplace Category ID when the parent Marketplace Category ID is already specified. Please refer to the API documentation to source allowed values."
                },
                "345126": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify a child Store Category ID when the parent Store Category ID is already specified. Please refer to the API documentation to source allowed values."
                },
                "345127": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Category aspects are not supported in this version."
                },
                "345128": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The minimum discount rules required for volume discount promotions are {numOfDiscountRules}"
                },
                "345129": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'discountRules.ruleOrder' is missing or invalid for one of the discount rules for volume discount promotions. see the documentation for this call."
                },
                "345130": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can include up to a maximum of {numOfDiscountRules} discount rules in a volume discount promotion."
                },
                "345131": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Each 'minQuantity' value should be one greater than the 'minQuantity' value of the previous discount rule."
                },
                "345132": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The discount value is invalid for one of the discount rules for volume discount promotions. see the documentation for this call."
                },
                "345133": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Each 'percentageOffOrder' or 'amountOffOrder' value should be greater than the 'percentageOffOrder' or 'amountOffOrder' value of the previous discount rule for volume discount promotions."
                },
                "345134": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This promotionType is currently not supported. For help, see the documentation for this call."
                },
                "345136": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'discountBenefit' specified is not supported for this promotion Type. For help, see the documentation for this call."
                },
                "345137": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'couponCode' data is missing for coded coupon promotions. For help, see the documentation for this call."
                },
                "345138": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'couponCode' value is invalid. For help, see the documentation for this call."
                },
                "345139": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'couponType' data is missing for coded coupon promotions. For help, see the documentation for this call."
                },
                "345140": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'couponType' value is invalid. For help, see the documentation for this call."
                },
                "345141": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxDiscountAmount' data is missing for coded coupon promotions. For help, see the documentation for this call."
                },
                "345142": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxDiscountAmount' value is invalid. For help, see the documentation for this call."
                },
                "345143": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCouponRedemptionPerUser' value is invalid. For help, see the documentation for this call."
                },
                "345144": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'budget' value is invalid. For help, see the documentation for this call."
                },
                "345145": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A coupon with this 'couponCode' already exists. Please try a different 'couponCode'."
                },
                "345146": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'currency' for 'maxDiscountAmount' and 'budget' has to be same. For help, see the documentation for this call."
                },
                "345147": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'promotionType' CODED_COUPON is currently not supported for this Marketplace ID. For help, see the documentation for this call."
                },
                "345148": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'discountBenefit' value cannot exceed the 'maxDiscountAmount' value."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38243": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'minQuantity' value is invalid. This value must be an integer."
                },
                "38244": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'forEachQuantity' value is invalid. This value must be an integer."
                },
                "38245": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'minAmount' value is invalid. For help, see the documentation for this call."
                },
                "38246": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'forEachAmount' value is invalid. For help, see the documentation for this call."
                },
                "38247": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'numberOfDiscountedItems' value is invalid. This value must be an integer."
                },
                "38248": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'percentOffItem' value is invalid. For help, see the documentation for this call."
                },
                "38249": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'percentOffOrder' value is invalid. For help, see the documentation for this call."
                },
                "38250": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'amountOffItem' value is invalid. For help, see the documentation for this call."
                },
                "38251": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'amountOffOrder' value is invalid. For help, see the documentation for this call."
                },
                "38266": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'discountBenefit' value cannot exceed {maxDiscPercent}% of the 'discountSpecification.maxAmount' value."
                },
                "38268": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'discountBenefit' value cannot exceed {maxDiscPercent}% of the 'discountSpecification'."
                },
                "38272": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's an auction-style listing."
                },
                "38273": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's a minimum advertised price (MAP) listing."
                },
                "38274": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You haven't included electronic payment method as a payment method. In order to make this listing eligible, update it to include electronic payment method."
                },
                "38275": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This SKU used in inventoryReferenceId matches an item that is part of a listing with variations. This SKU is only eligible if you add all of the listing variations. To add this listing, use the parent, or main, SKU (custom label)."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/item_promotion/{promotion_id}": {
      "get": {
        "tags": [
          "item_promotion"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method returns the complete details of the threshold discount specified by the <b>promotion_id</b> path parameter. Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> to retrieve the IDs of a seller's discounts.",
        "operationId": "getItemPromotion",
        "parameters": [
          {
            "name": "promotion_id",
            "in": "path",
            "description": "This path parameter takes a concatenation of the ID of the discount you want to retrieve plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an \"at sign\" (<b>@</b>). <br><br>The ID of the discount (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> method to retrieve promotion Ids. See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported Marketplace ID values.<br><br><b>Example:</b> <code>1********5@EBAY_US</code>",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemPromotionResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                },
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                },
                "345076": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot get the details of a promotion that was not created through the API."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "item_promotion"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method updates the specified threshold discount with the new configuration that you supply in the request. Indicate the discount you want to update using the <b>promotion_id</b> path parameter.  <p>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> to retrieve the IDs of a seller's discounts.</p>  <p>When updating a discount, supply all the fields that you used to configure the original discount (and not just the fields you are updating). eBay replaces the specified discount 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.</p>  <p>The parameters you are allowed to update with this request depend on the status of the discount you're updating:  <ul><li>DRAFT or SCHEDULED discounts: You can update any of the parameters in these discounts that have not yet started to run, including the <b>discountRules</b>.</li> <li>RUNNING or PAUSED discounts: You can change the <b>endDate</b> and the item's inventory but you cannot change the discount or the start date.</li> <li>ENDED discounts: Nothing can be changed.</li></ul> <p class=\"tablenote\"><b>Tip:</b> When updating a <code>RUNNING</code> or <code>PAUSED</code> discount, set the <b>status</b> field to <code>SCHEDULED</code> for the update request. When the discount is updated, the previous status (either <code>RUNNING</code> or <code>PAUSED</code>) is retained.</p>",
        "operationId": "updateItemPromotion",
        "parameters": [
          {
            "name": "promotion_id",
            "in": "path",
            "description": "This path parameter takes a concatenation of the ID of the discount you want to update plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an \"at sign\" (<b>@</b>). <br><br>The ID of the discount (<b>promotionId</bte>) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discouint is hosted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> method to retrieve promotion Ids. See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported Marketplace ID values.<br><br><b>Example:</b> <code>1********5@EBAY_US</code>",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "This type defines the fields that describe an item discount.",
          "content": {
            "application/json": {
              "schema": {
                "description": "This type defines the fields that describe an item discount.",
                "$ref": "#/components/schemas/ItemPromotion"
              }
            }
          },
          "required": false
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseResponse"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38226": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID must be numeric if you're using listingIds."
                },
                "38227": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID is invalid."
                },
                "38263": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The SKU or custom label used in inventoryReferenceId exceeds the maximum length, which is {skuLength}."
                },
                "38272": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's an auction-style listing."
                },
                "38273": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This listing is not eligible for a promotion because it's a minimum advertised price (MAP) listing."
                },
                "38274": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You haven't included electronic payment method  as a payment method. In order to make this listing eligible, update it to include electronic payment method ."
                },
                "38275": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This SKU used in inventoryReferenceId matches an item that is part of a listing with variations. This SKU is only eligible if you add all of the listing variations. To add this listing, use the parent, or main, SKU (custom label)."
                },
                "345112": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid Store category. Please refer to API documentation to source allowed values."
                },
                "345113": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid marketplace category ID. Please refer to API documentation for the supported values."
                },
                "345137": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'couponCode' value is invalid. For help, see the documentation for this call."
                },
                "345138": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update the 'couponCode' for an active or paused promotion."
                },
                "345139": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'couponType' data is invalid. For help, see the documentation for this call."
                },
                "345140": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update the 'couponType' for an active or paused promotion."
                },
                "345142": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update the 'maxCouponRedemptionPerUser' for an active or paused promotion."
                },
                "345143": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxDiscountAmount' value is invalid. For help, see the documentation for this call.\n"
                },
                "345144": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update the 'maxDiscountAmount' for an active or paused promotion."
                },
                "345145": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot apply a 'budget' to an active or paused promotion. For help, see the documentation for this call."
                },
                "345146": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'budget' value is invalid. For help, see the documentation for this call."
                },
                "345147": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'budget' value cannot be decreased. For help, see the documentation for this call."
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                },
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                },
                "38207": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The promotion priority is invalid. Please check and try the call again."
                },
                "38210": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot change the priority of a promotion that is ended or deleted."
                },
                "38218": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A valid entry is required for {fieldName}."
                },
                "38219": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The start date and time must be earlier than the end date and time."
                },
                "38220": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The end date and time must be later than the current date and time."
                },
                "38225": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update a promotion that has ended."
                },
                "38228": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The amount value of '{fieldName}' contains decimals, only integers are supported."
                },
                "38229": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The start date and time should be later than the current date and time."
                },
                "38232": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update the promotion discount for an active promotion."
                },
                "38234": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "HTML is not allowed in the '{fieldName}' field."
                },
                "38235": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid input for the '{fieldName}' field. For help, see the documentation for this call."
                },
                "38236": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'discountSpecification' data is missing, which is required by this call. For help, see the documentation for this call."
                },
                "38237": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request can have only one of these fields: 'minQuantity', 'forEachQuantity', 'minAmount', or 'forEachAmount' in 'discountSpecification'. For help, see the documentation for this call."
                },
                "38238": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'discountBenefit' data is missing, which is required by this call. For help, see the documentation for this call."
                },
                "38239": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request can have only one of these fields: 'percentageOffOrder', 'amountOffOrder', 'percentageOffItem', or 'amountOffItem' in 'discountBenefit'. For help, see the documentation for this call."
                },
                "38240": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid input for the 'promotionStatus' field. For help, see the documentation for this call."
                },
                "38241": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This discount rule combination is currently not supported. For help, see the documentation for this call."
                },
                "38242": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The request can have only one of these fields: 'inventoryCriterion.inventoryItems' or 'inventoryCriterion.listingIds'."
                },
                "38253": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The data combination of 'DiscountSpecification' and 'DiscountBenefit' is not valid for this promotion type. For help, see the documentation for this call."
                },
                "38255": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The promotion description exceeds the maximum length, which is {promoDescriptionLength}."
                },
                "38256": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The promotion name exceeds the maximum length, which is {promoNameLength}."
                },
                "38257": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This promotion type supports only one discount rule for the item promotion."
                },
                "38260": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "To update the start date of a promotion, the promotion must be in draft or scheduled state."
                },
                "38261": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Promotions are currently limited to a maximum of {maxListingInclLimit} parent items, when entering item IDs or choosing from live inventory."
                },
                "38262": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can only include up to {maxSkuInclLimit} SKUs or custom labels in inventoryItems."
                },
                "38265": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Number of discount items is greater than the quantity specified in 'DiscountSpecification'."
                },
                "38267": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'DiscountBenefit.amountOffOrder' field cannot be used with the 'DiscountSpecification.numberOfDiscountedItems' field. This parameter is reserved for Buy x, Get x discounts. For help, see the documentation for this call."
                },
                "38269": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The promotion ID does not match any of the seller's promotions."
                },
                "38270": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The currency type does not match what is used for the Marketplace ID submitted."
                },
                "38271": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Only new or scheduled promotions can be saved as a draft."
                },
                "345077": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update a promotion that was not created through the API."
                },
                "345110": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can specify only one of Inventory Items, Listing IDs or Rules in the Inventory Criterion."
                },
                "345111": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify Rules when using the Inventory by Value Criterion."
                },
                "345114": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A Category scope is required for the Rule. Please refer to API documentation for allowed values."
                },
                "345115": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one Category is required. Please provide a valid input for this field and try again."
                },
                "345116": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can specify only Marketplace categories or Store categories when creating Rules."
                },
                "345118": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can specify only one of Inventory Items or Listing IDs in the Exclusion Criterion."
                },
                "345120": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid Item condition. Please refer to API documentation for allowed values."
                },
                "345121": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify Rules or inventory items when using the Inventory by ALL Criterion."
                },
                "345122": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "category ids cannot be specified with the inventory of type any."
                },
                "345123": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "brands cannot be specified with inventory of type any or Store."
                },
                "345124": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Exclusions are currently limited to a maximum of 100 parent items, when entering Inventory Items or Listing IDs, or choosing from live inventory."
                },
                "345125": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify a child Marketplace Category ID when the parent Marketplace Category ID is already specified. Please refer to the API documentation to source allowed values."
                },
                "345126": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot specify a child Store Category ID when the parent Store Category ID is already specified. Please refer to the API documentation to source allowed values."
                },
                "345127": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Category aspects are not supported in this version."
                },
                "345128": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The minimum discount rules required for volume discount promotions are {numOfDiscountRules}"
                },
                "345129": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'discountRules.ruleOrder' is missing or invalid for one of the discount rules for volume discount promotions. see the documentation for this call."
                },
                "345130": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can include up to a maximum of {numOfDiscountRules} discount rules in a volume discount promotion."
                },
                "345131": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Each 'minQuantity' value should be one greater than the 'minQuantity' value of the previous discount rule."
                },
                "345132": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The discount value is invalid for one of the discount rules for volume discount promotions. see the documentation for this call."
                },
                "345133": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Each 'percentageOffOrder' or 'amountOffOrder' value should be greater than the 'percentageOffOrder' or 'amountOffOrder' value of the previous discount rule for volume discount promotions."
                },
                "345134": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This promotionType is currently not supported. For help, see the documentation for this call."
                },
                "345135": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update the promotion type for a promotion."
                },
                "345136": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'discountBenefit' specified is not supported for this promotion Type. For help, see the documentation for this call."
                },
                "345137": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'couponCode' value is invalid. For help, see the documentation for this call."
                },
                "345138": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update the 'couponCode' for an active or paused promotion."
                },
                "345139": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'couponType' data is invalid. For help, see the documentation for this call."
                },
                "345140": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update the 'couponType' for an active or paused promotion."
                },
                "345141": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxCouponRedemptionPerUser' value is invalid. For help, see the documentation for this call."
                },
                "345142": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update the 'maxCouponRedemptionPerUser' for an active or paused promotion."
                },
                "345143": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'maxDiscountAmount' value is invalid. For help, see the documentation for this call."
                },
                "345144": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update the 'maxDiscountAmount' for an active or paused promotion."
                },
                "345145": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot apply a 'budget' to an active or paused promotion. For help, see the documentation for this call."
                },
                "345146": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'budget' value is invalid. For help, see the documentation for this call."
                },
                "345147": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'budget' value cannot be decreased. For help, see the documentation for this call."
                },
                "345148": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A coupon with this 'couponCode' already exists. Please try a different 'couponCode'."
                },
                "345149": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'currency' for 'maxDiscountAmount' and 'budget' has to be same. For help, see the documentation for this call."
                },
                "345150": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "'promotionType' CODED_COUPON is currently not supported for this Marketplace ID. For help, see the documentation for this call."
                },
                "345151": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'discountBenefit' value cannot exceed the 'maxDiscountAmount' value."
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38243": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'minQuantity' value is invalid. This value must be an integer."
                },
                "38244": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'forEachQuantity' value is invalid. This value must be an integer."
                },
                "38245": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'minAmount' value is invalid. For help, see the documentation for this call."
                },
                "38246": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'forEachAmount' value is invalid. For help, see the documentation for this call."
                },
                "38247": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'numberOfDiscountedItems' value is invalid. This value must be an integer."
                },
                "38248": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'percentOffItem' value is invalid. For help, see the documentation for this call."
                },
                "38249": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'percentOffOrder' value is invalid. For help, see the documentation for this call."
                },
                "38250": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'amountOffItem' value is invalid. For help, see the documentation for this call."
                },
                "38251": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'amountOffOrder' value is invalid. For help, see the documentation for this call."
                },
                "38266": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'discountBenefit' value cannot exceed {maxDiscPercent}% of the 'discountSpecification.maxAmount' value."
                },
                "38268": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The 'discountBenefit' value cannot exceed {maxDiscPercent}% of the 'discountSpecification'."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, please contact support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "item_promotion"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method deletes the threshold discount specified by the <b>promotion_id</b> path parameter. Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> to retrieve the IDs of a seller's discounts.  <br><br>You can delete any discount with the exception of those that are currently active (RUNNING). To end a running threshold discount, call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-item_promotion-updateitempromotion\">updateItemPromotion</a> and adjust the <b>endDate</b> field as appropriate.",
        "operationId": "deleteItemPromotion",
        "parameters": [
          {
            "name": "promotion_id",
            "in": "path",
            "description": "This path parameter takes a concatenation of the ID of the discount you want to delete plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an \"at sign\" (<b>@</b>). <br><br>The ID of the discount (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> method to retrieve promotion Ids. See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported Marketplace ID values.<br><br><b>Example:</b> <code>1********5@EBAY_US</code>",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                },
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                },
                "38216": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A promotion can only be deleted if it is paused or ended."
                },
                "345077": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update a promotion that was not created through the API."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, please contact support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/promotion/{promotion_id}/get_listing_set": {
      "get": {
        "tags": [
          "promotion"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method returns the set of listings associated with the <b>promotion_id</b> specified in the path parameter. Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> to retrieve the IDs of a seller's discounts.  <p>The listing details are returned in a paginated set and you can control and results returned using the following query parameters: <b>limit</b>, <b>offset</b>, <b>q</b>, <b>sort</b>, and <b>status</b>.</p>  <ul><li><b>Maximum associated listings returned:</b> 200</li>  <li><b>Default number of listings returned:</b> 200</li></ul>",
        "operationId": "getListingSet",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Specifies the maximum number of discounts returned on a page from the result set. <br><br><b>Default:</b> 200<br><b>Maximum:</b> 200",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Specifies the number of discounts to skip in the result set before returning the first discount in the paginated response.  <p>Combine <b>offset</b> with the <b>limit</b> query parameter to control the items returned in the response. For example, if you supply an <b>offset</b> of <code>0</code> and a <b>limit</b> of <code>10</code>, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If <b>offset</b> is <code>10</code> and <b>limit</b> is <code>20</code>, the first page of the response contains items 11-30 from the complete result set.</p> <p><b>Default:</b> 0</p>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "promotion_id",
            "in": "path",
            "description": "This path parameter takes a concatenation of the ID of the discount associated with the listing set plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an \"at sign\" (<b>@</b>). <br><br>The ID of the discount (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> method to retrieve promotion Ids. See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported Marketplace ID values.<br><br><b>Example:</b> <code>1********5@EBAY_US</code>",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "q",
            "in": "query",
            "description": "Reserved for future use.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "description": "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.  <br><br><b>Example:</b> <br>&nbsp;&nbsp;&nbsp;<code>sort=PRICE</code> - Sorts the associated listings by their current price in ascending order <br>&nbsp;&nbsp;&nbsp;<code>sort=-TITLE</code> - Sorts the associated listings by their title in descending alphabetical order (Z-Az-a)  <br><br><b>Valid values</b>:<ul class=\"compact\"><li>AVAILABLE</li> <li>PRICE</li> <li>TITLE</li></ul>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "status",
            "in": "query",
            "description": "This query parameter applies only to markdown discounts. It filters the response based on the indicated status of the discount.<br><br><span class=\"tablenote\"><b>Note:</b> Currently, the only supported value for this parameter is <code>MARKED_DOWN</code>, which indicates active markdown discounts.</span>",
            "required": false,
            "schema": {
              "type": "string",
              "$ref": "#/components/schemas/ItemMarkdownStatusEnum"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItemsPagedCollection"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "345062": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Sort is not supported for this promotion type. For help, see the documentation for this call."
                },
                "345068": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The value of the 'Status' parameter is invalid. For help, see the documentation for this call."
                },
                "345069": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The 'Status' parameter is only supported for itemPriceMarkdownPromotions. For help, see the documentation for this call."
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                },
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                },
                "38211": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The offset value must be an integer value greater than or equal to zero."
                },
                "38212": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The sort value was not valid. For the valid values, see the documentation for this call."
                },
                "38213": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can query a limit of between 0 and 200 promotion records at a time. Update the request and resubmit the call."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/promotion": {
      "get": {
        "tags": [
          "promotion"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method returns a list of a seller's undeleted discounts. <p>The call returns up to 200 currently-available discounts on the specified marketplace. While the response body does not include the discount's <b>discountRules</b> or <b>inventoryCriterion</b> containers, it does include the <b>promotionHref</b> (which you can use to retrieve the complete details of the discount).</p>  <p>Use query parameters to sort and filter the results by the number of discounts to return, the discount state or type, and the eBay marketplace. You can also supply keywords to limit the response to the discounts that contain that keywords in the title of the discount.</p> <p><b>Maximum returned:</b> 200</p>",
        "operationId": "getPromotions",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Specifies the maximum number of discounts returned on a page from the result set.  <br><br><b>Default:</b> 200 <br><b>Maximum:</b> 200",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "marketplace_id",
            "in": "query",
            "description": "This parameter specifies eBay marketplace ID of the site where the discount is hosted.<br><br>See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported Marketplace ID values.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Specifies the number of discounts to skip in the result set before returning the first discount in the paginated response.  <p>Combine <b>offset</b> with the <b>limit</b> query parameter to control the items returned in the response. For example, if you supply an <b>offset</b> of <code>0</code> and a <b>limit</b> of <code>10</code>, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If <b>offset</b> is <code>10</code> and <b>limit</b> is <code>20</code>, the first page of the response contains items 11-30 from the complete result set.</p> <p><b>Default:</b> 0</p>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "promotion_status",
            "in": "query",
            "description": "This parameter specifies the discount state by which you want to filter the results. The response contains only those discounts that match the state you specify. <br><br>See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions.promotionstatusenum\">PromotionStatusEnum</a> for supported values.<br><br><b>Maximum number of input values:</b> 1",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "promotion_type",
            "in": "query",
            "description": "This parameter specifies the campaign discounts type by which you want to filter the results.<br><br>See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions.promotiontypeenum\">PromotionTypeEnum</a> for supported values.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "description": "A string consisting of one or more <i>keywords</i>. eBay filters the response by returning only the discounts that contain the supplied keywords in the title.  <br><br><b>Example:</b> \"iPhone\" or \"Harry Potter.\"  <br><br>Commas that separate keywords are ignored. For example, a keyword string of \"iPhone, iPad\" equals \"iPhone iPad\", and each results in a response that contains discounts with both \"iPhone\" and \"iPad\" in the title.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "description": "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.  <br><br><b>Example:</b> <br>&nbsp;&nbsp;&nbsp;<code>sort=END_DATE</code> &nbsp; Sorts the discounts in the response by their end dates in ascending order <br>&nbsp;&nbsp;&nbsp;<code>sort=-PROMOTION_NAME</code> &nbsp; Sorts the discounts by their name in descending alphabetical order (Z-Az-a)  <br><br><b>Valid values</b>:<ul><li><code>START_DATE</code></li> <li><code>END_DATE</code></li> <li><code>PROMOTION_NAME</code></li></ul>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromotionsPagedCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                },
                "38211": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The offset value must be an integer value greater than or equal to zero."
                },
                "38212": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The sort value was not valid. For the valid values, see the documentation for this call."
                },
                "38213": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can query a limit of between 0 and 200 promotion records at a time. Update the request and resubmit the call."
                },
                "38240": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid input for the 'promotionStatus' field. For help, see the documentation for this call."
                },
                "345141": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid input for the 'promotionType' field. For help, see the documentation for this call."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/promotion/{promotion_id}/pause": {
      "post": {
        "tags": [
          "promotion"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method pauses a currently-active (RUNNING) threshold discount and changes the state of the discount from <code>RUNNING</code> to <code>PAUSED</code>. Pausing a discount makes the discount temporarily unavailable to buyers and any currently-incomplete transactions will not receive the offer until the discount is resumed. Also, discount teasers are not displayed when a discount is paused.  <br><br>Pass the ID of the discount you want to pause using the <b>promotion_id</b> path parameter. Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> to retrieve the IDs of the seller's discounts. <br><br><b>Note:</b> You can only pause threshold discounts (you cannot pause markdown discounts).",
        "operationId": "pausePromotion",
        "parameters": [
          {
            "name": "promotion_id",
            "in": "path",
            "description": "This path parameter takes a concatenation of the ID of the active discount being paused plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an \"at sign\" (<b>@</b>). <br><br>The ID of the discount (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> method to retrieve promotion Ids. See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported Marketplace ID values.<br><br><b>Example:</b> <code>1********5@EBAY_US</code>",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "204": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                },
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                },
                "38214": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "A promotion can only be paused if it is scheduled or running."
                },
                "345077": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update a promotion that was not created through the API."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/promotion/{promotion_id}/resume": {
      "post": {
        "tags": [
          "promotion"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method restarts a threshold discount that was previously paused and changes the state of the discount from <code>PAUSED</code> to <code>RUNNING</code>. Only discounts that have been previously paused can be resumed. Resuming a discount reinstates the teasers and any transactions that were in motion before the discount was paused will again be eligible for the discount.  <br><br>Pass the ID of the discount you want to resume using the <b>promotion_id</b> path parameter. Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> to retrieve the IDs of the seller's discounts.",
        "operationId": "resumePromotion",
        "parameters": [
          {
            "name": "promotion_id",
            "in": "path",
            "description": "This path parameter takes a concatenation of the ID of the paused discount being resumed with the listing set plus the marketplace ID on which the discount is hosted. Concatenate the two values by separating them with an \"at sign\" (<b>@</b>). <br><br>The ID of the discount (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the discount is created. The Marketplace ID is the ENUM value of eBay marketplace where the discount is hosted.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> method to retrieve promotion Ids. See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported Marketplace ID values.<br><br><b>Example:</b> <code>1********5@EBAY_US</code>",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "204": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                },
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                },
                "38209": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot resume a promotion that is not paused or has already ended."
                },
                "345077": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You cannot update a promotion that was not created through the API."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/promotion_report": {
      "get": {
        "tags": [
          "promotion_report"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method generates a report that lists the seller's running, paused, and ended discounts for the specified eBay marketplace. The result set can be filtered by the discount status and the number of results to return. You can also supply <i>keywords</i> to limit the report to discounts that contain the specified keywords. <br><br>Specify the eBay marketplace for which you want the report run using the <b>marketplace_id</b> query parameter. Supply additional query parameters to control the report as needed.",
        "operationId": "getPromotionReports",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Specifies the maximum number of discounts returned on a page from the result set.  <br><br><b>Default:</b> 200 <br><b>Maximum:</b> 200",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "marketplace_id",
            "in": "query",
            "description": "This parameter specifies the eBay marketplace ID of the site for which you want the discounts report.<br><br>See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported Marketplace ID values.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "offset",
            "in": "query",
            "description": "Specifies the number of discounts to skip in the result set before returning the first discount in the paginated response.  <p>Combine <b>offset</b> with the <b>limit</b> query parameter to control the items returned in the response. For example, if you supply an <b>offset</b> of <code>0</code> and a <b>limit</b> of <code>10</code>, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If <b>offset</b> is <code>10</code> and <b>limit</b> is <code>20</code>, the first page of the response contains items 11-30 from the complete result set.</p> <p><b>Default:</b> 0</p>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "promotion_status",
            "in": "query",
            "description": "This parameter specifies the discount state by which you want to filter the results. <br><br>See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions.promotionstatusenum\">PromotionStatusEnum</a> for supported values.<br><br><b>Maximum number of input values:</b> 1",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "promotion_type",
            "in": "query",
            "description": "This parameter specifies the campaign discount type by which you want to filter the results.<br><br>See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions.promotiontypeenum\">PromotionTypeEnum</a> for supported values.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "description": "A string consisting of one or more <i>keywords</i>. eBay filters the response by returning only the discounts that contain the supplied keywords in the discount title.  <br><br><b>Example:</b> \"iPhone\" or \"Harry Potter.\"  <br><br>Commas that separate keywords are ignored. For example, a keyword string of \"iPhone, iPad\" equals \"iPhone iPad\", and each results in a response that contains discounts with both \"iPhone\" and \"iPad\" in the title.",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PromotionsReportPagedCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                },
                "38211": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The offset value must be an integer value greater than or equal to zero."
                },
                "38213": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "You can query a limit of between 0 and 200 promotion records at a time. Update the request and resubmit the call."
                },
                "38240": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid input for the 'promotionStatus' field. For help, see the documentation for this call."
                },
                "345141": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Invalid input for the 'promotionType' field. For help, see the documentation for this call."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/promotion_summary_report": {
      "get": {
        "tags": [
          "promotion_summary_report"
        ],
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This method generates a report that summarizes the seller's discounts for the specified eBay marketplace. The report returns information on <code>RUNNING</code>, <code>PAUSED</code>, and <code>ENDED</code> discounts (deleted reports are not returned) and summarizes the seller's campaign performance for all discounts on a given site.  <br><br>For information about summary reports, see <a href=\"/api-docs/sell/static/marketing/pm-summary-report.html\" target=\"_blank\">Reading the item discount Summary report</a>.",
        "operationId": "getPromotionSummaryReport",
        "parameters": [
          {
            "name": "marketplace_id",
            "in": "query",
            "description": "This parameter specifies the eBay marketplace ID of the site for which you want a discount summary report.<br><br>See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported Marketplace ID values.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SummaryReportResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38204": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call."
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38203": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "Resource not found. Check the ID and try the call again."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "38201": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly",
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/email_campaign": {
      "get": {
        "tags": [
          "email_campaign"
        ],
        "description": "This method retrieves a list of email campaigns from a seller's eBay store.<br><br>Users can filter the results by <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.campaigntypeenum\">email campaign type</a>, <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.emailcampaignstatusenum\">email campaign status</a>, and <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">marketplace ID</a> using the <code>q</code> query parameter.",
        "operationId": "getEmailCampaigns",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of email campaigns returned in a page.<br><br><b>Min value</b>: 1<br><br><b>Max value</b>: 200",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "offset",
            "in": "query",
            "description": "The number of results to skip in a pagination query. This value cannot be less than zero.<br><br><b>Default value</b>: 0",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "q",
            "in": "query",
            "description": "This field contains filter criteria for the results returned. Filter by <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.campaigntypeenum\">email campaign type</a>, <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.emailcampaignstatusenum\">email campaign status</a>, and <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">marketplace ID</a>.<br><br>For example, setting <code>q=campaignType:WELCOME,ITEM_SHOWCASE</code> will return only Welcome and Item Showcase email campaigns.<br><br><span class=\"tablenote\"><b>Note:</b> At least one <code>campaignType</code> value must be set through the <code>q</code> query parameter. If no other filters are set, all email campaigns for the specified campaign type(s) will be returned in the results set.</span>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "sort",
            "in": "query",
            "description": "The criteria for sorting email campaign results. See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-createemailcampaign.itemsortenum\">ItemSortEnum</a> for sorting options and their enum values.<br><br><b>Default</b>: <code>NEWLY_LISTED</code>",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEmailCampaignsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "STORE_CRM",
                  "category": "BUSINESS",
                  "description": "A store subscription is required for this call, please check the store subscription status for current seller."
                },
                "35301": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The paginated query limit {limit} value is missing or invalid. The value cannot be less than or equal to zero and also cannot be greater than maximum value."
                },
                "35302": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The paginated query offset {offset} value is missing or invalid. The value cannot be less zero and also cannot be greater than maximum value."
                },
                "35303": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The query string {q} is malformed. For the valid format, see the documentation for this call."
                },
                "35304": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The email campaign type {campaignType} in query string {q} is not supported. For the valid values, see the documentation for this call."
                },
                "35305": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The 'marketplaceId' in query string {q} is not supported. For the valid values, see the documentation for this call."
                },
                "35306": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The email campaign status {status} in query string {q} is not supported. For the valid values, see the documentation for this call."
                },
                "35307": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The campaign type {campaignType} in query string {q} is required."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35000": {
                  "domain": "STORE_CRM",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "email_campaign"
        ],
        "description": "This method creates a new email campaign. An eBay store owner can create six different types of email campaigns: Welcome, New products & collections, Coupon, Sale event + markdown, Order discount, and Volume pricing.<br><br>A successful <b>createEmailCampaign</b> request returns the <b>emailCampaignId</b> assigned to the new email campaign.<br><br>The fields <b>emailCampaignType</b>, <b>audienceCodes</b>, <b>itemSelectMode</b>, <b>subject</b>, and <b>personalizedMessage</b> are required for all email campaign types. <br><br>Specific email campaign types have required values for additional fields. For more information on the email campaign types, see the <a href=\"/api-docs/sell/static/marketing/store-email-campaigns.html#email-campain-types\" target=\"_blank\">Store Email Campaigns</a> section of the Selling Integration Guide. ",
        "operationId": "createEmailCampaign",
        "parameters": [
          {
            "name": "X-EBAY-C-MARKETPLACE-ID",
            "in": "header",
            "description": "The eBay marketplace that the email campaign interfaces with.<br><br>eBay marketplaces correspond to geographical regions or large submarkets of regions. For example, <code>EBAY-US</code> corresponds to the United States market.<br><br>See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported values.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "Create a new email campaign request.",
          "content": {
            "application/json": {
              "schema": {
                "description": "Create a new email campaign request.",
                "$ref": "#/components/schemas/CreateEmailCampaignRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateEmailCampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "STORE_CRM",
                  "category": "BUSINESS",
                  "description": "A store subscription is required for this call, please check the store subscription status for current seller."
                },
                "35201": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'marketplaceId' value is not supported. For the valid values, see the documentation for this call."
                },
                "35202": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'emailCampaignType' value is not supported. For the valid values, see the documentation for this call."
                },
                "35203": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'audiences' is required for this call."
                },
                "35204": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'subject' is required for this call."
                },
                "35205": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'personalizedMessage' is required for this call."
                },
                "35206": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'subject' length is too long. For maximum limits, see the documentation for this call."
                },
                "35207": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'audiences' value is not suitable for current email campaign type."
                },
                "35208": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'itemIds' is required for this call."
                },
                "35209": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "For 'WELCOME' type campaign, 'itemIds' should be empty."
                },
                "35210": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The item {itemIds} size exceeds maximum. For maximum limits, see the documentation for this call."
                },
                "35211": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "No eligible items for current campaign."
                },
                "35212": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'promotionId' is required for this call."
                },
                "35213": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'promotionId' is invalid, promotion may be inactive or non-exist."
                },
                "35214": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'scheduleDate' is not required for this call."
                },
                "35215": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'scheduleDate' is missing or invalid, please use a valid UTC format(yyyy-MM-ddThh:mm.sssZ) string."
                },
                "35216": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "Only one 'WELCOME' type email campaign is allowed for one marketplace."
                },
                "35217": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "Only one automated promotion email campaign is allowed for one campaign type per marketplace id."
                },
                "35218": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'personalizedMessage' length is too long. For maximum limits, see the documentation for this call."
                },
                "35219": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The email campaign schedule date {scheduleDate} must be in the future."
                },
                "35220": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'itemIds' contains ineligible item id, please check the item list"
                },
                "35221": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'itemSelectMode' is invalid for this campaign, please see the documentation for this call."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35000": {
                  "domain": "STORE_CRM",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/email_campaign/{email_campaign_id}": {
      "get": {
        "tags": [
          "email_campaign"
        ],
        "description": "This method returns the details of a single email campaign specified by the <b>email_campaign_id</b> path parameter.<br><br>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns\">getEmailCampaigns</a> to retrieve a list of all email campaigns from a seller's eBay store.",
        "operationId": "getEmailCampaign",
        "parameters": [
          {
            "name": "email_campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the email campaign being retrieved.<br><br>Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns\">getEmailCampaigns</a> method to retrieve a list of email campaign IDs for a seller.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEmailCampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "STORE_CRM",
                  "category": "BUSINESS",
                  "description": "A store subscription is required for this call, please check the store subscription status for current seller."
                },
                "35501": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "No email campaign found for email campaign ID {email_campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35000": {
                  "domain": "STORE_CRM",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "put": {
        "tags": [
          "email_campaign"
        ],
        "description": "This method lets users update an existing email campaign. Pass the <b>emailCampaignId</b> in the request URL and specify the changes to field values in the request payload.<br><br><span class=\"tablenote\"><b>Note: </b>You can only update the custom fields of an email campaign. Fixed values, such as the <b>emailCampaignType</b>, cannot be changed. For full specifications of fixed values for each email campaign type, see the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-createemailcampaign\">createEmailCampaign</a> method documentation.</span>",
        "operationId": "updateEmailCampaign",
        "parameters": [
          {
            "name": "email_campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay assigned identifier for the email campaign being updated.<br><br>Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns\" target=\"_blank\">getEmailCampaigns</a> method to retrieve a list of email campaign IDs for a seller.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "requestBody": {
          "description": "update email campaign request",
          "content": {
            "application/json": {
              "schema": {
                "description": "update email campaign request",
                "$ref": "#/components/schemas/UpdateCampaignRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateEmailCampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "STORE_CRM",
                  "category": "BUSINESS",
                  "description": "A store subscription is required for this call, please check the store subscription status for current seller."
                },
                "35801": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'audiences' is required for this call."
                },
                "35802": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "No email campaign found for email campaign ID {email_campaign_id}."
                },
                "35803": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'subject' is required for this call."
                },
                "35804": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'personalizedMessage' is required for this call."
                },
                "35805": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'subject' length is too long. For maximum limits, see the documentation for this call."
                },
                "35806": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'audiences' value is not suitable for current email campaign type."
                },
                "35807": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'itemIds' is required for this call."
                },
                "35808": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "For 'WELCOME' type campaign, 'itemIds' should be empty."
                },
                "35809": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The item {itemIds} size exceeds maximum. For maximum limits, see the documentation for this call."
                },
                "35810": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "No eligible items for current campaign."
                },
                "35811": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'promotionId' is required for this call."
                },
                "35812": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'promotionId' is invalid, promotion may be inactive or non-exist."
                },
                "35813": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'scheduleDate' is not required for this call."
                },
                "35814": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'scheduleDate' is missing or invalid, please use a valid UTC format(yyyy-MM-ddThh:mm:sssZ) string."
                },
                "35815": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'email_campaign_id' is not eligible for editing."
                },
                "35816": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'personalizedMessage' length is too long. For maximum limits, see the documentation for this call."
                },
                "35817": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The email campaign schedule date {scheduleDate} must be in the future."
                },
                "35818": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'itemIds' contains ineligible item id, please check the item list"
                },
                "35819": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'itemSelectMode' is invalid for this campaign, please see the documentation for this call."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35000": {
                  "domain": "STORE_CRM",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "email_campaign"
        ],
        "description": "This method deletes the email campaign specified by the <b>email_campaign_id</b> path parameter.<br><br>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns\">getEmailCampaigns</a> to retrieve all of the seller's email campaigns. Use the <b>email_campaign_id</b> of the desired email campaign in the response as the path parameter for this request.",
        "operationId": "deleteEmailCampaign",
        "parameters": [
          {
            "name": "email_campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier for the email campaign being deleted.<br /><br /> You can retrieve the email campaign IDs for a specified seller using the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns\">getEmailCampaigns</a> method.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteEmailCampaignResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "STORE_CRM",
                  "category": "BUSINESS",
                  "description": "A store subscription is required for this call, please check the store subscription status for current seller."
                },
                "35401": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "No email campaign found for email campaign ID {email_campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35000": {
                  "domain": "STORE_CRM",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/email_campaign/audience": {
      "get": {
        "tags": [
          "email_campaign"
        ],
        "description": "This method retrieves all available email newsletter audiences for the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.campaigntypeenum\">email campaign type</a> specified by the <b>emailCampaignType</b> path parameter.<br><br>Use the optional <b>limit</b> and <b>offset</b> path parameters to paginate the results and to control which records are returned, respectively.",
        "operationId": "getAudiences",
        "parameters": [
          {
            "name": "emailCampaignType",
            "in": "query",
            "description": "The email campaign type to search against.<br><br>See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.campaigntypeenum\">CampaignTypeEnum</a> for the full list of available email campaign types and associated enum values.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of audience groups returned per page in the results set.<br><br><b>Min value</b>: 1<br><br><b>Max value</b>: 200<br><br><b>Default value</b>: 100",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "offset",
            "in": "query",
            "description": "The number of results to skip in a pagination query. This value cannot be less than 0.<br><br><b>Default value</b>: 0",
            "required": false,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEmailCampaignAudiencesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "STORE_CRM",
                  "category": "BUSINESS",
                  "description": "A store subscription is required for this call, please check the store subscription status for current seller."
                },
                "35101": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The paginated query limit {limit} value is missing or invalid. The value cannot be less than or equal to zero."
                },
                "35102": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The paginated query offset {offset} value is mossing or invalid. The value cannot be less than zero."
                },
                "35103": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The email campaign type {emailCampaignType} is not supported. For the valid value, please see the documentation for this call."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35000": {
                  "domain": "STORE_CRM",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/email_campaign/{email_campaign_id}/email_preview": {
      "get": {
        "tags": [
          "email_campaign"
        ],
        "description": "This method returns a preview of the email sent by the email campaign indicated by the <b>email_campaign_id</b> path parameter.<br><br>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns\">getEmailCampaigns</a> to obtain a list of email campaigns. Use the <b>emailCampaignId</b> value of the desired email campaign as the <b>email_campaign_id</b> path parameter value.<br><br>If this call is executed successfully, the response returns a <b>content</b> field that contains the raw HTML code of the email campaign that can then be rendered anywhere.<br><br><span class=\"tablenote\"><b>Note:</b> The eBay listings in the email are sorted according to the email campaign sort criteria. The individual listings can change over time, as well.<br><br>The result of the email preview call can be treated as a snapshot of the email campaign taken at the date and time of the <b>renderDate</b> value found in the results of the call.</span>",
        "operationId": "getEmailPreview",
        "parameters": [
          {
            "name": "email_campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay assigned identifier for the email campaign associated with the preview being retrieved.<br><br>Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns\">getEmailCampaigns</a> method to retrieve a list of email campaign IDs for a seller.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple",
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEmailPreviewResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "STORE_CRM",
                  "category": "BUSINESS",
                  "description": "A store subscription is required for this call, please check the store subscription status for current seller."
                },
                "35601": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "No email campaign found for email campaign ID {email_campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35000": {
                  "domain": "STORE_CRM",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/email_campaign/report": {
      "get": {
        "tags": [
          "email_campaign"
        ],
        "description": "This method returns the seller's email campaign performance report for a time period specified by the <b>startDate</b> and <b>endDate</b> path parameters. The maximum date range for a report retrieved by this method is one year. <br><br><span class=\"tablenote\"><b>Note: </b>The <b>startDate</b> and <b>endDate</b> must be given in UTC format, as shown in the following example: <br><code>sell/marketing/v1/email_campaign/report?startDate=2022-11-01T19:09:02.768Z&endDate=2022-12-28T19:09:02.768Z</code></span><br>The email report returns a list of metrics, such as the number of times an email report has been opened and resulted in clicks.",
        "operationId": "getEmailReport",
        "parameters": [
          {
            "name": "endDate",
            "in": "query",
            "description": "The end date for the report, given in UTC format. The maximum date range for a report retrieved by this method is one year.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "startDate",
            "in": "query",
            "description": "The start date for the report, given in UTC format. The maximum date range for a report retrieved by this method is one year.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form",
            "explode": true
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetEmailReportResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "STORE_CRM",
                  "category": "BUSINESS",
                  "description": "A store subscription is required for this call, please check the store subscription status for current seller."
                },
                "35701": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'startDate' value is missing or invalid, please use a valid UTC format(yyyy-MM-ddThh:mm:sssZ) string."
                },
                "35702": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'endDate' value is missing or invalid, please use a valid UTC format(yyyy-MM-ddThh:mm:sssZ) string."
                },
                "35703": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The query start date {startDate} cannot be later than query end date {endDate}."
                },
                "35704": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "The time interval between start date and end date exceeds maximum limit. For maximum limits, please see the documentation for this call."
                },
                "35705": {
                  "domain": "STORE_CRM",
                  "category": "REQUEST",
                  "description": "'currency' value is not supported. For the valid values, see the documentation for this call."
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35000": {
                  "domain": "STORE_CRM",
                  "category": "APPLICATION",
                  "description": "Internal server error encountered. If this problem persists, contact the eBay Developers Program for support."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/upsert_video_ads_preferences": {
      "put": {
        "tags": [
          "ad"
        ],
        "description": "Call this method to create or update video ads preferences for a single listing in an ad campaign. This operation accepts one <b>listingId</b> and one <b>videoAdsPreferences</b> object and updates the seller's video ads preference for a single listing. A video ad is served only when the video is available and approved. If the video is unavailable or not approved, the ad may fall back to the static listing image.<br><br>Use <b>upsertVideoAdsPreferences</b> when your application is handling one listing at a time and you want a simple way to enable or disable video ads for that listing. Setting <b>videoAdsEnabled</b> to <code>true</code> enables video ads for any ads associated with the specified listing ID within the campaign, while <code>false</code> opts any ads associated with that listing ID within the campaign out of video ads. <p><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note: </strong>Use this operation only for listings in Promoted Listings priority campaigns that use the Cost Per Click (CPC) funding model and already have a video attached to the listing. Video ads preferences are managed at the campaign level, not the ad group level. When a listing ID is opted into video ads for a given campaign, all ads associated with that listing ID within the campaign are opted into video ads.</span></span></p><p>To confirm the updated state, retrieve the affected ad or ads with the <b>fieldgroups</b> query parameter set to <code>VIDEO</code> so <b>videoAdsPreferences</b> is included in the response.</p>",
        "operationId": "upsertVideoAdsPreferences",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to update video ads preferences for the set of ads associated with a single listing.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\" target=\"_blank\">getCampaigns</a> method to retrieve campaign IDs.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The container for the request to create or update video ads preferences for ads associated with the specified listing.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertVideoAdsPreferencesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpsertVideoAdsPreferencesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35013": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing Id {listingId} is not valid."
                },
                "35014": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID is required for this call."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "36160": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This functionality is only supported for CPC funding model."
                },
                "36264": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The requested 'videoAdsEnabled' is not valid."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                },
                "35048": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID {listingId} is invalid or has ended."
                },
                "36265": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No video ads found for the listing Id {listingId}."
                }
              }
            }
          },
          "409": {
            "description": "Business error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35052": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The category {categoryId} is not supported by the Promoted Listing service for multi-quantity listings."
                },
                "35054": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} was created on a different marketplace than the campaign. The listing and campaign must reside on the same marketplace."
                },
                "35057": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} does not belong to the seller making this call."
                },
                "35058": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} is not a fixed price item. This is a requirement for a promoted listing."
                },
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35067": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The seller must accept the Promoted Listing terms and conditions. For the requirements to use the Promoted Listing API, refer to the documentation."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                },
                "35089": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "We are currently testing a premium ads product with a small invite-only group. We will share more information when we are ready to expand."
                },
                "37035": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The listing ID {listingId} does not have videos. To enable video ads, please add a video to the listing first."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    },
    "/ad_campaign/{campaign_id}/bulk_upsert_video_ads_preferences": {
      "put": {
        "tags": [
          "ad"
        ],
        "description": "Call this method to create or update video ads preferences for multiple listings in a single ad campaign request. This operation is designed for bulk updates and accepts a <b>requests</b> array, where each item identifies a <b>listingId</b> and its <b>videoAdsPreferences</b> settings, including <b>videoAdsEnabled</b>. This request updates the seller's video ads preference, but a video ad is served only when the video is available and approved. If the video is unavailable or not approved, the ad may fall back to the static listing image. <p><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note: </strong>A maximum of 500 listing IDs is supported per call.</span></p><p>Use <b>bulkUpsertVideoAdsPreferences</b> when you want to enable or disable video ads across several listings efficiently, rather than sending one request per listing. Setting <b>videoAdsEnabled</b> to <code>true</code> enables video ads for ads associated with the specified listing IDs within the campaign, while <code>false</code> opts those ads out of video ads.</p><p><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note: </strong>Use this operation only for listings in Promoted Listings priority campaigns that use the Cost Per Click (CPC) funding model and already have a video attached to the listing. Video ads preferences are managed at the campaign level, not the ad group level. When a listing ID is opted into video ads for a given campaign, all ads associated with that listing ID within the campaign are opted into video ads.</span></p><p>To confirm the updated state, retrieve the affected ad or ads with the <b>fieldgroups</b> query parameter set to <code>VIDEO</code> so <b>videoAdsPreferences</b> is included in the response.</p>",
        "operationId": "bulkUpsertVideoAdsPreferences",
        "parameters": [
          {
            "name": "campaign_id",
            "in": "path",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign for which to update video ads preferences. <br><br>Use the <b>getCampaigns</b> method to retrieve campaign IDs.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Content-Type",
            "in": "header",
            "description": "This header indicates the format of the request body provided by the client. Its value should be set to <b>application/json</b>. <br><br> For more information, refer to <a href=\"/api-docs/static/rest-request-components.html#HTTP\" target=\"_blank \">HTTP request headers</a>.",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The request body for <b>bulkUpsertVideoAdsPreferences</b>. This container holds the bulk request payload used to create or update video ads preferences for multiple listings in a single request.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkUpsertVideoAdsPreferencesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkUpsertVideoAdsPreferencesResponse"
                }
              }
            }
          },
          "207": {
            "description": "Multi-Status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkUpsertVideoAdsPreferencesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35014": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The listing ID is required for this call."
                },
                "35018": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "There are duplicate listing IDs in this request. You must remove the duplicate."
                },
                "35033": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "At least one request is required for bulk requests."
                },
                "35035": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "The campaign with campaign id {campaign_id} has ended."
                },
                "36160": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "This functionality is only supported for CPC funding model."
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35045": {
                  "domain": "API_MARKETING",
                  "category": "REQUEST",
                  "description": "No campaign found for campaign id {campaign_id}."
                }
              }
            }
          },
          "409": {
            "description": "Business error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35064": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "This operation is only supported for key based campaigns."
                },
                "35067": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "The seller must accept the Promoted Listing terms and conditions. For the requirements to use the Promoted Listing API, refer to the documentation."
                },
                "35071": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "You have exceeded the maximum number of listing IDs. Only {maxSupportedNumber} IDs are supported per call."
                },
                "35077": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To use Promoted Listings, you need to improve your seller level to Top Rated or Above Standard and have enough recent sales activity."
                },
                "35078": {
                  "domain": "API_MARKETING",
                  "category": "BUSINESS",
                  "description": "To gain access to Promoted Listings, you must be in good standing with recent sales activity."
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorDetailV3"
                }
              }
            },
            "x-response-codes": {
              "errors": {
                "35001": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance."
                },
                "35002": {
                  "domain": "API_MARKETING",
                  "category": "APPLICATION",
                  "description": "Internal error. Please wait a few minutes and try the call again."
                }
              }
            }
          }
        },
        "security": [
          {
            "api_auth": [
              "https://api.ebay.com/oauth/api_scope/sell.marketing"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Ad": {
        "type": "object",
        "required": [
          "adId",
          "inventoryReferenceId",
          "inventoryReferenceType",
          "listingId"
        ],
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for an ad group in a campaign that uses the Cost Per Click (CPC) funding model. This ID is created after a successful <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-createadgroup\">createAdGroup</a> call, and all ad groups must be associated with a CPC campaign."
          },
          "adId": {
            "type": "string",
            "description": "A unique eBay-assigned ID that is generated when the ad is created."
          },
          "adStatus": {
            "description": "The current status of the CPC ad.<br /><br /><b>Valid Values:</b><ul><li><code>ACTIVE</code></li><li><code>PAUSED</code></li><li><code>ARCHIVED</code></li></ul><span class=\"tablenote\"><b>Note:</b> This type only applies to the Cost Per Click (CPC) funding model; it does not apply to the Cost Per Sale (CPS) funding model.</span>",
            "$ref": "#/components/schemas/AdStatusEnum"
          },
          "alerts": {
            "type": "array",
            "description": "An array containing alert messages for the ad.",
            "items": {
              "$ref": "#/components/schemas/Alert"
            }
          },
          "bidPercentage": {
            "type": "string",
            "description": "The user-defined <b>bid percentage</b> (also known as the <i>ad rate</i>) sets the level that eBay increases the visibility in search results for the associated listing. The higher the <b>bidPercentage</b> value, the more eBay promotes the listing.  <br><br>The value specified here is also used to calculate the Promoted Listings fee. This percentage value is multiplied by the final sales price to determine the fee. <br><br>The Promoted Listings fee is determined at the time the transaction completes and the seller is assessed the fee only when an item sells through a Promoted Listings ad campaign. <br><br>The <b>bidPercentage</b> is a single precision value that is guided by the following rules: <ul><li>These values are <b>valid</b>:<br>&nbsp;&nbsp;&nbsp;<code>4.1</code>, &nbsp;&nbsp;&nbsp;<code>5.0</code>, &nbsp;&nbsp;&nbsp;<code>5.5</code>, ...</li>  <li>These values are <b>not valid</b>:<br /> &nbsp;&nbsp;&nbsp;<code>0.01</code>, &nbsp;&nbsp;&nbsp;<code>10.75</code>, &nbsp;&nbsp;&nbsp;<code>99.99</code>,<br /> &nbsp;&nbsp;&nbsp;and so on.</li></ul>This is default bid percentage for the campaigns using the Cost Per Sale (CPS) funding model, and this value will be overridden by any ads in the campaign that have their own set bid percentages.<br /><br />If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign.<br /><br /><span class=\"tablenote\"><b>Note:</b>This field will always be returned for campaigns that use the Cost Per Sale (CPS) funding model. It will not be returned for campaigns that use the Cost Per Click (CPC) funding model.</span><br><span class=\"tablenote\"><b>Note:</b> This field has a minimum value of <code>2.0</code> and a maximum value of <code>100.0</code>.</span>"
          },
          "inventoryReferenceId": {
            "type": "string",
            "description": "An ID that identifies a single-item listing or multiple-variation listing that is managed with the <a href=\"/api-docs/sell/inventory/resources/methods\" title=\"Inventory API Reference\" target=\"_blank\">Inventory API</a>. <p>The <i>inventory reference ID</i> is a seller-defined value that can be either an <b>SKU</b> for a single-item listing or an <b>inventoryItemGroupKey</b> for a multiple-value listing.</p>  <p>An <i>inventoryItemGroupKey</i> 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).</p><p>This field is only returned if the ad is associated with a SKU or an inventory item group value.</p>"
          },
          "inventoryReferenceType": {
            "description": "The enumeration value returned here indicates the type of listing the inventoryReferenceId references. The value returned here will be <code>INVENTORY_ITEM</code> for a single-variation listing, or <code>INVENTORY_ITEM_GROUP</code> for a multiple-variation listing. <p>This field is only returned if the ad is associated with a SKU or an inventory item group value.</p>",
            "$ref": "#/components/schemas/InventoryReferenceTypeEnum"
          },
          "listingId": {
            "type": "string",
            "description": "A unique eBay-assigned ID that is generated when a listing is created."
          },
          "videoAdsPreferences": {
            "$ref": "#/components/schemas/VideoAdsPreferences",
            "description": "A container for the details of video ads that are associated with an ad. This container is returned only when the <b>fieldgroups</b> query parameter is set to <code>VIDEO</code>."
          }
        },
        "description": "A type that defines the fields for an ad."
      },
      "AdGroup": {
        "type": "object",
        "required": [
          "adGroupId",
          "adGroupStatus",
          "defaultBid",
          "name"
        ],
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for an ad group in a campaign that uses the Cost Per Click (CPC) funding model."
          },
          "adGroupStatus": {
            "description": "An enumeration value representing the current status of the ad group.<br /><br /><b>Valid Values:</b><ul><li><code>ACTIVE</code></li><li><code>PAUSED</code></li><li><code>ARCHIVED</code></li></ul>",
            "$ref": "#/components/schemas/AdGroupStatusEnum"
          },
          "defaultBid": {
            "description": "A bid amount that applies to all of the keywords in an ad group that do not have individual bids. For all keywords without individual bids, the default bid is the amount that the seller will pay per click for the listings in the ad group in the promoted listings campaign.<br><br><b>Valid Values</b>: 0.5, 0.75",
            "$ref": "#/components/schemas/Amount"
          },
          "name": {
            "type": "string",
            "description": "The seller-defined name of the ad group."
          }
        },
        "description": "This type defines the details of an existing ad group.<br /><br />An ad group can be added to a campaign that uses the Cost Per Click (CPC) funding model. A campaign may have multiple ad groups. All listings that are promoted in the campaign are included in the ad group.<br /><br /><span class=\"tablenote\"><b>Note:</b> This type only applies to the CPC funding model; it does not apply to the Cost Per Sale (CPS) funding model.</span>"
      },
      "AdGroupPagedCollectionResponse": {
        "type": "object",
        "required": [
          "adGroups",
          "href",
          "limit",
          "offset",
          "total"
        ],
        "properties": {
          "adGroups": {
            "type": "array",
            "description": "The details of existing ad groups, such as the name, ID, and status of the ad groups.",
            "items": {
              "$ref": "#/components/schemas/AdGroup"
            }
          },
          "href": {
            "type": "string",
            "description": "The URI of the current page of results from the result set."
          },
          "limit": {
            "type": "integer",
            "description": "The number of items returned on a single page from the result set. This value can be set in the request with the <b>limit</b> query parameter.",
            "format": "int32"
          },
          "next": {
            "type": "string",
            "description": "The call URI that can be used to retrieve the next page in the result set. This value is returned only if there is an additional page of results to display from the result set."
          },
          "offset": {
            "type": "integer",
            "description": "The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the <b>offset</b> query parameter.<br><br><span class=\"tablenote\"><b>Note: </b>The items in a paginated result set use a zero-based list, where the first item in the list has an offset of <code>0</code>.</span>",
            "format": "int32"
          },
          "prev": {
            "type": "string",
            "description": "The call URI that can be used to retrieve the previous page in the result set. Basically, all of the request parameters will remain the same except the offset value, which will be decreased to retrieve the previous page of results."
          },
          "total": {
            "type": "integer",
            "description": "The total number of items retrieved in the result set.<br /><br /><span class=\"tablenote\"><b>Note: </b>If no items are found, this field is returned with a value of <code>0</code>.</span>",
            "format": "int32"
          }
        },
        "description": "This type defines the details of a paged collection of ad groups.<br /><br /><span class=\"tablenote\"><b>Note:</b> This type only applies to the Cost Per Click (CPC) funding model; it does not apply to the Cost Per Sale (CPS) funding model.</span>"
      },
      "AdGroupStatusEnum": {
        "type": "object",
        "description": "An enumerated type that indicates the status of an existing ad group. | - **ACTIVE**: This enum value indicates that the ad group is active. Ads can be created if an ad group is in the active state. - **PAUSED**: This enum value indicates that the ad group is in the paused state. Ads can be created in this state, and the ad group can be moved back to the active state. - **ARCHIVED**: This enum value indicates that the ad group is in the archived state. Ads cannot be created in this state, and the ad group cannot be moved back to active again.",
        "enum": [
          "ACTIVE",
          "PAUSED",
          "ARCHIVED"
        ]
      },
      "AdIds": {
        "type": "object",
        "required": [
          "adIds"
        ],
        "properties": {
          "adIds": {
            "type": "array",
            "description": "A list of ad IDs. Only one ad can be deleted per operation and only one adId value will be returned.",
            "items": {
              "type": "string"
            }
          }
        },
        "description": "This type is a container for a list of ad IDs."
      },
      "AdPagedCollectionResponse": {
        "type": "object",
        "required": [
          "ads",
          "href",
          "limit",
          "total"
        ],
        "properties": {
          "ads": {
            "type": "array",
            "description": "The list of ads that matched the request criteria.",
            "items": {
              "$ref": "#/components/schemas/Ad"
            }
          },
          "href": {
            "type": "string",
            "description": "The URI of the current page of results from the result set."
          },
          "limit": {
            "type": "integer",
            "description": "The number of items returned on a single page from the result set. This value can be set in the request with the <b>limit</b> query parameter.<p><b>Default</b>: <code>10</code>",
            "format": "int32"
          },
          "next": {
            "type": "string",
            "description": "The call URI that can be used to retrieve the next page in the result set. Basically, all of the request parameters will remain the same except the offset value, which will be increased to retrieve the next page of results. <br><br><b>Max length</b>: 2048"
          },
          "offset": {
            "type": "integer",
            "description": "The number of results skipped in the result set before listing the first result on the current page. This value can be set in the request with the <b>offset</b> query parameter. If the <b>offset</b> value is not set, it defaults to zero.<p><b>Default</b>: <code>0</code></p><p class=\"tablenote\"><strong>Note: </strong>The items in a paginated result set use a zero-based list where the first item in the list has an offset of <code>0</code>.</p>",
            "format": "int32"
          },
          "prev": {
            "type": "string",
            "description": "The call URI that can be used to retrieve the previous page in the result set. Basically, all of the request parameters will remain the same except the offset value, which will be decreased to retrieve the previous page of results. <br><br><b>Max length</b>: 2048"
          },
          "total": {
            "type": "integer",
            "description": "The total number of items retrieved in the result set.  <br><br>If no items are found, this field is returned with a value of <code>0</code>.",
            "format": "int32"
          }
        },
        "description": "This type defines the fields that paginate the ads returned by the request. The entire <i>result set</i> consists of 0 or more sequenced <i>response pages</i>, where each page consists of 0 or more items from the complete result set."
      },
      "AdRateStrategyEnum": {
        "type": "object",
        "description": "An enumerated type that indicates the ad rate strategy for an existing Promoted Listings Standard (PLS) ad campaign. | - **DYNAMIC**: This enum value indicates that the ad rate is dynamically chosen for campaigns that use this ad rate strategy. - **FIXED**: This enum value indicates that the ad rate is fixed for campaigns that use this ad rate strategy.",
        "enum": [
          "DYNAMIC",
          "FIXED"
        ]
      },
      "AdReference": {
        "type": "object",
        "required": [
          "adId",
          "href"
        ],
        "properties": {
          "adId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for an ad. This ID is generated when an ad is created."
          },
          "href": {
            "type": "string",
            "description": "The <b>getAd</b> URI of an ad. You can use this URI to retrieve the ad."
          }
        },
        "description": "This type defines the fields for an ad ID and its associated URL."
      },
      "AdReferences": {
        "type": "object",
        "properties": {
          "ads": {
            "type": "array",
            "description": "A list of ad IDs. An ad ID is generated for each successfully created ad. Only one ad can be created per operation.",
            "items": {
              "$ref": "#/components/schemas/AdReference"
            }
          }
        },
        "description": "This type is a container for a list of ad IDs and their associated URIs."
      },
      "AdResponse": {
        "type": "object",
        "required": [
          "listingId",
          "statusCode"
        ],
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for an ad group in a priority strategy campaign that uses the Cost Per Click (CPC) funding model.<span class=\"tablenote\"><b>Note:</b> This field will always be returned for  campaigns that use the CPC funding model. It will not be returned for campaigns that use the Cost Per Sale (CPS) funding model.</span>"
          },
          "adId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for an ad. This ID is generated when an ad is created.<span class=\"tablenote\"><b>Note:</b>This field is only returned when an ad is successfully created for the corresponding listing.</span>"
          },
          "errors": {
            "type": "array",
            "description": "An array of errors associated with the request.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          },
          "href": {
            "type": "string",
            "description": "The getAd URI that points to the ad.<span class=\"tablenote\"><b>Note:</b>This field is only returned when an ad is successfully created for the corresponding listing.</span>"
          },
          "listingId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for a listing that is generated when the listing is created."
          },
          "statusCode": {
            "type": "integer",
            "description": "An HTTP status code indicating if the corresponding ad was successfully created or not. <code>200 Successful</code> should be returned for successfully created ads.<span class=\"tablenote\"><b>Note:</b>A status code is returned for each ad that the seller creates, or attempts to create.</span>",
            "format": "int32"
          }
        },
        "description": "This type defines the fields returned in an ad response."
      },
      "AdStatusEnum": {
        "type": "object",
        "description": "An enumerated type that indicates the status of an existing ad. | - **ACTIVE**: This enum value indicates that the ad is active. - **PAUSED**: This enum value indicates that the ad is in the paused state. Ads can be moved back to the active state from the paused state. - **ARCHIVED**: This enum value indicates that the ad is in the archived state. Ads cannot be moved back to active state from the archived state. The ad must be recreated to become active.",
        "enum": [
          "ACTIVE",
          "PAUSED",
          "ARCHIVED"
        ]
      },
      "AdUpdateResponse": {
        "type": "object",
        "required": [
          "listingId",
          "statusCode"
        ],
        "properties": {
          "adId": {
            "type": "string",
            "description": "A unique eBay-assigned ID that is generated when the ad is created."
          },
          "errors": {
            "type": "array",
            "description": "A list of errors associated with the specified listing ID.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          },
          "href": {
            "type": "string",
            "description": "The URI for the ad, which can be used to retrieve the ad."
          },
          "listingId": {
            "type": "string",
            "description": "A unique eBay-assigned ID that is generated when the listing is created."
          },
          "statusCode": {
            "type": "integer",
            "description": "An HTTP status code that indicates the response-status of the request.",
            "format": "int32"
          }
        },
        "description": "A type that contains the fields for the ad update response."
      },
      "AdUpdateStatusByListingIdResponse": {
        "type": "object",
        "required": [
          "statusCode"
        ],
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for an ad group in a campaign that uses the Cost Per Click (CPC) funding model."
          },
          "errors": {
            "type": "array",
            "description": "A list of errors associated with the specified listing ID.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          },
          "href": {
            "type": "string",
            "description": "The URI for the ad, which can be used to retrieve the ad."
          },
          "listingId": {
            "type": "string",
            "description": "A unique eBay-assigned ID that is generated when the listing is created."
          },
          "statusCode": {
            "type": "integer",
            "description": "An HTTP status code that indicates the response-status of the request.",
            "format": "int32"
          }
        },
        "description": "A type that contains the fields for the ad update status by listing ID response."
      },
      "AdUpdateStatusResponse": {
        "type": "object",
        "required": [
          "statusCode"
        ],
        "properties": {
          "adId": {
            "type": "string",
            "description": "A unique eBay-assigned ID that is generated when the ad is created."
          },
          "errors": {
            "type": "array",
            "description": "A list of errors associated with the specified listing ID.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          },
          "href": {
            "type": "string",
            "description": "The URI for the ad, which can be used to retrieve the ad."
          },
          "statusCode": {
            "type": "integer",
            "description": "An HTTP status code that indicates the response-status of the request.",
            "format": "int32"
          }
        },
        "description": "A type that contains the fields for the ad update status response."
      },
      "AdditionalInfo": {
        "type": "object",
        "properties": {
          "infoType": {
            "description": "The type of additional information provided for the suggested keyword.<br /><br /><strong>Valid Value:</strong> <code>KEYWORD_INSIGHTS</code>",
            "$ref": "#/components/schemas/AdditionalInfoEnum"
          },
          "metrics": {
            "type": "array",
            "description": "A list of additional data provided for the suggested keyword.",
            "items": {
              "$ref": "#/components/schemas/AdditionalInfoData"
            }
          }
        },
        "description": "A type that provides additional information for suggested keywords."
      },
      "AdditionalInfoData": {
        "type": "object",
        "properties": {
          "metricKey": {
            "description": "The metric used to provide additional information for the suggested keyword.<br /><br /><strong>Valid Values:</strong> <ul><li><code>ACTIVE_SELLER_COUNT</code></li><li><code>SEARCH_VOLUME</code></li></ul>",
            "$ref": "#/components/schemas/MetricEnum"
          },
          "value": {
            "type": "string",
            "description": "The data provided for the specified metric.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> All metric data is compiled for the marketplace associated with the specified campaign ID.</span>"
          }
        },
        "description": "A type that defines the data produced for additional information about suggested keywords."
      },
      "AdditionalInfoEnum": {
        "type": "object",
        "description": "An enumerated type that indicates the metric used to provide additional information about suggested keywords. | - **KEYWORD_INSIGHTS**: This enum value indicates that the additional data provided for a suggested keyword includes keyword insights.",
        "enum": [
          "KEYWORD_INSIGHTS"
        ]
      },
      "AdditionalRecordEnum": {
        "type": "object",
        "description": "An enumerated type that defines the kind of additional records that are provided for a report. | - **NON_PERFORMING_DATA**: This enum value indicates that the additional records provided for the report include non-performing data.<br><br><span class=\"tablenote\"><b>Note:</b>  Non-performing data is only applicable for account-level reports with no <i>day level</i> dimension. See <a href=\"/api-docs/restricted/sell/static/pl-playbook/pl-reports.html#types\" target=\"_blank\">Report Types</a> in the Promoted Listings Playbook to see which report types can include non-performing data.</span>",
        "enum": [
          "NON_PERFORMING_DATA"
        ]
      },
      "Ads": {
        "type": "object",
        "required": [
          "ads"
        ],
        "properties": {
          "ads": {
            "type": "array",
            "description": "A list of ad IDs. An ad ID is generated for each successfully created ad.",
            "items": {
              "$ref": "#/components/schemas/Ad"
            }
          }
        },
        "description": "This type defines the container for an array of ads."
      },
      "Alert": {
        "type": "object",
        "properties": {
          "alertType": {
            "description": "The type of alert message. For example, an invalid bid percentage.",
            "$ref": "#/components/schemas/AlertTypeEnum"
          },
          "details": {
            "type": "array",
            "description": "A description of the alert including dimensions and aspects.",
            "items": {
              "$ref": "#/components/schemas/AlertDetails"
            }
          }
        },
        "description": "A type that contains the alert message fields for the ad."
      },
      "AlertDetails": {
        "type": "object",
        "properties": {
          "dimension": {
            "description": "The dimension information of the alert including keys and values.",
            "$ref": "#/components/schemas/AlertDimension"
          },
          "aspect": {
            "description": "The aspect information of the alert including keys and values.",
            "$ref": "#/components/schemas/Aspect"
          }
        },
        "description": "A type that contains the alert detail fields."
      },
      "AlertDimension": {
        "type": "object",
        "properties": {
          "key": {
            "description": "The key field of the applied dimension. For example, the marketplace Id.",
            "$ref": "#/components/schemas/DimensionKeyEnum"
          },
          "value": {
            "type": "string",
            "description": "The value field of the applied dimension. For example, if the key is a <code>MARKETPLACE_ID</code>, the value would be from <a href='/develop/api/sell/request_headers#marketplace-id-values' target=\"_blank\">Marketplace ID values</a>."
          }
        },
        "description": "A type that contains the dimension fields."
      },
      "AlertTypeEnum": {
        "type": "object",
        "description": "An enumerated type used to define the alert type field. | - **INVALID_BID_PERCENTAGE**: This enum value indicates that the bid percentage is invalid. - **INVALID_CAP_PERCENTAGE**: This enum value indicates that the ad rate cap is invalid.",
        "enum": [
          "INVALID_BID_PERCENTAGE",
          "INVALID_CAP_PERCENTAGE"
        ]
      },
      "Amount": {
        "type": "object",
        "properties": {
          "currency": {
            "description": "The base currency applied to the <b>value</b> field to establish a monetary amount.  <br><br>The currency is represented as a 3-letter <a href=\"https://www.iso.org/iso-4217-currency-codes.html \" title=\"https://www.iso.org \" target=\"_blank\">ISO 4217</a> currency code. For example, the code for the Canadian Dollar is <code>CAD</code>",
            "$ref": "#/components/schemas/CurrencyCodeEnum"
          },
          "value": {
            "type": "string",
            "description": "The monetary amount in the specified <b>currency</b>.  <br><br><i>Required in</i> the <b>amount</b> type."
          }
        },
        "description": "A complex type that describes the value of a monetary amount as represented by a global currency."
      },
      "Aspect": {
        "type": "object",
        "properties": {
          "key": {
            "description": "The type of the aspect. For example, <code>MINIMUM_REQUIRED</code>.",
            "$ref": "#/components/schemas/AspectKeyEnum"
          },
          "value": {
            "type": "string",
            "description": "The value of the aspect. For example, if the aspect is a percentage, a value of '2.0' would equal 2%."
          }
        },
        "description": "A type that contains the aspect fields."
      },
      "AspectKeyEnum": {
        "type": "object",
        "description": "An enumerated type used to define the aspect key field. | - **MINIMUM_REQUIRED**: This enum values indicates that the aspect key is minimum required value.",
        "enum": [
          "MINIMUM_REQUIRED"
        ]
      },
      "AudienceTypeEnum": {
        "type": "object",
        "description": "This enumerated type specifies the audience type of the email campaign. | - **ALL_SUBSCRIBERS**: All users subscribed to the seller store. - **NEW_SUBSCRIBERS**: All of the subscribers added to the seller store within the past 30 days. - **CUSTOM**: A custom audience created by the store seller. A custom audience is comprised of manually selected buyers. - **BUYER_GROUP**: A buyer group that has been created by the store seller to receive coded coupons. Buyer groups can be created for users to have bought from a specific category, within a specific timeframe, and for other parameters.  - **FIRST_TIME_BUYERS**: All first time buyers from the seller store, regardless of when they made their first purchase. - **RECENT_BUYERS**: Buyers who have made a purchase from the eBay seller store between the last 31 - 365 days. - **MOST_RECENT_BUYERS**: Buyers who have made a purchase from the eBay seller store within the last 30 days. - **FOLLOWERS**: Followers of the eBay seller store. These are users who have saved the eBay seller. - **INTERESTED_BUYERS**: Those users who have marked that they are interested in a product from the seller store. - **NEW_FOLLOWERS**: All new followers of the seller store within the last 30 days. - **POST_CMPGN_NEW_BUYERS**: All users who became new buyers from the seller store after an email campaign.",
        "enum": [
          "ALL_SUBSCRIBERS",
          "NEW_SUBSCRIBERS",
          "CUSTOM",
          "BUYER_GROUP",
          "FIRST_TIME_BUYERS",
          "RECENT_BUYERS",
          "MOST_RECENT_BUYERS",
          "FOLLOWERS",
          "INTERESTED_BUYERS",
          "NEW_FOLLOWERS",
          "POST_CMPGN_NEW_BUYERS"
        ]
      },
      "BaseResponse": {
        "type": "object",
        "properties": {
          "warnings": {
            "type": "array",
            "description": "The container for any warning error messages generated by the request. Warnings are not fatal in that they do not prevent the call from running and returning a response, but they should be reviewed to ensure your requests are returning the responses you expect.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          }
        },
        "description": "This type defines the fields for any warning error messages."
      },
      "BidPreference": {
        "type": "object",
        "properties": {
          "maxCpc": {
            "description": "The maximum amount for which the eBay suggested bid can be adjusted. This value represents the most a seller is willing to pay for each click on their ad. The adjusted bid will never exceed this amount.<br><br>This field is required for smart targeting campaigns.<br><br><span class=\"tablenote\"><b>Note:</b> The maximum cost-per-click has a minimum value of 0.02 and a maximum value of 100.</span>",
            "$ref": "#/components/schemas/MaxCpc"
          }
        },
        "description": "This type indicates the bidding preferences of a Smart Targeting campaign.<br><br><span class=\"tablenote\"><b>Note:</b> This type is only supported for CPC funding model campaigns with on-site channels.</span>"
      },
      "BiddingStrategyEnum": {
        "type": "object",
        "description": "This enumerated type lists the bidding strategies that can be used for an onsite Cost per Click (CPC) campaign that uses manual targeting. | - **FIXED**: Indicates that a seller will assign and adjust keyword bids for the specified CPC campaign.<br><br>This is the default value. - **DYNAMIC**: Indicates that eBay will manage a campaign's keyword bids and automatically update them daily to the suggested bid.<br /><br /><span class=\"tablenote\"><b>Note:</b> For a CPC campaign using dynamic bidding, sellers can continue to manually add keywords for the campaign, but they are no longer able to manually adjust their associated bid values. In order to manually adjust bid values, sellers must use the <code>FIXED</code> bidding strategy.</span> ",
        "enum": [
          "FIXED",
          "DYNAMIC"
        ]
      },
      "Budget": {
        "type": "object",
        "properties": {
          "amount": {
            "description": "The allocated budget amount for a CPC Promoted Listings campaign.",
            "$ref": "#/components/schemas/Amount"
          },
          "budgetStatus": {
            "description": "The budget status for a CPC Promoted Listings campaign.",
            "$ref": "#/components/schemas/BudgetStatusEnum"
          }
        },
        "description": "This type defines the budget details of a Promoted Listings campaign that uses the Cost Per Click (CPC) funding model.<br /><br /><span class=\"tablenote\"><b>Note:</b> This type will only be returned for campaigns using the CPC funding model; it does not apply to the Cost Per Sale (CPS) funding model.</span>"
      },
      "BudgetRecommendationResponse": {
        "type": "object",
        "properties": {
          "budget": {
            "description": "The allocated daily budget for the Cost Per Click (CPC) Promoted Listings campaign.",
            "$ref": "#/components/schemas/CampaignBudget"
          },
          "campaignId": {
            "type": "string",
            "description": "The unique eBay-assigned ID for a campaign. This ID is generated when a campaign is created."
          },
          "channels": {
            "type": "array",
            "description": "The channel for the campaign. This value indicates whether the campaign is an Onsite or Offsite advertising campaign.<br><br><b>Valid Values:</b><ul><li><code>ON_SITE</code></li><li><code>OFF_SITE</code></li></ul>",
            "items": {
              "$ref": "#/components/schemas/ChannelEnum"
            }
          }
        },
        "description": "This type indicates the suggested daily keyword budget for an offsite campaign."
      },
      "BudgetRequest": {
        "type": "object",
        "required": [
          "amount"
        ],
        "properties": {
          "amount": {
            "description": "The allocated budget amount for a CPC Promoted Listings campaign. Both the <b>currency</b> and <b>value</b> must be specified.",
            "$ref": "#/components/schemas/Amount"
          }
        },
        "description": "This type defines the budget details of a Promoted Listings campaign that uses the Cost Per Click (CPC) funding model.<br /><br /><span class=\"tablenote\"><b>Note:</b> This container will only be returned for campaigns using the CPC funding model; it does not apply to the Cost Per Sale (CPS) funding model.</span>"
      },
      "BudgetStatusEnum": {
        "type": "object",
        "description": "An enumerated type that defines the budget status of a Promoted Listings campaign that uses the Cost Per Click (CPC) funding model. | - **ALLOCATED**: This enum value indicates that the budget is allocated. - **OUT_OF_BUDGET**: This enum value indicates that the campaign is out of budget.<br><br><span class=\"tablenote\"><b>Note:</b> For more information about how CPC Promoted Listings campaigns function when the allocated budget has been exhausted, see <a href=\"/api-docs/sell/static/marketing/pl-overview.html#how-work\" target=\"_blank\" >How Promoted Listings campaigns work</a>.</span>",
        "enum": [
          "ALLOCATED",
          "OUT_OF_BUDGET"
        ]
      },
      "BulkAdResponse": {
        "type": "object",
        "required": [
          "responses"
        ],
        "properties": {
          "responses": {
            "type": "array",
            "description": "This array displays the list of ads that were successfully created. For any ads that were not created successfully, the errors array may provide more detail about why creation of one or more ads failed.",
            "items": {
              "$ref": "#/components/schemas/AdResponse"
            }
          }
        },
        "description": "This type defines the fields for the create ads in bulk response."
      },
      "BulkAdUpdateResponse": {
        "response": [
          "responses"
        ],
        "type": "object",
        "properties": {
          "responses": {
            "type": "array",
            "description": "A set of ad listings processed by the call.",
            "items": {
              "$ref": "#/components/schemas/AdUpdateResponse"
            }
          }
        },
        "description": "A type that defines the fields for updated ads in the bulk response."
      },
      "BulkAdUpdateStatusByListingIdResponse": {
        "type": "object",
        "required": [
          "responses"
        ],
        "properties": {
          "responses": {
            "type": "array",
            "description": "An array of processed ad listings in bulk.",
            "items": {
              "$ref": "#/components/schemas/AdUpdateStatusByListingIdResponse"
            }
          }
        },
        "description": "A type that defines the fields for the updated ad status in the bulk response."
      },
      "BulkAdUpdateStatusResponse": {
        "required": [
          "responses"
        ],
        "type": "object",
        "properties": {
          "responses": {
            "type": "array",
            "description": "An array of processed ad listings in bulk.",
            "items": {
              "$ref": "#/components/schemas/AdUpdateStatusResponse"
            }
          }
        },
        "description": "A type that defines the fields for the updated ad status in the bulk response."
      },
      "BulkCreateAdRequest": {
        "type": "object",
        "required": [
          "requests"
        ],
        "properties": {
          "requests": {
            "type": "array",
            "description": "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).  <br><br><b>Maximum: </b> 500 IDs per call",
            "items": {
              "$ref": "#/components/schemas/CreateAdRequest"
            }
          }
        },
        "description": "This type defines the fields for the create ads in bulk by listing IDs."
      },
      "BulkCreateAdsByInventoryReferenceRequest": {
        "type": "object",
        "required": [
          "requests"
        ],
        "properties": {
          "requests": {
            "type": "array",
            "description": "A list of inventory reference ID and inventory reference type pairs, and the bid percentage, which the call uses to create ads in bulk.",
            "items": {
              "$ref": "#/components/schemas/CreateAdsByInventoryReferenceRequest"
            }
          }
        },
        "description": "This type defines the fields used to create ads in bulk by inventory reference IDs."
      },
      "BulkCreateAdsByInventoryReferenceResponse": {
        "type": "object",
        "required": [
          "responses"
        ],
        "properties": {
          "responses": {
            "type": "array",
            "description": "This array displays the list of ads that were successfully created. For any ads that were not created successfully, the errors array may provide more detail about why creation of one or more ads failed.",
            "items": {
              "$ref": "#/components/schemas/CreateAdsByInventoryReferenceResponse"
            }
          }
        },
        "description": "This type defines the response fields used by the <b>bulkCreateAdsByInventoryReference</b> method."
      },
      "BulkCreateKeywordRequest": {
        "type": "object",
        "required": [
          "requests"
        ],
        "properties": {
          "requests": {
            "type": "array",
            "description": "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.",
            "items": {
              "$ref": "#/components/schemas/CreateKeywordRequest"
            }
          }
        },
        "description": "A type that contains the fields for the bulk request to create keywords."
      },
      "BulkCreateKeywordResponse": {
        "type": "object",
        "required": [
          "responses"
        ],
        "properties": {
          "responses": {
            "type": "array",
            "description": "A list of keywords that have been processed by the request.",
            "items": {
              "$ref": "#/components/schemas/KeywordResponse"
            }
          }
        },
        "description": "A type that contains the response fields for the bulk request to create keywords."
      },
      "BulkCreateNegativeKeywordRequest": {
        "type": "object",
        "required": [
          "requests"
        ],
        "properties": {
          "requests": {
            "type": "array",
            "description": "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.",
            "items": {
              "$ref": "#/components/schemas/CreateNegativeKeywordRequest"
            }
          }
        },
        "description": "A type that contains the fields for the bulk request to create negative keywords."
      },
      "BulkCreateNegativeKeywordResponse": {
        "type": "object",
        "properties": {
          "responses": {
            "type": "array",
            "description": "A list of negative keywords that have been processed by the request.",
            "items": {
              "$ref": "#/components/schemas/NegativeKeywordResponse"
            }
          }
        },
        "description": "A type that contains the response fields for the bulk request to create negative keywords."
      },
      "BulkDeleteAdRequest": {
        "type": "object",
        "required": [
          "requests"
        ],
        "properties": {
          "requests": {
            "type": "array",
            "description": "An array of the listing IDs that identify the ads to remove.",
            "items": {
              "$ref": "#/components/schemas/DeleteAdRequest"
            }
          }
        },
        "description": "This type defines the fields that the call uses to remove ads in bulk."
      },
      "BulkDeleteAdResponse": {
        "type": "object",
        "required": [
          "responses"
        ],
        "properties": {
          "responses": {
            "type": "array",
            "description": "An array of the ads that were deleted by the <b>bulkDeleteAdsByListingId</b> request, including information associated with each individual delete request.",
            "items": {
              "$ref": "#/components/schemas/DeleteAdResponse"
            }
          }
        },
        "description": "This type defines a container that lists the ads that <b>bulkDeleteAdsByListingId</b> deleted."
      },
      "BulkDeleteAdsByInventoryReferenceRequest": {
        "type": "object",
        "required": [
          "requests"
        ],
        "properties": {
          "requests": {
            "type": "array",
            "description": "A list of inventory referenceID and inventory reference type pairs that specify the set of ads to remove in bulk.",
            "items": {
              "$ref": "#/components/schemas/DeleteAdsByInventoryReferenceRequest"
            }
          }
        },
        "description": "This type defines the request fields that <b>bulkDeleteAdsByInventoryReference</b> uses to delete ads in bulk."
      },
      "BulkDeleteAdsByInventoryReferenceResponse": {
        "type": "object",
        "required": [
          "responses"
        ],
        "properties": {
          "responses": {
            "type": "array",
            "description": "An array of the ads that were deleted by the <b>bulkDeleteAdsByInventoryReference</b> request, including information associated with each individual delete request.",
            "items": {
              "$ref": "#/components/schemas/DeleteAdsByInventoryReferenceResponse"
            }
          }
        },
        "description": "This type defines a container that lists the ads that <b>bulkDeleteAdsByInventoryReference</b> deleted."
      },
      "BulkUpdateAdStatusByInventoryReferenceIdRequest": {
        "type": "object",
        "properties": {
          "requests": {
            "type": "array",
            "description": "An array of listing IDs and bid percentages.",
            "items": {
              "$ref": "#/components/schemas/UpdateAdStatusByInventoryReferenceIdRequest"
            }
          }
        },
        "description": "A type that defines the fields for the <b>BulkUpdateAdStatusByInventoryReferenceId</b> request."
      },
      "BulkUpdateAdStatusByListingIdRequest": {
        "type": "object",
        "required": [
          "requests"
        ],
        "properties": {
          "requests": {
            "type": "array",
            "description": "An array of listing IDs, <b>adStatus</b> values, and <b>adGroupId</b> values.",
            "items": {
              "$ref": "#/components/schemas/UpdateAdStatusByListingIdRequest"
            }
          }
        },
        "description": "A type that defines the fields for the <b>BulkUpdateAdStatusByListingId</b> request."
      },
      "BulkUpdateAdStatusRequest": {
        "type": "object",
        "required": [
          "requests"
        ],
        "properties": {
          "requests": {
            "type": "array",
            "description": "An array of listing IDs and <b>adStatus</b> pairs.",
            "items": {
              "$ref": "#/components/schemas/UpdateAdStatusRequest"
            }
          }
        },
        "description": "A type that defines the fields for the <b>BulkUpdateAdStatus</b> request."
      },
      "BulkUpdateAdsByInventoryReferenceResponse": {
        "type": "object",
        "required": [
          "responses"
        ],
        "properties": {
          "responses": {
            "type": "array",
            "description": "A list of inventory references that were processed from the request.",
            "items": {
              "$ref": "#/components/schemas/UpdateAdsByInventoryReferenceResponse"
            }
          }
        },
        "description": "A type that defines the fields for the <b>BulkUpdateAdStatusByInventoryReference</b> response."
      },
      "BulkUpdateAdsStatusByInventoryReferenceResponse": {
        "type": "object",
        "properties": {
          "responses": {
            "type": "array",
            "description": "A list of inventory references that were processed from the request.",
            "items": {
              "$ref": "#/components/schemas/UpdateAdsByInventoryReferenceResponse"
            }
          }
        },
        "description": "A type that defines the fields for the <b>BulkUpdateAdsStatusByInventoryReference</b> response."
      },
      "BulkUpdateKeywordRequest": {
        "type": "object",
        "required": [
          "requests"
        ],
        "properties": {
          "requests": {
            "type": "array",
            "description": "Use this array to update the bid values and/or statuses of one or more existing keywords.",
            "items": {
              "$ref": "#/components/schemas/UpdateKeywordByKeywordIdRequest"
            }
          }
        },
        "description": "A type that defines the fields for the <b>BulkUpdateKeyword</b> request."
      },
      "BulkUpdateKeywordResponse": {
        "type": "object",
        "properties": {
          "responses": {
            "type": "array",
            "description": "A list of keywords that have been processed from the bulk request.",
            "items": {
              "$ref": "#/components/schemas/UpdateKeywordResponse"
            }
          }
        },
        "description": "A type that defines the fields for the <b>BulkUpdateKeyword</b> response."
      },
      "BulkUpdateNegativeKeywordRequest": {
        "type": "object",
        "required": [
          "requests"
        ],
        "properties": {
          "requests": {
            "type": "array",
            "description": "An array to update the statuses of one or more existing negative keywords.",
            "items": {
              "$ref": "#/components/schemas/UpdateNegativeKeywordIdRequest"
            }
          }
        },
        "description": "A type that defines the fields for the <b>BulkUpdateNegativeKeyword</b> request."
      },
      "BulkUpdateNegativeKeywordResponse": {
        "type": "object",
        "properties": {
          "responses": {
            "type": "array",
            "description": "A list of negative keywords that have been processed from the bulk request.",
            "items": {
              "$ref": "#/components/schemas/UpdateNegativeKeywordResponse"
            }
          }
        },
        "description": "A type that defines the fields for the <b>BulkUpdateNegativeKeyword</b> response."
      },
      "Campaign": {
        "type": "object",
        "properties": {
          "alerts": {
            "type": "array",
            "description": "This array contains alert messages for the campaign.",
            "items": {
              "$ref": "#/components/schemas/Alert"
            }
          },
          "budget": {
            "description": "The allocated budget for the Cost Per Click (CPC) Promoted Listings campaign.<span class=\"tablenote\"><b>Note:</b> This field will only be returned for campaigns using the CPC funding model; it does not apply to the Cost Per Sale (CPS) funding model.</span>",
            "$ref": "#/components/schemas/CampaignBudget"
          },
          "campaignCriterion": {
            "description": "The selection rules (criterion) used to select the listings for a campaign. If you populate the <b>campaignCriterion</b> object in your <b>createCampaign</b> 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 campaign.<span class=\"tablenote\"><b>Note:</b> This container is only returned for rules-based campaigns using the Cost Per Sale (CPS) funding model.</span>",
            "$ref": "#/components/schemas/CampaignCriterion"
          },
          "campaignId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for a campaign. This ID is generated when a campaign is created."
          },
          "campaignName": {
            "type": "string",
            "description": "A seller-defined name for the campaign. This value must be unique for the seller. <p>You can use any alphanumeric characters in the name, except the less than (&lt;) or greater than (&gt;) characters.</p><b>Max length:</b> 80 characters"
          },
          "campaignStatus": {
            "description": "Indicates the status of the campaign, such as <code>RUNNING</code>, <code>PAUSED</code>, and <code>ENDED</code>.",
            "$ref": "#/components/schemas/CampaignStatusEnum"
          },
          "campaignTargetingType": {
            "description": "The targeting type of the campaign. This value indicates whether the campaign is a manual targeting or smart targeting ad campaign.",
            "$ref": "#/components/schemas/CampaignTargetingTypeEnum"
          },
          "channels": {
            "type": "array",
            "description": "The channel for the campaign. This value indicates whether the campaign is an Onsite or Offsite advertising campaign. <br><br><b>Valid Values:</b><ul><li><code>ON_SITE</code></li><li><code>OFF_SITE</code></li></ul>",
            "items": {
              "$ref": "#/components/schemas/ChannelEnum"
            }
          },
          "endDate": {
            "type": "string",
            "description": "The date and time the campaign ends, in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). If this field is omitted, the campaign will have no defined end date, and will not end until the seller makes a decision to end the campaign with an <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-endcampaign\">endCampaign</a> call, or if they update the campaign at a later time with an end date."
          },
          "fundingStrategy": {
            "description": "This container includes parameters that define an ad campaign funding strategy. The set of seller-configurable parameters depends on the selected <b>fundingModel</b> value.<br/><br/>Currently, the supported funding models are <code>COST_PER_SALE</code> (CPS) and <code>COST_PER_CLICK</code> (CPC). For onsite ads, the CPC model supports two bidding strategies: <code>FIXED</code> and <code>DYNAMIC</code>.",
            "$ref": "#/components/schemas/FundingStrategy"
          },
          "marketplaceId": {
            "description": "The ID of the eBay marketplace where the campaign is hosted.",
            "$ref": "#/components/schemas/MarketplaceIdEnum"
          },
          "startDate": {
            "type": "string",
            "description": "The date and time the campaign starts, in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller.  <p>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 <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaign\">getCampaign</a> to check the status of the campaign.</p>"
          }
        },
        "description": "This type defines the fields that describe an ad campaign."
      },
      "CampaignAudience": {
        "type": "object",
        "required": [
          "audienceType",
          "code",
          "name"
        ],
        "properties": {
          "audienceType": {
            "description": "This enum value indicates the audience type. For the complete list of audience types and their associated enum values, see <b>AudienceTypeEnum</b>.",
            "$ref": "#/components/schemas/AudienceTypeEnum"
          },
          "code": {
            "type": "string",
            "description": "The unique code for an audience. "
          },
          "name": {
            "type": "string",
            "description": "The display name for an audience."
          }
        },
        "description": "This type defines the object for a single email campaign audience."
      },
      "CampaignBudget": {
        "type": "object",
        "properties": {
          "daily": {
            "description": "The daily budget limit for the Cost Per Click (CPC) Promoted Listings campaign.<br><br><i>Required if</i> the campaign's funding model is CPC.<br><br>This will be a dollar value. All clicks using the keywords defined for the campaign will go towards expending the daily budget. Once the daily budget is exceeded for the campaign, all Promoted Listings under the campaign will be turned off until the next day.<br><br>When running an offsite campaign, eBay may spend more or less than the seller's daily budget to capitalize on interested buyers, but will not exceed 2x the daily budget. The average over the course of the campaign will not exceed the provided daily budget. This value is used to calculate a total monthly budget by multiplying 30.4 by the provided daily budget. Over the course of the campaign, eBay will not charge more than this total budget per month.<br><br>If a campaign ends prematurely, however, the seller may be charged up to 2x their daily budget on a daily basis, as the campaign may have not had the chance to average the budget out over time.<br><br><b>Valid Values</b>:<ul><li><code>50.00</code></li><li><code>100.00</code></li></ul>",
            "$ref": "#/components/schemas/Budget"
          }
        },
        "description": "A type that defines the budget details for a Cost Per Click (CPC) Promoted Listings campaign."
      },
      "CampaignBudgetRequest": {
        "type": "object",
        "properties": {
          "daily": {
            "description": "The daily budget limit for a CPC Promoted Listings campaign.<br><br>When running an offsite campaign, eBay may spend more or less than the seller's daily budget to capitalize on interested buyers, but will not exceed 2x the daily budget. The average over the course of the campaign will not exceed the provided daily budget. This value is used to calculate a total monthly budget by multiplying 30.4 by the provided daily budget. Over the course of the campaign, eBay will not charge more than this total budget per month.<br><br>If a campaign ends prematurely, however, the seller may be charged up to 2x their daily budget on a daily basis, as the campaign may have not had the chance to average the budget out over time.",
            "$ref": "#/components/schemas/BudgetRequest"
          }
        },
        "description": "A container for the details of a Promoted Listings campaign that uses the Cost Per Click (CPC) funding model."
      },
      "CampaignCriterion": {
        "type": "object",
        "properties": {
          "autoSelectFutureInventory": {
            "type": "boolean",
            "description": "A field used to indicate whether listings shall be automatically added to, or removed from, a Promoted Listings campaign based on the rules that have been configured for the campaign.<br /><br />If set to <code>true</code>, eBay adds all listings matching the campaign criterion to the campaign, including any new listings created from the items in a seller's inventory.<br /><br /><b>Default:</b> <code>false</code>"
          },
          "criterionType": {
            "description": "This enum defines the criterion (selection rule) types. Currently, the only criterion type supported is <code>INVENTORY_PARTITION</code>, and you must specify this value if you manage your items with the Inventory API and you want to include items based on their inventory reference IDs.  <br><br>Do not include this field if you manage your listings with Trading API/legacy model.",
            "$ref": "#/components/schemas/CriterionTypeEnum"
          },
          "selectionRules": {
            "type": "array",
            "description": "This container shows all of the rules/inclusion filters used to add listings to the campaign. For information on using the contained fields, see <a href= \"/api-docs/sell/static/marketing/using-the-selectionrules-container.html#Campaign \" target=\"_blank\">Promoted Listing campaigns</a>.",
            "items": {
              "$ref": "#/components/schemas/SelectionRule"
            }
          }
        },
        "description": "This type defines the fields for specifying the criterion (selection rule) settings of an ad campaign. If you populate the campaignCriterion object in your <b>createCampaign</b> 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."
      },
      "CampaignDTO": {
        "type": "object",
        "required": [
          "audiences",
          "creationDate",
          "emailCampaignId",
          "emailCampaignStatus",
          "emailCampaignType",
          "marketplaceId"
        ],
        "properties": {
          "audiences": {
            "type": "array",
            "description": "The audiences that the email campaign is being sent to. See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.audiencetypeenum\">AudienceTypeEnum</a> for a list of audience types.",
            "items": {
              "$ref": "#/components/schemas/CampaignAudience"
            }
          },
          "creationDate": {
            "type": "string",
            "description": "The date and time that the email campaign was created, given in UTC format."
          },
          "emailCampaignId": {
            "type": "string",
            "description": "The unique eBay identifier for the email campaign assigned automatically when the email campaign is created."
          },
          "emailCampaignStatus": {
            "description": "The email campaign status. See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.emailcampaignstatusenum\">EmailCampaignStatusEnum</a> for information on statuses.",
            "$ref": "#/components/schemas/EmailCampaignStatusEnum"
          },
          "emailCampaignType": {
            "description": "The email campaign type. See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.campaigntypeenum\">CampaignTypeEnum</a> for definitions of email campaign types.",
            "$ref": "#/components/schemas/CampaignTypeEnum"
          },
          "marketplaceId": {
            "type": "string",
            "description": "The eBay marketplace where the email campaign is active."
          },
          "modificationDate": {
            "type": "string",
            "description": "The date and time the email campaign was last modified, given in UTC format."
          },
          "scheduleDate": {
            "type": "string",
            "description": "The date and time that the email campaign newsletter is scheduled to send, given in UTC format."
          },
          "scheduleDateType": {
            "description": "The schedule type used for sending the email campaign. See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.scheduledatetypeenum\">ScheduleDateTypeEnum</a> for available schedule types.",
            "$ref": "#/components/schemas/ScheduleDateTypeEnum"
          },
          "sentDate": {
            "type": "string",
            "description": "The date and time that the email campaign was last sent, given in UTC format."
          },
          "subject": {
            "type": "string",
            "description": "The email campaign subject line.."
          }
        },
        "description": " This type defines the email campaign instance body."
      },
      "CampaignPagedCollectionResponse": {
        "type": "object",
        "required": [
          "campaigns",
          "href",
          "limit",
          "offset",
          "total"
        ],
        "properties": {
          "campaigns": {
            "type": "array",
            "description": "This array contains all of the seller's campaign that match the request criteria.",
            "items": {
              "$ref": "#/components/schemas/Campaign"
            }
          },
          "href": {
            "type": "string",
            "description": "The URI of the current page of results from the result set."
          },
          "limit": {
            "type": "integer",
            "description": "The number of items returned on a single page from the result set. This value can be set in the request with the <b>limit</b> query parameter.",
            "format": "int32"
          },
          "next": {
            "type": "string",
            "description": "The call URI that can be used to retrieve the next page in the result set. This value is returned only if there is an additional page of results to display from the result set. <br><br><b>Max length</b>: 2048"
          },
          "offset": {
            "type": "integer",
            "description": "The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the <b>offset</b> query parameter. <p class=\"tablenote\"><strong>Note: </strong>The items in a paginated result set use a zero-based list where the first item in the list has an offset of <code>0</code>.</p>",
            "format": "int32"
          },
          "prev": {
            "type": "string",
            "description": "The call URI that can be used to retrieve the previous page in the result set. Basically, all of the request parameters will remain the same except the offset value, which will be decreased to retrieve the previous page of results. <br><br><b>Max length</b>: 2048"
          },
          "total": {
            "type": "integer",
            "description": "The total number of campaigns retrieved in the result set.  <br><br>If no campaigns are found, this field is returned with a value of <code>0</code>.",
            "format": "int32"
          }
        },
        "description": "This type defines the fields that paginate the campaigns returned by the request. The entire <i>result set</i> consists of 0 or more sequenced <i>response pages</i>, where each page consists of 0 or more items from the complete result set."
      },
      "CampaignStatusEnum": {
        "type": "object",
        "description": "This enumerated type is used to define the possible states of a campaign. | - **DELETED**: Indicates the campaign is deleted and is no longer accessible. Only ended campaigns can be deleted. - **DRAFT**: Indicates that the campaign is inactive and in draft status. - **ENDED**: Indicates the campaign has ended and it cannot be restarted. The listings associated with this campaign are not being promoted. - **ENDING_SOON**: Indicates a request to end the campaign was received and the system is going through the process of ending the campaign. No further operations are possible on this campaign until it ends. - **PAUSED**: Indicates the campaign has been paused and the listings in that campaign are not being promoted. Sellers can pause campaigns when they want to temporarily suspend a campaign. For example, a seller can pause a campaign if they go on vacation. The campaign can restored to a running state at any time. - **PENDING**: Indicates the campaign is a criterion-based campaign and is in process of being created. - **RUNNING**: Indicates the campaign is active. Listings included in the campaign are actively being promoted with sponsored ads, which are displayed to buyers as they search for items on eBay. - **SCHEDULED**: Indicates the campaign has been created, but it is scheduled to start on specific date in the future. - **SYSTEM_PAUSED**: Indicates a system-generated, temporary pause on the campaign due to the seller's level dropping to Below Standard. Below Standard sellers cannot create new campaigns or edit their existing campaigns, but they can still view their campaign data and download reports. Once their seller level improves to Above Standard or Top Rated, sellers can resume using Promoted Listings and their campaigns will be automatically unpaused and return their last status. For more details on returning their seller level to Above Standard or Top Rated, sellers can refer to their seller dashboard on the eBay platform.  ",
        "enum": [
          "DELETED",
          "DRAFT",
          "ENDED",
          "ENDING_SOON",
          "PAUSED",
          "PENDING",
          "RUNNING",
          "SCHEDULED",
          "SYSTEM_PAUSED"
        ]
      },
      "CampaignTargetingTypeEnum": {
        "type": "object",
        "description": "This enumerated type is used to indicate the targeting type of an on-site priority strategy campaign. | - **MANUAL**: This enum value indicates that the campaign is a manual targeting campaign.<br><br>A manual targeting campaign gives the seller complete control over the campaign setup and ongoing optimization. A manual targeting campaign offers targeting control with keywords and keyword bids. - **SMART**: This enum value indicates that the campaign is a smart targeting campaign.<br><br>A smart targeting campaign automatically updates to optimize campaign settings. The seller selects the listing they would like to promote, and eBay takes care of the bidding and targeting.",
        "enum": [
          "MANUAL",
          "SMART"
        ]
      },
      "CampaignTypeEnum": {
        "type": "object",
        "description": "This enumerated type contains the different store email campaign types available. | - **WELCOME**: A Welcome email sent automatically to new subscribers. - **ITEM_SHOWCASE**: An email featuring new products & collections that the seller wants to highlight. - **COUPON**: An email containing a coupon code and up to 10 items that this coupon can be applied to. - **SALE_EVENT**: An email about a sale event and up to 10 items that the sale can be applied to. - **ORDER_DISCOUNT**: An email containing an order discount and up to 10 items that this discount can be applied to. - **VOLUME_PRICING**: An email containing up to 10 items that are eligible for volume pricing.",
        "enum": [
          "WELCOME",
          "ITEM_SHOWCASE",
          "COUPON",
          "SALE_EVENT",
          "ORDER_DISCOUNT",
          "VOLUME_PRICING"
        ]
      },
      "Campaigns": {
        "type": "object",
        "properties": {
          "campaigns": {
            "type": "array",
            "description": "This is an array of one or campaigns that match the listing or inventory item group specified in the request.",
            "items": {
              "$ref": "#/components/schemas/Campaign"
            }
          }
        },
        "description": "This type contains a list of campaigns."
      },
      "CategoryScopeEnum": {
        "type": "object",
        "description": "An enumerated type that defines the source of the category identifier. This can be either an eBay category ID or the category ID of a seller's store. | - **MARKETPLACE**: Indicates the identifier is an eBay category ID. - **STORE**: Indicates the identifier is the category ID of a seller's store.",
        "enum": [
          "MARKETPLACE",
          "STORE"
        ]
      },
      "CategoryTypeEnum": {
        "type": "object",
        "description": "This enumerated type contains the different category types that can be used for a store email campaign. | - **EBAY**: This value indicates that the category associated with the email campaign is an eBay category. - **STORE**: This value indicates that the category associated with the email campaign is an eBay category.",
        "enum": [
          "EBAY",
          "STORE"
        ]
      },
      "ChannelEnum": {
        "type": "object",
        "description": "This enumerated type indicates if a priority strategy campaign is an Onsite or Offsite advertising campaign. When using the <b>createReportTask</b> method, this enumerated type indicates if the data being returned in the report is for an Onsite or Offsite advertising campaign. | - **ON_SITE**: This enum value indicates that the campaign is an Onsite Ads campaign. - **OFF_SITE**: This enum value indicates that the campaign is a Promoted Listings Promoted Offsite campaign that is being promoted on external channels.",
        "enum": [
          "ON_SITE",
          "OFF_SITE"
        ]
      },
      "CloneCampaignRequest": {
        "type": "object",
        "required": [
          "campaignName",
          "fundingStrategy",
          "startDate"
        ],
        "properties": {
          "campaignName": {
            "type": "string",
            "description": "A seller-defined name for the newly-cloned campaign. This value must be unique for the seller.<br><br>You can use any alphanumeric characters in the name, except the less than (&lt;) or greater than (&gt;) characters.<br><br><b>Max length: </b>80 characters"
          },
          "endDate": {
            "type": "string",
            "description": "The date and time the campaign ends, in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). If this field is omitted, the campaign will have no defined end date, and will not end until the seller makes a decision to end the campaign with an <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-endcampaign\">endCampaign</a> call, or if they update the campaign at a later time with an end date."
          },
          "fundingStrategy": {
            "description": "This container includes parameters that define an ad campaign funding strategy. The set of seller-configurable parameters depends on the selected <b>fundingModel</b> value.",
            "$ref": "#/components/schemas/FundingStrategy"
          },
          "startDate": {
            "type": "string",
            "description": "The date and time the cloned campaign starts, in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller.  <p>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 <b>getCampaign</b> to check the status of the campaign.</p>"
          }
        },
        "description": "This type defines the fields needed for a clone-campaign request."
      },
      "CouponConfiguration": {
        "type": "object",
        "properties": {
          "couponCode": {
            "type": "string",
            "description": "A unique code that buyers can use during checkout to receive a discount. The code must be unique across eBay. <br><br>The code must be from 8-15 alphanumeric characters and can contain no more than two dashes ( - ).<br><br>This is required when the discount type is CODED_COUPON."
          },
          "couponType": {
            "description": "This indicates the type of Coded Coupon discount, and is required when the discount type is <b>CODED_COUPON</b>.<br><br>Supported types:<ul><li><b>PRIVATE_SINGLE_SELLER_COUPON:</b> Anyone can use and share the coupon code, but it isn't posted on eBay.</li><li><b>PUBLIC_SINGLE_SELLER_COUPON:</b> Anyone can find the coupon code on eBay and use it.</li></ul>",
            "$ref": "#/components/schemas/CouponTypeEnum"
          },
          "maxCouponRedemptionPerUser": {
            "type": "integer",
            "description": "This sets the limit on the number of times a buyer can use this coupon. The range of values is 1-10. If no value is provided, a buyer can use the coupon an unlimited number of times.",
            "format": "int32"
          }
        },
        "description": "This type defines a coded coupon discount. It is required if the discount type is <code>CODED_COUPON</code>."
      },
      "CouponTypeEnum": {
        "type": "object",
        "description": "This type indicates the type of Coded Coupon discount. It is required when the discount type is <b>CODED_COUPON</b>. | - **PRIVATE_SINGLE_SELLER_COUPON**: Anyone can use and share the coupon code, but it isn't posted on eBay. - **PUBLIC_SINGLE_SELLER_COUPON**: Anyone can find the coupon code on eBay and use it.",
        "enum": [
          "PRIVATE_SINGLE_SELLER_COUPON",
          "PUBLIC_SINGLE_SELLER_COUPON"
        ]
      },
      "CreateAdGroupRequest": {
        "type": "object",
        "required": [
          "defaultBid",
          "name"
        ],
        "properties": {
          "defaultBid": {
            "description": "A bid amount that applies to all of the keywords in an ad group that do not have individual bids.",
            "$ref": "#/components/schemas/Amount"
          },
          "name": {
            "type": "string",
            "description": "The seller-defined name of the ad group."
          }
        },
        "description": "A type that defines the fields for the <b>CreateAdGroup</b> request."
      },
      "CreateAdRequest": {
        "type": "object",
        "required": [
          "listingId"
        ],
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "A unique eBay-assigned identifier for an ad group in a campaign that uses the Cost Per Click (CPC) funding model.<br><br>Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups\">getAdGroups</a> method to retrieve the ad group IDs for a seller.<br><br><span class=\"tablenote\"><b>Note:</b> This field is required for manual targeting campaigns using the Cost Per Click (CPC) funding model.</span>"
          },
          "bidPercentage": {
            "type": "string",
            "description": "The user-defined <b>bid percentage</b> (also known as the <i>ad rate</i>) sets the level that eBay increases the visibility in search results for the associated listing. The higher the <b>bidPercentage</b> value, the more eBay promotes the listing.<br><br><i>Required if</i> the campaign's funding model is Cost Per Sale (CPS).  <br><br>The value specified here is also used to calculate the Promoted Listings fee. This percentage value is multiplied by the final sales price to determine the fee. <br><br>The Promoted Listings fee is determined at the time the transaction completes and the seller is assessed the fee only when an item sells through a Promoted Listings ad campaign. <br><br>The <b>bidPercentage</b> is a single precision value that is guided by the following rules: <ul><li>These values are <b>valid</b>:<br>&nbsp;&nbsp;&nbsp;<code>4.1</code>,&nbsp;&nbsp;&nbsp;<code>5.0</code>, &nbsp;&nbsp;&nbsp;<code>5.5</code>, ...</li>  <li>These values are <b>not valid</b>:<br /> &nbsp;&nbsp;&nbsp;<code>0.01</code>, &nbsp;&nbsp;&nbsp;<code>10.75</code>, &nbsp;&nbsp;&nbsp;<code>99.99</code>,<br /> &nbsp;&nbsp;&nbsp;and so on.</li></ul><br />If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign.<br><br><span class=\"tablenote\"><b>Note:</b> This field has a minimum value of <code>2.0</code> and a maximum value of <code>100.0</code>.</span>"
          },
          "listingId": {
            "type": "string",
            "description": "A unique identifier of an eBay listing."
          }
        },
        "description": "This type defines the fields for the create ad request."
      },
      "CreateAdsByInventoryReferenceRequest": {
        "type": "object",
        "required": [
          "inventoryReferenceId",
          "inventoryReferenceType"
        ],
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "<span class=\"tablenote\"><b>Note:</b> This field is not currently in use. Ad groups are only applicable to priority strategy ad campaigns that use the Cost Per Click (CPC) funding model. See <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span>"
          },
          "bidPercentage": {
            "type": "string",
            "description": "The user-defined <b>bid percentage</b> (also known as the <i>ad rate</i>) sets the level that eBay increases the visibility in search results for the associated listing. The higher the <b>bidPercentage</b> value, the more eBay promotes the listing.<br /><br /><i>Required if</i> the campaign's funding model is Cost Per Sale (CPS).<br /><br />The value specified here is also used to calculate the Promoted Listings fee. This percentage value is multiplied by the final sales price to determine the fee.<br /><br />The Promoted Listings fee is determined at the time the transaction completes and the seller is assessed the fee only when an item sells through a Promoted Listings ad campaign.<br /><br />The <b>bidPercentage</b> is a single precision value that is guided by the following rules: <ul><li>These values are <b>valid</b>:<br>&nbsp;&nbsp;&nbsp;<code>4.1</code>, &nbsp;&nbsp;&nbsp;<code>5.0</code>,&nbsp;&nbsp;&nbsp;<code>5.5</code>, ...</li>  <li>These values are <b>not valid</b>:<br /> &nbsp;&nbsp;&nbsp;<code>0.01</code>, &nbsp;&nbsp;&nbsp;<code>10.75</code>, &nbsp;&nbsp;&nbsp;<code>99.99</code>,<br /> &nbsp;&nbsp;&nbsp;and so on.</li></ul><br>If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign.<br><br><span class=\"tablenote\"><b>Note:</b> This field has a minimum value of <code>2.0</code> and a maximum value of <code>100.0</code>.</span>"
          },
          "inventoryReferenceId": {
            "type": "string",
            "description": "The unique identifier of a single-item listing or a multi-variation listing.<br><br>To create an ad for a single-item listing, set the <b>inventoryReferenceType</b> value to <code>INVENTORY_ITEM</code> and specify an item ID or a SKU (if the SKU is defined in the listing).<br><br>To create an ad for a multi-variation listing, set the <b>inventoryReferenceType</b> value to <code>INVENTORY_ITEM_GROUP</code> and specify the item ID for the multi-variation listing or the <b>inventoryitemGroupKey</b> value as defined in the Inventory API."
          },
          "inventoryReferenceType": {
            "description": "This enumerated value indicates the type of item the <b>inventoryReferenceId</b> references.<br><br>The item can be either an <code>INVENTORY_ITEM</code> or an <code>INVENTORY_ITEM_GROUP</code>.",
            "$ref": "#/components/schemas/InventoryReferenceTypeEnum"
          }
        },
        "description": "This type defines the fields needed to create ads by inventory reference ID request."
      },
      "CreateAdsByInventoryReferenceResponse": {
        "type": "object",
        "required": [
          "ads",
          "inventoryReferenceId",
          "statusCode"
        ],
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for an ad group in a priority strategy campaign that uses the Cost Per Click (CPC) funding model.<span class=\"tablenote\"><b>Note:</b> This field will always be returned for campaigns that use the CPC funding model. It will not be returned for campaigns that use the Cost Per Sale (CPS) funding model.</span>"
          },
          "ads": {
            "type": "array",
            "description": "A list of ad IDs. An ad ID is generated for each successfully created ad.",
            "items": {
              "$ref": "#/components/schemas/AdReference"
            }
          },
          "errors": {
            "type": "array",
            "description": "An array of errors or warnings associated with the create-ads request.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          },
          "inventoryReferenceId": {
            "type": "string",
            "description": "An ID that identifies a single-item listing or multiple-variation listing that is managed with the <a href=\"/api-docs/sell/inventory/resources/methods\" title=\"Inventory API Reference\" target=\"_blank\">Inventory API</a>. <p>The <i>inventory reference ID</i> is a seller-defined value that can be either an <b>SKU</b> for a single-item listing or an <b>inventoryItemGroupKey</b> for a multiple-value listing.</p>"
          },
          "inventoryReferenceType": {
            "description": "Indicates the type of item the <b>inventoryReferenceId</b> references. The item can be either an <code>INVENTORY_ITEM</code> or an <code>INVENTORY_ITEM_GROUP</code>.",
            "$ref": "#/components/schemas/InventoryReferenceTypeEnum"
          },
          "statusCode": {
            "type": "integer",
            "description": "An HTTP status code that indicates the response-status of the request. Check this code to see if the ads were successfully created.",
            "format": "int32"
          }
        },
        "description": "This type defines the fields returned when you create an ad by inventory reference ID."
      },
      "CreateCampaignRequest": {
        "type": "object",
        "required": [
          "campaignName",
          "fundingStrategy",
          "marketplaceId",
          "startDate"
        ],
        "properties": {
          "budget": {
            "description": "The allocated daily budget for the Cost Per Click (CPC) Promoted Listings campaign.<br><br><i>Required if</i> the campaign funding model is CPC.",
            "$ref": "#/components/schemas/CampaignBudgetRequest"
          },
          "campaignCriterion": {
            "description": "This container is used if the seller wishes to create one or more rules for a rules-based campaign. If you populate the <b>campaignCriterion</b> object in your <b>createCampaign</b> 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 campaign to be created.<br><br><span class=\"tablenote\"><b>Note:</b> Rules-based listing selection is only applicable for general strategy campaigns using the Cost-Per-Sale (CPS) funding model.</span>",
            "$ref": "#/components/schemas/CampaignCriterion"
          },
          "campaignName": {
            "type": "string",
            "description": "A seller-defined name for the campaign. This value must be unique for the seller. <p>You can use any alphanumeric characters in the name, except the less than (&lt;) or greater than (&gt;) characters.</p><b>Max length:</b> 80 characters"
          },
          "campaignTargetingType": {
            "description": "The targeting type of the campaign. This value indicates whether the campaign is a manual targeting or smart targeting campaign.<br><br>If not value is specified, this field will default to <code>MANUAL</code>.<br><br><span class=\"tablenote\"><b>Note:</b> This feature is only supported for on-site campaigns that use the Cost Per Click (CPC) funding model.</span><br><b>Valid Values:</b><ul><li><code>MANUAL</code></li><li><code>SMART</code></li></ul>This field is required and must be set to </code>SMART</code> for a Smart Targeting campaign.",
            "$ref": "#/components/schemas/CampaignTargetingTypeEnum"
          },
          "channels": {
            "type": "array",
            "description": "The channel for the campaign. This value indicates whether the advertising campaign is an Onsite or Offsite.<br><br>If no value is entered, this field will default to <code>ON_SITE</code>. Multiple channels are not supported. <br><br><span class=\"tablenote\"><b>Note:</b> <b>Channels</b> is only applicable for campaigns that use the Cost Per Click (CPC) funding model.</span><br><b>Valid Values:</b><ul><li><code>ON_SITE</code></li><li><code>OFF_SITE</code></li></ul>This field is required and must be set to <code>OFF_SITE</code> for a Promoted Offsite campaign.",
            "items": {
              "$ref": "#/components/schemas/ChannelEnum"
            }
          },
          "endDate": {
            "type": "string",
            "description": "The date and time the campaign ends, in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). If this field is omitted, the campaign will have no defined end date, and will not end until the seller makes a decision to end the campaign with an <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-endcampaign\">endCampaign</a> call, or if they update the campaign at a later time with an end date."
          },
          "fundingStrategy": {
            "description": "This container includes parameters that define an ad campaign funding strategy. The set of seller-configurable parameters depends on the selected <b>fundingModel</b> value.",
            "$ref": "#/components/schemas/FundingStrategy"
          },
          "marketplaceId": {
            "description": "The ID of the eBay marketplace where the campaign is hosted. See the <b>MarketplaceIdEnum</b> type to get the appropriate enumeration value for the listing marketplace.",
            "$ref": "#/components/schemas/MarketplaceIdEnum"
          },
          "startDate": {
            "type": "string",
            "description": "The date and time the campaign starts, in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller.  <p>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 <b>getCampaign</b> to check the status of the campaign.</p>"
          }
        },
        "description": "This type defines the fields needed to create a campaign. To create a campaign, you need to specify a name, start and end dates, funding, marketplace, and optionally the criterion (selection rules)."
      },
      "CreateEmailCampaignRequest": {
        "type": "object",
        "required": [
          "audienceCodes",
          "emailCampaignType",
          "itemSelectMode",
          "personalizedMessage",
          "subject"
        ],
        "properties": {
          "audienceCodes": {
            "type": "array",
            "description": "An array of audience codes for the audiences of the email campaign. At least one audience code is required. There is no upper limit to the number of audience codes.<br><br>To retrieve seller audiences, call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getaudiences\">getAudiences</a>. Use the <b>code</b> values in the response to populate <b>audienceCodes</b>.",
            "items": {
              "type": "string"
            }
          },
          "categoryId": {
            "type": "string",
            "description": "The unique identifier of either an eBay category or a store category.<br><br>This field is used if a seller wants to apply an email campaign to a specific eBay category or store category. The <b>categoryType</b> determines whether the <b>categoryId</b> value is an eBay category or store category.<br><br>Use the <a href=\"/api-docs/commerce/taxonomy/overview.html\"  target=\"_blank\">Taxonomy API</a> to retrieve eBay categories. To retrieve seller store categories, use the <a href=\"https://developer.ebay.com/devzone/xml/docs/reference/ebay/GetStore.html\" target=\"_blank\">getStore</a> call. Use the <b>categoryId</b> value of the desired category from the results as the value in the request.<br><br><b>itemSelectMode</b> must be set to <code>AUTO</code> in order to use a category ID."
          },
          "categoryType": {
            "description": "This field must be set when applying an email campaign to a specific eBay category or store category. The enumeration value used indicates which type of category the <b>categoryId</b> belongs to.",
            "$ref": "#/components/schemas/CategoryTypeEnum"
          },
          "emailCampaignType": {
            "description": "The email campaign type of the email campaign being created. There are six <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.campaigntypeenum\">email campaigns</a> that a user can create:<ul><li><code>WELCOME</code> - an email sent automatically to new subscribers.</li><li><code>ITEM_SHOWCASE</code> - an email featuring new products & collections that the seller wants to highlight.</li><li><code>COUPON</code> - an email containing a coupon code and up to 4 items that this coupon can be applied to.</li><li><code>ORDER_DISCOUNT</code> - an email containing an order discount and up to 10 items that this discount can be applied to.</li><li><code>SALE_EVENT</code> - an email about a sale event and up to 10 items that the sale can be applied to.</li><li><code>VOLUME_PRICING</code> - an email containing up to 10 items that are eligible for volume pricing.</li></ul><br><span class=\"tablenote\"><b>Note:</b> <b>emailCampaignType</b> cannot be updated once the email campaign is created.</span>",
            "$ref": "#/components/schemas/CampaignTypeEnum"
          },
          "itemIds": {
            "type": "array",
            "description": "An array of unique identifiers for the listings displayed in an email campaign. Used if the seller wishes to select the eBay listings in the email campaign rather than have eBay automatically select them. <br><br>Call <a href=\"/DevZone/XML/docs/Reference/eBay/GetSellerList.html#GetSellerList\">getSellerList</a> to retrieve all seller listings. Each <b>Item</b> result contains an <b>ItemID</b> value. Use this value in <b>itemIds</b> to feature that listing.<br><br>The maximum number of <b>itemIds</b> for the <code>COUPON</code> campaign type is 4, and for every other campaign type is 10<br><br><b>itemSelectMode</b> must be set to <code>MANUAL</code> in order to use this field.",
            "items": {
              "type": "string"
            }
          },
          "itemSelectMode": {
            "description": "Determines whether listings featured in an email campaign are selected by the seller or by eBay.<br><br>If <b>itemSelectMode</b> is set to <code>AUTO</code>, eBay automatically choses listings based on values set for <b>sort</b>, <b>categoryType</b>, <b>categoryId</b>, and <b>priceRange</b>.<br><br>If <b>itemSelectMode</b> is set to <code>MANUAL</code>, listings are set by the seller by populating the <b>itemIds</b> array.<br><br><span class=\"tablenote\"><b>Note: </b><b>itemSelectMode</b> is always set to <code>AUTO</code> for <code>WELCOME</code> email campaigns.</span>",
            "$ref": "#/components/schemas/ItemSelectModeEnum"
          },
          "personalizedMessage": {
            "type": "string",
            "description": "The body of the email campaign. Accepts HTML and CSS.<br><br><b>Max length:</b> 1000"
          },
          "priceRange": {
            "description": "This container is used if the seller wants to apply the email campaign to listings based on a price range.<br><br>The <b>priceRange</b> container consists of the <b>currency</b>, <b>gte</b>, and <b>lte</b> fields.<br><br> \"gte\" stands for \"greater than or equal to\" and \"lte\" stands for \"less than or equal to\". Either <b>gte</b>, <b>lte</b>, or both must be used.<br><br><b>currency</b> is a required field if including a price range. One of the three-digit currency codes from <b>CurrencyCodeEnum</b> must be specified.<br><br><span class=\"tablenote\"><b>Note: </b>Use this object when the <b>itemSelectMode</b> is set to <code>AUTO</code>.</span>",
            "$ref": "#/components/schemas/PriceRange"
          },
          "promotionId": {
            "type": "string",
            "description": "The unique identifier of the discount used for an email campaign if the <b>emailCampaignType</b> is set to <code>COUPON</code>, <code>SALE_EVENT</code>, or <code>ORDER_DISCOUNT</code>. <b>promotionSelectModeEnum</b> must set to <code>MANUAL</code> if a discount is selected.<br><br>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\">getPromotions</a> to retrieve a list of the seller's discounts. Use the <b>promotionId</b> from an individual <b>PromotionDetail</b> in the result to populate the request."
          },
          "promotionSelectModeEnum": {
            "description": "The selection mode for the discount used if the <b>emailCampaignType</b> is set to <code>COUPON</code>, <code>SALE_EVENT</code>, or <code>ORDER_DISCOUNT</code>.<br><br>If <b>promotionSelectModeEnum</b> is set to <code>AUTO</code>, eBay will choose the discount to include in the email campaign. If set to <code>MANUAL</code>, the seller must specify the discount in the <b>promotionId</b> field.",
            "$ref": "#/components/schemas/PromotionSelectModeEnum"
          },
          "scheduleDate": {
            "type": "string",
            "description": "The date and time that the email campaign newsletter will be sent, given in UTC format. Example: 2023-05-20T03:13:35Z<br><br>This field should be used if the seller wishes to send the email campaign on a future date. If no <b>scheduleDate</b> is set, the email campaign will send once it is created or updated."
          },
          "sort": {
            "description": "The sort rule is used to display the listings featured in the email campaign.<br><br>Sort rules are only used if <b>itemSelectMode</b> is set to <code>AUTO</code>. If <b>itemSelectMode</b> is <code>MANUAL</code>, listings are displayed in the order in which they are listed in the <b>itemIds</b> array. The following sort rules are available:<ul><li><code>ENDING_FIRST</code> displays listings by ending date, from soonest to latest.</li><li><code>LOWEST_PRICED</code> displays listings by price, from lowest to highest.</li><li><code>HIGHEST_PRICED</code> displays listings by price, from highest to lowest.</li><li><code>NEWLY_LISTED</code> displays listings by date listed, with the newest first.</li></ul><br><br>The default sort rule is <code>NEWLY_LISTED</code>.",
            "$ref": "#/components/schemas/ItemSortEnum"
          },
          "subject": {
            "type": "string",
            "description": "The subject line of the email campaign.<br><br><b>Max length:</b> 70"
          }
        },
        "description": "This type defines the <b>createEmailCampaign</b> request payload."
      },
      "CreateEmailCampaignResponse": {
        "type": "object",
        "required": [
          "emailCampaignId",
          "emailCampaignStatus"
        ],
        "description": "This type defines the response payload of the <b>createEmailCampaign</b> method.",
        "properties": {
          "emailCampaignId": {
            "type": "string",
            "description": "The unique eBay-assigned identifier of the email campaign. It is generated automatically when the email campaign is created.<br><br>This value is returned unless there is an error."
          },
          "emailCampaignStatus": {
            "description": "The status of the email campaign.<br><br><code>ACTIVE</code> is returned for email campaigns that have been successfully created but not been sent.<br><br><code>SENT</code> is returned for email campaigns that have already been sent.<br><br><code>ERROR</code> is returned when an email has not been successfully created.",
            "$ref": "#/components/schemas/EmailCampaignStatusEnum"
          }
        }
      },
      "CreateKeywordRequest": {
        "type": "object",
        "required": [
          "adGroupId",
          "keywordText",
          "matchType"
        ],
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "This <b>adGroupId</b> 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. Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups\">getAdGroups</a> method to retrieve the ad group IDs for a seller, and <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-keyword-getkeywords\">getKeywords</a> to retrieve the keyword IDs for a seller's keywords."
          },
          "bid": {
            "description": "This container is used to set the maximum bid for the keyword. Each time a listing is retrieved in search results using this keyword and clicked on, the seller will be charged, at most, this amount. Each click goes toward the daily budget set up for the CPC campaign. If the bid is not provided, then the default bid associated with the ad group is used.<br /><br /><span class=\"tablenote\"><b>Note:</b> You can call the  <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-suggestbids\">suggestBids</a> method to retrieve the suggested bids for keywords.</span>",
            "$ref": "#/components/schemas/Amount"
          },
          "keywordText": {
            "type": "string",
            "description": "The text of the keyword. Keywords are not case sensitive and compound words can be used without additional encoding (for example, tennis ball).<br><br><b>Maximum number of characters:</b> 100<br><br><b>Maximum number of words:</b> 10"
          },
          "matchType": {
            "description": "A field that defines the match type for the keyword.<br /><br /><b>Valid Values:</b><ul><li><code>BROAD</code></li><li><code>EXACT</code></li><li><code>PHRASE</code></li></ul>",
            "$ref": "#/components/schemas/MatchTypeEnum"
          }
        },
        "description": "A type that defines the fields for the <b>CreateKeyword</b> request."
      },
      "CreateNegativeKeywordRequest": {
        "type": "object",
        "required": [
          "negativeKeywordMatchType",
          "negativeKeywordText"
        ],
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "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.<br /><br />Use the  <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups\">getAdGroups</a> method to retrieve the ad group IDs for a seller.</span><br /><br /><i>Required if</i> the negative keyword is being created at the ad group level."
          },
          "campaignId": {
            "type": "string",
            "description": "This path parameter specifies the unique eBay-assigned identifier of the ad campaign associated with the set of negative keywords being created. <br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve campaign IDs.<br /><br /><i>Required if</i> the negative keyword is being created at the ad group level."
          },
          "negativeKeywordMatchType": {
            "description": "A field that defines the match type for the negative keyword.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> Broad matching of negative keywords is not currently supported.</span><br /><b>Valid Values:</b><ul><li><code>EXACT</code></li><li><code>PHRASE</code></li></ul>",
            "$ref": "#/components/schemas/NegativeKeywordMatchTypeEnum"
          },
          "negativeKeywordText": {
            "type": "string",
            "description": "The negative keyword text."
          }
        },
        "description": "A type that defines the fields for the <b>CreateNegativeKeyword</b> request."
      },
      "CreateReportTask": {
        "type": "object",
        "required": [
          "dateFrom",
          "dateTo",
          "dimensions",
          "marketplaceId",
          "metricKeys",
          "reportFormat",
          "reportType"
        ],
        "properties": {
          "additionalRecords": {
            "type": "array",
            "description": "A list of additional records that shall be included in the report, such as non-performing data.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> Additional records are only applicable to Promoted Listings priority strategy campaigns that use the Cost Per Click (CPC) funding model.</span><br /><b>Valid Value:</b> <code>NON_PERFORMING_DATA</code>",
            "items": {
              "$ref": "#/components/schemas/AdditionalRecordEnum"
            }
          },
          "campaignIds": {
            "type": "array",
            "description": "A list of campaign IDs to be included in the report task. Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> method to retrieve a list of the current campaign IDs for a seller.<br /><br />For general campaign strategy sellers, this field is required if the <b>reportType</b> is set to <code>CAMPAIGN_PERFORMANCE_REPORT</code> or <code>CAMPAIGN_PERFORMANCE_SUMMARY_REPORT</code>.<br /><br />For priority strategy campaign sellers, leave this request field blank to retrieve the details for all campaigns associated with your account, or specify the campaign IDs for which you would like to retrieve the campaign-specific details.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> There is a maximum data limit that cannot be exceeded when generating reports. If this threshold is exceeded, the report will fail. Refer to <a href=\"/api-docs/sell/static/marketing/pl-reports.html#creation\" target=\"_blank\">Promoted Listings reporting</a> in the Selling Integration Guide for details.</span><br /><br /><b>Maximum:</b> 1,000 IDs</li></ul>",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "type": "array",
            "description": "The channel for the advertising campaign that will be included in the report task. This value indicates whether the data included in the report task is for an Onsite or Offsite advertising campaign.<br><br>If no value is entered, this field will default to <code>ON_SITE</code>. Multiple channels are not supported.<br><br><span class=\"tablenote\"><b>Note:</b> Channels are only applicable for campaigns that use the Cost Per Click (CPC) funding model.</span><br><b>Valid Values</b>:<ul><li> <code>ON_SITE</code></li><li><code>OFF_SITE</code></li></ul>This field is required and must be set to <code>OFF_SITE</code> if the report is for a Offsite Ads campaign.",
            "items": {
              "$ref": "#/components/schemas/ChannelEnum"
            }
          },
          "dateFrom": {
            "type": "string",
            "description": "The date defining the start of the timespan covered by the report.<br /><br />Format the timestamp as an <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\" title=\"https://www.iso.org\" target=\"_blank\">ISO 8601</a> string, which is based on the 24-hour Coordinated Universal Time (UTC) clock with local offset.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> The date specified cannot be a future date.</span><br /><br /><b>Format:</b> <code>[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z</code><br /><br /><b>Example:</b> <code>2021-03-15T13:00:00-07:00</code>"
          },
          "dateTo": {
            "type": "string",
            "description": "The date defining the end of the timespan covered by the report.<br /><br />As with the <b>dateFrom</b> field, format the timestamp as an <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html\" title=\"https://www.iso.org\" target=\"_blank\">ISO 8601</a> string.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> The date specified cannot be a future date. Additionally, the time specified must be a later time than that specified in the <b>dateFrom</b> field.</span><br /><br /><b>Format:</b> <code>[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z</code><br /><br /><b>Example:</b> <code>2021-03-17T13:00:00-07:00</code>"
          },
          "dimensions": {
            "type": "array",
            "description": "The list of the dimensions applied to the report.  <p>A dimension is an attribute to which the report data applies. For example, if you set <b>dimensionKey</b> to <code>campaign_id</code> in a Campaign Performance Report, the data will apply to the entire ad campaign. For information on the dimensions and how to specify them, see <a href=\"/api-docs/sell/static/marketing/pl-reports.html\" target=\"_blank\">Promoted Listings reporting</a>.</p>",
            "items": {
              "$ref": "#/components/schemas/Dimension"
            }
          },
          "fundingModels": {
            "type": "array",
            "description": "The funding model for the campaign that shall be included in the report.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> The default funding model for Promoted Listings reports is <code>COST_PER_SALE</code>.</span><br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> Multiple value support for the <b>fundingModels</b> array has been deprecated. See <a href =\"/develop/apis/api-deprecation-status \" target=\"_blank\">API&nbsp;Deprecation&nbsp;Status</a> for information.</span><br /><br /><b>Valid Values:</b><ul><li><code>COST_PER_SALE</code></li><li><code>COST_PER_CLICK</code></li></ul><i>Required if</i> the campaign funding model is Cost Per Click (CPC).",
            "items": {
              "$ref": "#/components/schemas/FundingModelEnum"
            }
          },
          "inventoryReferences": {
            "type": "array",
            "description": "You can use this field to supply an array of items to include in the report if you manage your inventory with the <a href=\"/api-docs/sell/inventory/resources/methods\" target=\"_blank\">Inventory API</a>.  <br><br>This field is mutually exclusive with the <b>listingIds</b> field; if you populate this field, <i>do not</i> populate the <b>listingIds</b> field.  <br><br>An inventory reference identifies an item in your inventory using a pair of values, where the <b>inventoryReferenceId</b> can be either a seller-defined <b>SKU</b> value or an <b>inventoryItemGroupKey</b>, where an <b>inventoryItemGroupKey</b> is seller-defined ID for an inventory item group (a multiple-variation listing). <br><br>Couple the <b>inventoryReferenceId</b> with an <b>inventoryReferenceType</b> identifier to fully identify an item in your inventory.  <br><br><b>Maximum: </b> 500 items <br><br><i>Required if </i> you do not supply an array of <b>listingId</b> values or if you set <b>reportType</b> to <code>INVENTORY_PERFORMANCE_REPORT</code>.",
            "items": {
              "$ref": "#/components/schemas/InventoryReference"
            }
          },
          "listingIds": {
            "type": "array",
            "description": "Use this field to supply an array of eBay listing IDs you want to include in the report.<br><br><span class=\"tablenote\"><span style=\"color:#FF0000\"><strong>Important:</strong></span> This field is mutually exclusive with the <b>inventoryReferences</b> field; if you populate this field, <i>do not</i> populate the <b>inventoryReferences</b> field.</span><br />For general campaign strategy sellers, this field is required if you do not supply an array of <b>inventoryReferences</b> values or if you set the <b>reportType</b> to <code>LISTING_PERFORMANCE_REPORT</code>.<br /><br />For priority strategy campaign sellers, leave this field blank to retrieve the details for all listings associated with the specified campaign IDs (or all campaigns associated with your account, if no campaign IDs are specified), or specify the listing IDs for which you would like to retrieve the listing-specific details.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> There is a maximum data limit that cannot be exceeded when generating reports. If this threshold is exceeded, the report will fail. Refer to <a href=\"/api-docs/sell/static/marketing/pl-reports.html#creation\" target=\"_blank\">Promoted Listings reporting</a> in the Selling Integration Guide for details.</span><br /><br /><b>Maximum:</b> 500 listings",
            "items": {
              "type": "string"
            }
          },
          "marketplaceId": {
            "description": "The unique identifier for the eBay marketplace on which the report is based.",
            "$ref": "#/components/schemas/MarketplaceIdEnum"
          },
          "metricKeys": {
            "type": "array",
            "description": "The list of metrics to be included in the report.  <p>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 <code>campaign</code>, the metrics for <b>number of sales</b> would be the number of sales in the campaign. However, if the dimension is <code>listing</code>, the <b>number of sales</b> represents the number of items sold in that listing.</p>  <p>For information on metric keys and how to set them, see <a href=\"/api-docs/sell/static/marketing/pl-reports.html\" target=\"_blank\">Promoted Listings reporting</a>.</p><b>Minimum: </b> 1",
            "items": {
              "type": "string"
            }
          },
          "reportFormat": {
            "description": "The file format of the report. Currently, the only supported format is <code>TSV_GZIP</code>, which is a gzip file with tab separated values.",
            "$ref": "#/components/schemas/ReportFormatEnum"
          },
          "reportType": {
            "description": "The type of report to be generated, such as <code>ACCOUNT_PERFORMANCE_REPORT</code> or <code>CAMPAIGN_PERFORMANCE_REPORT</code>.<br/><br/><span class=\"tablenote\"><b>Note:</b> <code>INVENTORY_PERFORMANCE_REPORT</code> is not currently available; availability date is pending.</span><br /><br /><b>Maximum:</b> 1",
            "$ref": "#/components/schemas/ReportTypeEnum"
          }
        },
        "description": "This type defines the rules that govern the generation of a report task and the criteria that's used to create the report. The report-generation rules include the starting and ending dates for the report. Report-task criteria includes the report dimensions, metrics, listings covered in the report, and so on. For information on the required and optional fields for each report type, see <a href=\"/api-docs/sell/static/marketing/pl-reports.html\" target=\"_blank\">Promoted Listings reporting</a>."
      },
      "CriterionTypeEnum": {
        "type": "object",
        "description": "An enum that specifies the criterion upon which a selection-rules campaign is based. Currently, only <b>INVENTORY_PARTITION</b> is supported. | - **INVENTORY_PARTITION**: Indicates the criterion for a rules-based campaign is based on a seller's inventory reference IDs. An <i>inventory reference ID</i> can be either a seller-defined SKU value or an <b>inventoryItemGroupKey</b>.<br><br>An <i>inventoryItemGroupKey</i> is a value used by the <a href=\"/api-docs/sell/inventory/overview.html\" target=\"blank\">Inventory API</a> to indicate a listing that's the parent of an inventory item group (a multi-variation listing, such as a listing for a shirt that's available in multiple sizes and colors). To fully identify a such a listing, you must specify both its <b>inventory_reference_id</b> plus its <b>inventory_reference_type</b>.",
        "enum": [
          "INVENTORY_PARTITION"
        ]
      },
      "CurrencyCodeEnum": {
        "type": "string",
        "description": "This enumerated type lists the three-letter <a href=\"https://www.iso.org/iso-4217-currency-codes.html \" title=\"https://www.iso.org \" target=\"_blank\">ISO 4217</a> code representing the supported world currencies. | - **AED**: United Arab Emirates dirham - **AFN**: Afghan afghani - **ALL**: Albanian lek - **AMD**: Armenian dram - **ANG**: Netherlands Antillean guilder - **AOA**: Angolan kwanza - **ARS**: Argentine peso - **AUD**: Australian dollar - **AWG**: Aruban florin - **AZN**: Azerbaijani manat - **BAM**: Bosnia and Herzegovina convertible mark - **BBD**: Barbados dollar - **BDT**: Bangladeshi taka - **BGN**: Bulgarian lev - **BHD**: Bahraini dinar - **BIF**: Burundian franc - **BMD**: Bermudian dollar - **BND**: Brunei dollar - **BOB**: Bolivian Boliviano - **BRL**: Brazilian real - **BSD**: Bahamian dollar - **BTN**: Bhutanese ngultrum - **BWP**: Botswana pula - **BYR**: Belarusian ruble - **BZD**: Belize dollar - **CAD**: Canadian dollar - **CDF**: Congolese franc - **CHF**: Swiss franc - **CLP**: Chilean peso - **CNY**: Chinese yuan renminbi - **COP**: Colombian peso - **CRC**: Costa Rican colon - **CUP**: Cuban peso - **CVE**: Cape Verde escudo - **CZK**: Czech koruna - **DJF**: Djiboutian franc - **DKK**: Danish krone - **DOP**: Dominican peso - **DZD**: Algerian dinar - **EGP**: Egyptian pound - **ERN**: Eritrean nakfa - **ETB**: Ethiopian birr - **EUR**: European Union euro - **FJD**: Fiji dollar - **FKP**: Falkland Islands pound - **GBP**: British pound sterling - **GEL**: Georgian lari - **GHS**: Ghanaian cedi - **GIP**: Gibraltar pound - **GMD**: Gambian dalasi - **GNF**: Guinean franc - **GTQ**: Guatemalan quetzal - **GYD**: Guyanese dollar - **HKD**: Hong Kong dollar - **HNL**: Honduran lempira - **HRK**: Croatian kuna - **HTG**: Haitian gourde - **HUF**: Hungarian forint - **IDR**: Indonesian rupiah - **ILS**: Israeli new shekel - **INR**: Indian rupee - **IQD**: Iraqi dinar - **IRR**: Iranian rial - **ISK**: Icelandic krona - **JMD**: Jamaican dollar - **JOD**: Jordanian dinar - **JPY**: Japanese yen - **KES**: Kenyan shilling - **KGS**: Kyrgyzstani som - **KHR**: Cambodian riel - **KMF**: Comoro franc - **KPW**: North Korean won - **KRW**: South Korean won - **KWD**: Kuwaiti dinar - **KYD**: Cayman Islands dollar - **KZT**: Kazakhstani tenge - **LAK**: Lao kip - **LBP**: Lebanese pound - **LKR**: Sri Lankan rupee - **LRD**: Liberian dollar - **LSL**: Lesotho loti - **LTL**: Lithuanian litas - **LYD**: Libyan dinar - **MAD**: Moroccan dirham - **MDL**: Moldovan leu - **MGA**: Malagasy ariary - **MKD**: Macedonian denar - **MMK**: Myanmar kyat - **MNT**: Mongolian tugrik - **MOP**: Macanese pataca - **MRO**: Mauritanian ouguiya - **MUR**: Mauritian rupee - **MVR**: Maldivian rufiyaa - **MWK**: Malawian kwacha - **MXN**: Mexican peso - **MYR**: Malaysian ringgit - **MZN**: Mozambican metical - **NAD**: Namibian dollar - **NGN**: Nigerian naira - **NIO**: Nicaraguan cordoba oro - **NOK**: Norwegian krone - **NPR**: Nepalese rupee - **NZD**: New Zealand dollar - **OMR**: Omani rial - **PAB**: Panamanian balboa - **PEN**: Peruvian sol - **PGK**: Papua New Guinean kina - **PHP**: Philippine peso - **PKR**: Pakistani rupee - **PLN**: Polish zloty - **PYG**: Paraguayan guarani - **QAR**: Qatari riyal - **RON**: Romanian leu - **RSD**: Serbian dinar - **RUB**: Russian ruble - **RWF**: Rwandan franc - **SAR**: Saudi riyal - **SBD**: Solomon Islands dollar - **SCR**: Seychelles rupee - **SDG**: Sudanese pound - **SEK**: Swedish krona - **SGD**: Singapore dollar - **SHP**: Saint Helena pound - **SLL**: Sierra Leonean leone - **SOS**: Somali shilling - **SRD**: Surinamese dollar - **STD**: Sao Tome and Principe dobra - **SYP**: Syrian pound - **SZL**: Swazi lilangeni - **THB**: Thai baht - **TJS**: Tajikistani somoni - **TMT**: Turkmenistani manat - **TND**: Tunisian dinar - **TOP**: Tongan pa'anga - **TRY**: Turkish lira - **TTD**: Trinidad and Tobago dollar - **TWD**: New Taiwan dollar - **TZS**: Tanzanian shilling - **UAH**: Ukrainian hryvnia - **UGX**: Ugandan shilling - **USD**: United States dollar - **UYU**: Uruguayan peso - **UZS**: Uzbekistani som - **VEF**: Venezuelan bolivar - **VND**: Vietnamese dong - **VUV**: Vanuatu vatu - **WST**: Samoan tala - **XAF**: CFA franc BEAC - **XCD**: East Caribbean dollar - **XOF**: CFA franc BCEAO - **XPF**: CFP franc - **YER**: Yemeni rial - **ZAR**: South African rand - **ZMW**: Zambian kwacha - **ZWL**: Zimbabwean dollar",
        "enum": [
          "AED",
          "AFN",
          "ALL",
          "AMD",
          "ANG",
          "AOA",
          "ARS",
          "AUD",
          "AWG",
          "AZN",
          "BAM",
          "BBD",
          "BDT",
          "BGN",
          "BHD",
          "BIF",
          "BMD",
          "BND",
          "BOB",
          "BRL",
          "BSD",
          "BTN",
          "BWP",
          "BYR",
          "BZD",
          "CAD",
          "CDF",
          "CHF",
          "CLP",
          "CNY",
          "COP",
          "CRC",
          "CUP",
          "CVE",
          "CZK",
          "DJF",
          "DKK",
          "DOP",
          "DZD",
          "EGP",
          "ERN",
          "ETB",
          "EUR",
          "FJD",
          "FKP",
          "GBP",
          "GEL",
          "GHS",
          "GIP",
          "GMD",
          "GNF",
          "GTQ",
          "GYD",
          "HKD",
          "HNL",
          "HRK",
          "HTG",
          "HUF",
          "IDR",
          "ILS",
          "INR",
          "IQD",
          "IRR",
          "ISK",
          "JMD",
          "JOD",
          "JPY",
          "KES",
          "KGS",
          "KHR",
          "KMF",
          "KPW",
          "KRW",
          "KWD",
          "KYD",
          "KZT",
          "LAK",
          "LBP",
          "LKR",
          "LRD",
          "LSL",
          "LTL",
          "LYD",
          "MAD",
          "MDL",
          "MGA",
          "MKD",
          "MMK",
          "MNT",
          "MOP",
          "MRO",
          "MUR",
          "MVR",
          "MWK",
          "MXN",
          "MYR",
          "MZN",
          "NAD",
          "NGN",
          "NIO",
          "NOK",
          "NPR",
          "NZD",
          "OMR",
          "PAB",
          "PEN",
          "PGK",
          "PHP",
          "PKR",
          "PLN",
          "PYG",
          "QAR",
          "RON",
          "RSD",
          "RUB",
          "RWF",
          "SAR",
          "SBD",
          "SCR",
          "SDG",
          "SEK",
          "SGD",
          "SHP",
          "SLL",
          "SOS",
          "SRD",
          "STD",
          "SYP",
          "SZL",
          "THB",
          "TJS",
          "TMT",
          "TND",
          "TOP",
          "TRY",
          "TTD",
          "TWD",
          "TZS",
          "UAH",
          "UGX",
          "USD",
          "UYU",
          "UZS",
          "VEF",
          "VND",
          "VUV",
          "WST",
          "XAF",
          "XCD",
          "XOF",
          "XPF",
          "YER",
          "ZAR",
          "ZMW",
          "ZWL"
        ]
      },
      "DataTypeEnum": {
        "type": "object",
        "description": "This enum type defines the data type of the returned value. | - **DATE**: Indicates the value is a date.<br><br><b>Format (UTC):</b> <code>yyyy-MM-ddThh:mm:ss.sssZ</code> - **INTEGER**: Indicates the data type of the value is integer. - **DOUBLE**: Indicates the data type of the value is double. - **STRING**: Indicates the data type of the value is string. - **LONG**: Indicates the data type of the value is long. ",
        "enum": [
          "DATE",
          "INTEGER",
          "DOUBLE",
          "STRING",
          "LONG"
        ]
      },
      "DeleteAdRequest": {
        "type": "object",
        "required": [
          "listingId"
        ],
        "properties": {
          "listingId": {
            "type": "string",
            "description": "A unique eBay-assigned identifier for a listing that is generated when the listing is created.  <p class=\"tablenote\"><b>Note:</b> 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).</p>"
          }
        },
        "description": "This type defines the fields used in a delete-ad request."
      },
      "DeleteAdResponse": {
        "type": "object",
        "required": [
          "adId",
          "listingId",
          "statusCode"
        ],
        "properties": {
          "adId": {
            "type": "string",
            "description": "The unique identifier of the ad that was deleted, or the ad that the seller attempted to delete."
          },
          "errors": {
            "type": "array",
            "description": "An array of the errors or warnings associated with the request.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          },
          "listingId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for a listing that is generated when the listing is created."
          },
          "statusCode": {
            "type": "integer",
            "description": "An HTTP status code that indicates the response-status of the request. Check this code to see if the ad was successfully deleted.<span class=\"tablenote\"><b>Note:</b>A status code is returned for each ad that the seller deletes, or attempts to delete.</span>",
            "format": "int32"
          }
        },
        "description": "This type defines the fields returned in a delete-ad response."
      },
      "DeleteAdsByInventoryReferenceRequest": {
        "type": "object",
        "required": [
          "inventoryReferenceId",
          "inventoryReferenceType"
        ],
        "properties": {
          "inventoryReferenceId": {
            "type": "string",
            "description": "The unique identifier of a single-item listing or a multi-variation listing.<br><br>To create an ad for a single-item listing, set the <b>inventoryReferenceType</b> value to <code>INVENTORY_ITEM</code> and specify an item ID or a SKU (if the SKU is defined in the listing).<br><br>To create an ad for a multi-variation listing, set the <b>inventoryReferenceType</b> value to <code>INVENTORY_ITEM_GROUP</code> and specify the item ID for the multi-variation listing or the <b>inventoryitemGroupKey</b> value as defined in the Inventory API."
          },
          "inventoryReferenceType": {
            "description": "This enumerated value indicates the type of item the <b>inventoryReferenceId</b> references.<br><br>The item can be either an <code>INVENTORY_ITEM</code> or an <code>INVENTORY_ITEM_GROUP</code>.",
            "$ref": "#/components/schemas/InventoryReferenceTypeEnum"
          }
        },
        "description": "This type defines the fields needed to delete an ad by its inventory reference ID.  You must always supply both <b>inventory_reference_id</b> and <b>inventory_reference_type</b>."
      },
      "DeleteAdsByInventoryReferenceResponse": {
        "type": "object",
        "required": [
          "adIds",
          "inventoryReferenceId",
          "inventoryReferenceType",
          "statusCode"
        ],
        "properties": {
          "adIds": {
            "type": "array",
            "description": "The unique identifier of the ad that was deleted, or the ad that the seller attempted to delete.<span class=\"tablenote\"><b>Note:</b>Although the field name is plural and it is an array, only one ad ID will be returned here since there can be only one ad per listing.</span>",
            "items": {
              "type": "string"
            }
          },
          "errors": {
            "type": "array",
            "description": "The container for the errors associated with the request.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          },
          "inventoryReferenceId": {
            "type": "string",
            "description": "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": {
            "description": "The enumeration value returned here indicates if the ad was for a single-variation listing or a multiple-variation listing.",
            "$ref": "#/components/schemas/InventoryReferenceTypeEnum"
          },
          "statusCode": {
            "type": "integer",
            "description": "An HTTP status code indicating if the corresponding ad was successfully deleted or not. <code>200 Successful</code> should be returned for successfully deleted ads. <span class=\"tablenote\"><b>Note:</b>A status code is returned for each ad that the seller deletes, or attempts to delete.</span>",
            "format": "int32"
          }
        },
        "description": "This type defines the fields returned by request to delete a set of ads by inventory reference ID."
      },
      "DeleteEmailCampaignResponse": {
        "type": "object",
        "description": "This type defines the response payload for the <b>deleteEmailCampaign</b> method.",
        "required": [
          "emailCampaignId"
        ],
        "properties": {
          "emailCampaignId": {
            "type": "string",
            "description": "The unique eBay-assigned ID for the email campaign that is generated when the email campaign is created."
          }
        }
      },
      "Dimension": {
        "type": "object",
        "required": [
          "dimensionKey"
        ],
        "properties": {
          "annotationKeys": {
            "type": "array",
            "description": "A list of annotations associated with the dimension of the report.",
            "items": {
              "type": "string"
            }
          },
          "dimensionKey": {
            "type": "string",
            "description": "The name of the dimension on which the report is based. <p>A dimension is an attribute to which the report data applies.</p>"
          }
        },
        "description": "This type defines the annotation and dimension key used by the report. For information on how to set these values, see <a href=\"/api-docs/sell/static/marketing/pl-reports.html\" target=\"_blank\">Promoted Listings reporting</a>."
      },
      "DimensionKeyAnnotation": {
        "type": "object",
        "required": [
          "annotationKey",
          "dataType"
        ],
        "properties": {
          "annotationKey": {
            "type": "string",
            "description": "An annotation key associated with the dimension."
          },
          "dataType": {
            "description": "The data type of the annotation key value.",
            "$ref": "#/components/schemas/DataTypeEnum"
          }
        },
        "description": "This type defines the annotation values associated with a dimension. Annotations are metadata of the dimension. For example, annotations for a listing ID could be <code>listing_title</code> or <code>listing_quantity_sold</code>."
      },
      "DimensionKeyEnum": {
        "type": "string",
        "description": "An enumerated type used to define the dimension key field. | - **MARKETPLACE_ID**: This enum value indicates that the dimension key is marketplace ID. ",
        "enum": [
          "MARKETPLACE_ID"
        ]
      },
      "DimensionMetadata": {
        "type": "object",
        "required": [
          "dataType",
          "dimensionKey",
          "dimensionKeyAnnotations"
        ],
        "properties": {
          "dataType": {
            "description": "The data type of the dimension value used to create the report.",
            "$ref": "#/components/schemas/DataTypeEnum"
          },
          "dimensionKey": {
            "type": "string",
            "description": "The name of the dimension used to create the report."
          },
          "dimensionKeyAnnotations": {
            "type": "array",
            "description": "An list of annotation keys associated with the specified dimension of the report.",
            "items": {
              "$ref": "#/components/schemas/DimensionKeyAnnotation"
            }
          }
        },
        "description": "This type defines the dimension used to create the report and the annotation keys associated with that dimension."
      },
      "DiscountBenefit": {
        "type": "object",
        "properties": {
          "amountOffItem": {
            "description": "The monetary amount that is discounted off an item (or items) when the discount criteria is met.  <br><br>For <b>threshold discounts</b>, where the buyer triggers the discount, the valid values for this field are:  <br>&nbsp; <code>5</code>, <code>6</code>, <code>7</code>, <code>8</code>, <code>9</code>, <code>10</code>, <code>15</code>, <code>20</code>, <code>25</code>, <br> &nbsp; <code>30<c/ode>, <code>35</code>, <code>40</code>, <code>45</code>, <code>50</code>, <code>55</code>, <code>60</code>, <code>65</code>, <br> &nbsp; <code>70</code>, <code>75</code>, <code>80</code>, <code>85</code>, <code>90</code>, <code>95</code>, <code>100/<code>, <code>110</code>, <br> &nbsp; <code>120</code>, <code>125</code>, <code>150</code>, <code>200</code>, <code>250</code>  <br><br>For <b>markdown</b> discounts, the range is greater, as outlined below and detailed more precisely <a href=\"/api-docs/sell/static/marketing/pm-amountoffitems-values.html\" target=\"_blank\">here</a>: <ul><li>$1 increments from $5 to $100</li><li>$5 increments from $105 to $1,000</li><li>$100 increments from $1,100 to $15,000</li></ul>",
            "$ref": "#/components/schemas/Amount"
          },
          "amountOffOrder": {
            "description": "Used for threshold discounts, this is the monetary amount that is discounted off an order when the discount criteria is met. Because this field is valid only for orders, it's not a valid combination to use with markdown discounts.  <br><br><b>Valid values</b> for the associated <code>amountOffOrder.</code><b>value</b> field:  <br> &nbsp; <code>5</code>, <code>6</code>, <code>7</code>, <code>8</code>, <code>9</code>, <code>10</code>, <code>15</code>, <code>20</code>, <code>25</code>, <br> &nbsp; <code>30</code>, <code>35</code>, <code>40</code>, <code>45</code>, <code>50</code>, <code>55</code>, <code>60</code>, <code>65</code>, <br> &nbsp; <code>70</code>, <code>75</code>, <code>80</code>, <code>85</code>, <code>90</code>, <code>95</code>, <code>100</code>, <code>110</code>, <br> &nbsp; <code>120</code>, <code>125</code>, <code>150</code>, <code>200</code>, <code>250</code>",
            "$ref": "#/components/schemas/Amount"
          },
          "percentageOffItem": {
            "type": "string",
            "description": "The percentage applied to the sales price that is discounted off the discounted item (or items) when the discount criteria is met.  <br><br>Valid integer values for percentage off: &nbsp;&nbsp;<b>Min:</b> <code>5</code> &nbsp;&nbsp;<b>Max:</b> <code>80</code>"
          },
          "percentageOffOrder": {
            "type": "string",
            "description": "Used for threshold discounts, this is the percentage of the order price that is discounted off the order when the discount criteria is met. This field is not value for markdown discounts.  <br><br>Valid integer values for ORDER_DISCOUNT discounts: &nbsp;&nbsp;<b>Min:</b> <code>5</code> &nbsp;&nbsp;<b>Max:</b> <code>80</code>  <br><br>For VOLUME_DISCOUNT discounts: Must be set to <code>0</code> for the first discount rule."
          }
        },
        "description": "This type defines the discount as either a monetary amount or a percentage of the sales price.  <p class=\"tablenote\"><b>Important!:</b> You must populate one and only one of the fields in this container: <ul><li><b>amountOffItem</b></li> <li><b>amountOffOrder</b></li> <li><b>percentageOffItem</b></li> <li><b>percentageOffOrder</b></li></ul></p>  <p class=\"tablenote\"><b>Tip:</b> Refer to <a href=\"/api-docs/sell/static/marketing/pm-specifying-discounts.html\" target=\"_blank\">Configuring discounts for threshold discounts</a> for information and examples on how to combine <b>discountBenefit</b> and <b>discountSpecification</b> values to create different types of discounts.</p>"
      },
      "DiscountRule": {
        "type": "object",
        "required": [
          "discountBenefit",
          "discountSpecification",
          "maxDiscountAmount"
        ],
        "properties": {
          "discountBenefit": {
            "description": "This container defines the discount as either a monetary amount or a percentage of the sales price.  <p><b>Note:</b> When configuring discount benefits, populate just one of the following fields in the <b>discountBenefit</b> container:</p> <ul><li><b>amountOffItem</b></li> <li><b>amountOffOrder</b></li> <li><b>percentageOffItem</b></li> <li><b>percentageOffOrder</b></li></ul>  <p>For volume pricing, only <b>percentageOffOrder</b> is applicable as a <b>discountBenefit</b>. Also, the first <b>discountBenefit</b> container in a volume pricing configuration must set <b>percentageOffOrder</b> to <code>0</code>.</p>  <p class=\"tablenote\"><b>Tip:</b> Refer to <a href=\"/api-docs/sell/static/marketing/pm-specifying-discounts.html\" target=\"_blank\">Configuring threshold discounts</a> for information and examples on how to combine <b>discountBenefit</b> and <b>discountSpecification</b> to create different types of discounts.</p>",
            "$ref": "#/components/schemas/DiscountBenefit"
          },
          "discountSpecification": {
            "description": "This container defines the criteria for when the discounts trigger, such as the minimum quantity that the buyer must purchase before the discount kicks in. The discount is applied each time the criteria defined by this container is met.  <p>When configuring the rules that govern when the discounts are applied, populate just one of the following fields in the <b>discountSpecification</b> container:</p>  <ul><li><b>minAmount</b></li> <li><b>minQuantity</b></li> <li><b>forEachQuantity</b></li> <li><b>forEachAmount</b></li></ul>  <p class=\"tablenote\"><b>Important:</b> When configuring <i>volume pricing discounts</i>, only <b>minQuantity</b> is applicable as a <b>discountSpecification</b>. Also, the configuration for <b>minQuantity</b> in a volume pricing configuration is specific. In the first <b>discountSpecification</b> container, set <b>minQuantity</b> to <code>1</code>, and in the second, set <b>minQuantity</b> to <code>2</code>. If you include a third <b>discountRules</b> pair, <b>minQuantity</b> must be set to <code>3</code>, and in a fourth, it must be set to <code>4</code>. Also, you must set a <b>ruleOrder</b> value in each <b>discountRules</b> container. In the first container, <b>discountRules</b> must be set to <code>1</code>, and in each subsequent container, the value be be incremented by 1. For more, see <a href=\"/api-docs/sell/static/marketing/pm-volume-discounts.html\" target=\"_blank\">Configuring volume pricing discounts</a>.</p> <p class=\"tablenote\"><b>Tip:</b> see <a href=\"/api-docs/sell/static/marketing/pm-specifying-discounts.html\" target=\"_blank\">Configuring threshold discounts</a> for information and examples on how to combine <b>discountBenefit</b> and <b>discountSpecification</b> to create different types of discounts.</p>",
            "$ref": "#/components/schemas/DiscountSpecification"
          },
          "maxDiscountAmount": {
            "description": "The limit on how much a buyer can save using a <code>CODED_COUPON</code> discount type. Permitted values are 1-1000. Supported currency codes include USD, GBP, EUR, and AUD. <p class=\"tablenote\"><b>Note:</b> The Currency Code for 'maxDiscountAmount' must be the same as the Currency Code for 'budget'.</p>",
            "$ref": "#/components/schemas/Amount"
          },
          "ruleOrder": {
            "type": "integer",
            "description": "This field indicates the order in which the <b>discountRules</b> are presented. The value specified for this field must equal the associated <b>minQuantity</b> value. <br><br><i>Required if </i> you are creating a volume pricing discount.",
            "format": "int32"
          }
        },
        "description": "This complex type defines a discount as being either a monetary amount or a percentage of a sales price that's subtracted from the price of an item or order. <p>Set the amount of the discount and the rules that govern when the discount triggers using the <b>discountBenefit</b> and <b>discountSpecification</b> fields.</p>  <p class=\"tablenote\"><b>Note:</b> In <b>volume pricing discounts</b>, you must configure at least two <b>discountRule</b> containers and at most four.</p>"
      },
      "DiscountSpecification": {
        "type": "object",
        "properties": {
          "forEachAmount": {
            "description": "The monetary amount that must be spent on discounted items before the discount is applied.  <br><br><b>Valid values</b> for the associated <code>forEachAmount</code> <b>value</b> field: <br><code>5</code>, <code>10</code>, <code>15</code>, <code>20</code>, <code>25</code>, <code>30</code>, <code>35</code>, <code>40</code>, <code>45</code>, <code>49</code>, <br> &nbsp; <code>50</code>, <code>55</code>, <code>59</code>, <code>60</code>, <code>65</code>, <code>69</code>, <code>70</code>, <code>75</code>, <code>79</code>, <code>80</code>, <br> &nbsp; <code>85</code>, <code>89</code>, <code>90</code>, <code>95</code>, <code>99</code>, <code>100</code>, <code>110</code>, <code>120</code>, <code>125</code>, <br> &nbsp; <code>149</code>, <code>150</code>, <code>175</code>, <code>199</code>, <code>200</code>, <code>249</code>, <code>250</code>, <code>299</code>, <br> &nbsp; <code>300</code>, <code>350</code>, <code>399</code>, <code>400</code>, <code>450</code>, <code>499</code>, <code>500</code>",
            "$ref": "#/components/schemas/Amount"
          },
          "forEachQuantity": {
            "type": "integer",
            "description": "The number of items that must be purchased in order to qualify for the discount.  <br><br><b>Valid values:</b> <br>&nbsp; <code>1</code>, <code>2</code>, <code>3</code>, <code>4</code>, <code>5</code>, <code>6</code>, <code>7</code>, <code>8</code>, <code>9</code>, <code>10</code>, <code>11</code>, <br> &nbsp; <code>12</code>, <code>13</code>, <code>14</code>, <code>15</code>, <code>16</code>, <code>17</code>, <code>18</code>, <code>19</code> <br> &nbsp; <code>20</code>, <code>25</code>, <code>50</code>, <code>75</code>, <code>1001</code>, <code>2</code>, <code>3</code>, <code>4</code>, <code>5</code>, <code>6</code>, <code>7</code>, <code>8</code>, <code>9</code>, <code>10</code>, <code>11</code>, <br> &nbsp; <code>12</code>, <code>13</code>, <code>14</code>, <code>15</code>, <code>16</code>, <code>17</code>, <code>18</code>, <code>19</code> <br> &nbsp; <code>20</code>, <code>25</code>, <code>50</code>, <code>75</code>, <code>100</code>",
            "format": "int32"
          },
          "minAmount": {
            "description": "Known as the \"threshold amount\", the minimum dollar amount that needs to be spent on discounted items in order to qualify for the discount.  <br><br><b>Valid values</b> for the associated <code>minAmount</code> <b>value</b> field: <br> &nbsp; <code>5</code>, <code>10</code>, <code>15</code>, <code>20</code>, <code>25</code>, <code>30</code>, <code>35</code>, <code>40</code>, <code>45</code>, <code>49</code>, <br> &nbsp; <code>50</code>, <code>55</code>, <code>59</code>, <code>60</code>, <code>65</code>, <code>69</code>, <code>70</code>, <code>75</code>, <code>79</code>, <code>80</code>, <br> &nbsp; <code>85</code>, <code>89</code>, <code>90</code>, <code>95</code>, <code>99</code>, <code>100</code>, <code>110</code>, <code>120</code>, <br> &nbsp; <code>125</code>, <code>149</code>, <code>150</code>, <code>175</code>, <code>199</code>, <code>200</code>, <code>249</code>, <code>250</code>, <code>299</code>, <br> &nbsp; <code>300</code>, <code>350</code>, <code>399</code>, <code>400</code>, <code>450</code>, <code>499</code>, <code>500</code>",
            "$ref": "#/components/schemas/Amount"
          },
          "minQuantity": {
            "type": "integer",
            "description": "The minimum quantity of discounted items that needs to be bought in order to qualify for the discount.  <br><br><b>Valid values:</b> <br> &nbsp; <code>1</code>, <code>2</code>, <code>3</code>, <code>4</code>, <code>5</code>, <code>6</code>, <code>7</code>, <code>8</code>, <code>9</code>, <code>10</code>, <code>11</code>, <br> &nbsp; <code>12</code>, <code>13</code>, <code>14</code>, <code>15</code>, <code>16</code>, <code>17</code>, <code>18</code>, <code>19</code> <br> &nbsp; <code>20</code>, <code>25</code>, <code>50</code>, <code>75</code>, <code>100</code>",
            "format": "int32"
          },
          "numberOfDiscountedItems": {
            "type": "integer",
            "description": "Use this field to configure \"Buy One Get One\" (or <b>BOGO</b>) discounts.  <br><br>You must couple this field with <b>forEachQuantity</b> and an <b>amountOffItem</b> or <b>percentOffItem</b> field to configure your BOGO discount. This field is not valid with order-based discounts. <br><br>The value of this field represents the number of items to be discounted when other discount criteria is met. For example, when the buyer adds the number of items identified by the <b>forEachQuantity</b> value to their cart, they are then eligible to receive the stated discount from an additional number of like items (the number of which is identified by this field) when they add those items to their cart. To receive the discount, the buyer must purchase the number of items indicated by  <b>forEachQuantity</b> <i>plus</i> the number indicated by this field.  <br><br><b>Valid values:</b> <br> &nbsp; <code>1</code>, <code>2</code>, <code>3</code>, <code>4</code>, <code>5</code>, <code>6</code>, <code>7</code>, <code>8</code>, <code>9</code>, <code>10</code>",
            "format": "int32"
          }
        },
        "description": "This type defines the criteria for when the discounts trigger, such as the minimum quantity the buyer must purchase before the discount kicks in. The discount is applied each time the criteria defined by this container is met.  <p><b>Note:</b> When configuring the rules that govern when the discounts are applied, populate just one of the following fields in the <b>discountSpecification</b> container:</p>  <ul><li><b>minAmount</b></li> <li><b>minQuantity</b></li> <li><b>forEachQuantity</b></li> <li><b>forEachAmount</b></li></ul> <p class=\"tablenote\"><b>Tip:</b> Refer to <a href=\"/api-docs/sell/static/marketing/pm-specifying-discounts.html\" target=\"_blank\">Configuring threshold discounts</a> for information and examples on how to combine <b>discountBenefit</b> and <b>discountSpecification</b> to create different types of discounts.</p>"
      },
      "DynamicAdRatePreference": {
        "type": "object",
        "properties": {
          "adRateAdjustmentPercent": {
            "type": "string",
            "description": "The percentage above or below (-) the eBay suggested ad rate that a seller is willing to pay.<br /><br />This specifies the maximum and minimum values to which an ad rate can be dynamically adjusted."
          },
          "adRateCapPercent": {
            "type": "string",
            "description": "The maximum value (specified as a percentage) to which the eBay suggested ad rate can be adjusted. The adjusted ad rate will never exceed this percentage."
          }
        },
        "description": "A type that defines the ad rate details for a general strategy ad campaign."
      },
      "EmailCampaignStatusEnum": {
        "type": "object",
        "description": "This enumerated type indicates the current status of the email campaign. | - **ACTIVE**: The email campaign is active and ready to be sent. - **SENT**: The email campaign has been sent. - **ERROR**: There was an error when trying to create or update the email campaign. ",
        "enum": [
          "ACTIVE",
          "SENT",
          "ERROR"
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "description": "Identifies the type of error."
          },
          "domain": {
            "type": "string",
            "description": "Name for the primary system where the error occurred. This is relevant for application errors."
          },
          "errorId": {
            "type": "integer",
            "description": "A unique number to identify the error.",
            "format": "int32"
          },
          "inputRefIds": {
            "type": "array",
            "description": "An array of request elements most closely associated to the error.",
            "items": {
              "type": "string"
            }
          },
          "longMessage": {
            "type": "string",
            "description": "A more detailed explanation of the error."
          },
          "message": {
            "type": "string",
            "description": "Information on how to correct the problem, in the end user's terms and language where applicable."
          },
          "outputRefIds": {
            "type": "array",
            "description": "An array of request elements most closely associated to the error.",
            "items": {
              "type": "string"
            }
          },
          "parameters": {
            "type": "array",
            "description": "An array of name/value pairs that describe details the error condition. These are useful when multiple errors are returned.",
            "items": {
              "$ref": "#/components/schemas/ErrorParameter"
            }
          },
          "subdomain": {
            "type": "string",
            "description": "Further helps indicate which subsystem the error is coming from. System subcategories include: Initialization, Serialization, Security, Monitoring, Rate Limiting, etc."
          }
        },
        "description": "This type defines the fields that can be returned in an error."
      },
      "ErrorDetailV3": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "description": "The category type for this error or warning. It takes an ErrorCategory object which can have one of three values:<ul><li><code>Application</code>: Indicates an exception or error occurred in the application code or at runtime. Examples include catching an exception in a service's business logic, system failures, or request errors from a dependency.</li><li><code>Business</code>: Used when your service or a dependent service refused to continue processing on the resource because of a business rule violation such as \"Seller does not ship item to Antarctica\" or \"Buyer ineligible to purchase an alcoholic item\". Business errors are not syntactical input errors.</li><li><code>Request</code>: Used when there is anything wrong with the request, such as authentication, syntactical errors, rate limiting or missing headers, bad HTTP header values, and so on.</li></ul>"
          },
          "domain": {
            "type": "string",
            "description": "Name of the domain containing the service or application."
          },
          "errorId": {
            "type": "integer",
            "description": "A positive integer that uniquely identifies the specific error condition that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms.",
            "format": "int32"
          },
          "inputRefIds": {
            "type": "array",
            "description": "An array of reference IDs that identify the specific request elements most closely associated to the error or warning, if any. For JSON, use <i>JSONPath</i> notation.",
            "items": {
              "type": "string"
            }
          },
          "longMessage": {
            "type": "string",
            "description": "A detailed description of the condition that caused the error or warning and information on what to do to correct the problem. The string is normally 100-200 characters in length, but is not required to be such."
          },
          "message": {
            "type": "string",
            "description": "A short description of the condition that caused the error or warning. This value is at most 50 characters long and, if applicable, is localized in the end user's requested locale."
          },
          "outputRefIds": {
            "type": "array",
            "description": "An array of reference IDs that identify the specific response elements most closely associated to the error or warning, if any. The path format is the same as <code>inputRefId</code>.",
            "items": {
              "type": "string"
            }
          },
          "parameters": {
            "type": "array",
            "description": "An array that contains contextual information about the error or warning. The list often includes the parameter or input fields that triggered the warning or error condition.",
            "items": {
              "$ref": "#/components/schemas/ErrorParameterV3"
            }
          },
          "subdomain": {
            "type": "string",
            "description": "The name of the subdomain in which the error or warning occurred. For example, checkout is a subdomain in the buying domain."
          }
        },
        "description": "This type defines the fields returned in an error condition."
      },
      "ErrorParameter": {
        "type": "object",
        "description": "This type defines the parameters for an error.",
        "properties": {
          "name": {
            "type": "string",
            "description": "The object of the error."
          },
          "value": {
            "type": "string",
            "description": "The value of the object."
          }
        }
      },
      "ErrorParameterV3": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the entity that threw the error."
          },
          "value": {
            "type": "string",
            "description": "The value that was set for the element specified in the <b>name</b> field."
          }
        },
        "description": "This type defines the parameters for an error."
      },
      "ExclusionsEnum": {
        "type": "object",
        "description": "An enumerated type used to filter keyword recommendations. | - **ADOPTED_KEYWORDS**: This enum value indicates that the keywords currently used for seller listings shall be considered in requests for keyword suggestions so that only new and unique keyword recommendations are provided.",
        "enum": [
          "ADOPTED_KEYWORDS"
        ]
      },
      "FundingModelEnum": {
        "type": "string",
        "description": "This enumerated type defines the funding models that specify how the Promoted Listing fee is calculated.<br /><br />The seller is assessed a Promoted Listing fee only if an item sells via a <i>Promoted Listing action</i>. For more information, see <a href=\"/api-docs/sell/static/marketing/pl-overview.html#funding-model\" target=\"_blank\">Funding Models</a>. | - **COST_PER_SALE**: This enum value indicates that the Promoted Listing fee is calculated by multiplying the <b>bidPercentage</b> by the final sales price of a transaction. - **COST_PER_CLICK**: This enum value indicates that the Promoted Listing fee is calculated on a Cost Per Click (CPC) basis.",
        "enum": [
          "COST_PER_SALE",
          "COST_PER_CLICK"
        ]
      },
      "FundingStrategy": {
        "type": "object",
        "required": [
          "fundingModel"
        ],
        "properties": {
          "adRateStrategy": {
            "description": "This field is used to set the ad rate strategy for a Cost Per Sale (CPS) campaign.<br><br>The default value for this field is <code>FIXED</code>. If this field is omitted, the default value will be used.<br><br><span class=\"tablenote\"><b>Note:</b> This field is not applicable for Cost Per Click (CPC) or offsite campaigns.</span>",
            "$ref": "#/components/schemas/AdRateStrategyEnum"
          },
          "biddingStrategy": {
            "description": "Indicates the bidding strategy for an onsite Cost Per Click (CPC) campaign that uses manual targeting.<br><br><span class=\"tablenote\"><b>Note:</b> This field is not applicable for smart targeting campaigns.</span><br>Valid values are:<ul><li><code>FIXED</code><br><br>When using a fixed bidding strategy, sellers manually assign and adjust keyword bids for the CPC campaign.</li><li><code>DYNAMIC</code><br><br>When using a dynamic bidding strategy, eBay manages the campaign's keyword bids and automatically updates them daily to the suggested bid.<br><br><span class=\"tablenote\"><b>Note:</b> For a CPC campaign using dynamic bidding, sellers can continue to manually add keywords for the campaign, but they are no longer able to manually adjust their associated bid values. In order to manually adjust bid values, sellers must use the <code>FIXED</code> bidding strategy.</span></li></ul><br><b>Default value:</b> FIXED",
            "$ref": "#/components/schemas/BiddingStrategyEnum"
          },
          "bidPercentage": {
            "type": "string",
            "description": "The user-defined <b>bid percentage</b> (also known as the <i>ad rate</i>) sets the level that eBay increases the visibility in search results for the associated listing. The higher the <b>bidPercentage</b> value, the more eBay promotes the listing.  <br><br>The value specified here is also used to calculate the Promoted Listings fee. This percentage value is multiplied by the final sales price to determine the fee. <br><br>The Promoted Listings fee is determined at the time the transaction completes and the seller is assessed the fee only when an item sells through a Promoted Listings ad campaign. <br><br>The <b>bidPercentage</b> is a single precision value that is guided by the following rules: <ul><li>These values are <b>valid</b>:<br>&nbsp;&nbsp;&nbsp;<code>4.1</code>, &nbsp;&nbsp;&nbsp;<code>5.0</code>, &nbsp;&nbsp;&nbsp;<code>5.5</code>, ...</li>  <li>These values are <b>not valid</b>:<br /> &nbsp;&nbsp;&nbsp;<code>0.01</code>, &nbsp;&nbsp;&nbsp;<code>10.75</code>, &nbsp;&nbsp;&nbsp;<code>99.99</code>,<br /> &nbsp;&nbsp;&nbsp;and so on.</li></ul>This is the default bid percentage for the campaigns using the Cost Per Sale (CPS) funding model, and this value will be overridden by any ads in the campaign that have their own set bid percentages.<br /><br />If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign.<br /><br /><span class=\"tablenote\"><b>Note:</b>This field is only relevant for campaigns that use the CPS funding model and a fixed ad rate. It is not used for campaigns that use the Cost Per Click (CPC) funding model and should not be provided when the selected adRateStrategy for the campaign is dynamic.</span><br><br><span class=\"tablenote\"><b>Note:</b> This field has a minimum value of <code>2.0</code> and a maximum value of <code>100.0</code>.</span>"
          },
          "bidPreferences": {
            "type": "array",
            "description": "This container indicates the bidding preferences of the campaign, such as the maximum CPC amount.<br><br><span class=\"tablenote\"><b>Note:</b> This container is only applicable for smart targeting campaigns.</span><br>This container is required if the user wants to create a Smart Targeting campaign.",
            "items": {
              "$ref": "#/components/schemas/BidPreference"
            }
          },
          "dynamicAdRatePreferences": {
            "type": "array",
            "description": "A field that indicates whether a single, user-defined bid percentage (also known as the <i>ad rate</i>) should be used, or whether eBay should automatically adjust listings to maintain the daily suggested bid percentage.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> Dynamic adjustment is only applicable when the <b>adRateStrategy</b> is set to <code>DYNAMIC</code> This field is not applicable for offsite campaigns.</span><br /><b>Default:</b> <code>FIXED</code>",
            "items": {
              "$ref": "#/components/schemas/DynamicAdRatePreference"
            }
          },
          "fundingModel": {
            "description": "Indicates the model that eBay uses to calculate the Promoted Listings fee. <p>For a description of the funding model types, refer to <b>FundingModelTypeEnum</b>.",
            "$ref": "#/components/schemas/FundingModelEnum"
          }
        },
        "description": "This type defines how the Promoted Listings fee is calculated for a Promoted Listings ad campaign."
      },
      "GetEmailCampaignAudiencesResponse": {
        "type": "object",
        "description": "This type defines the response payload for the <b>getAudiences</b> method.",
        "required": [
          "audiences",
          "href",
          "limit",
          "offset",
          "total"
        ],
        "properties": {
          "audiences": {
            "type": "array",
            "description": "An array of audiences available for the specified email campaign type. If no audiences are available, the result will return an empty array.",
            "items": {
              "$ref": "#/components/schemas/CampaignAudience"
            }
          },
          "href": {
            "type": "string",
            "description": "The URL to the current page of store email campaign audiences."
          },
          "limit": {
            "type": "integer",
            "description": "The value of the limit parameter submitted in the request, which is the maximum number of store email campaign audiences to return on a page from the result set.",
            "format": "int32"
          },
          "next": {
            "type": "string",
            "description": "The URI for the next page of results. This value is returned if there is an additional page of results to return from the result set."
          },
          "offset": {
            "type": "integer",
            "description": "This value indicates the offset used for the current page of store email campaign audiences returned.",
            "format": "int32"
          },
          "prev": {
            "type": "string",
            "description": "The URI for the previous page of results. This is returned if there is a previous page of results from the result set."
          },
          "total": {
            "type": "integer",
            "description": "The total number of available audiences returned under the query conditions.",
            "format": "int32"
          }
        }
      },
      "GetEmailCampaignResponse": {
        "type": "object",
        "description": "This type defines the response payload for the <b>getEmailCampaign</b> method.",
        "required": [
          "audiences",
          "creationDate",
          "emailCampaignId",
          "emailCampaignStatus",
          "emailCampaignType",
          "itemIds",
          "itemSelectMode",
          "marketplaceId",
          "personalizedMessage",
          "subject"
        ],
        "properties": {
          "audiences": {
            "type": "array",
            "description": "An array of one or more audiences associated with the email campaign.",
            "items": {
              "$ref": "#/components/schemas/CampaignAudience"
            }
          },
          "categoryId": {
            "type": "string",
            "description": "The unique identifier of an eBay category or an eBay store category. This field is returned if a seller has applied the email campaign to a specific category.<br><br>The <b>categoryType</b> value will indicate if the category ID is for an eBay category or an eBay store category."
          },
          "categoryType": {
            "description": "The enumeration value returned here indicates if the <b>categoryId</b> value is the identifier of an eBay category or an eBay store category.<br><br>This field is returned if a seller has applied the email campaign to a specific category.",
            "$ref": "#/components/schemas/CategoryTypeEnum"
          },
          "creationDate": {
            "type": "string",
            "description": "The date and time that the email campaign was created, given in UTC format."
          },
          "emailCampaignId": {
            "type": "string",
            "description": "The unique identifier of the email campaign."
          },
          "emailCampaignStatus": {
            "description": "The email campaign status. See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.emailcampaignstatusenum\">EmailCampaignStatusEnum</a> for a list of valid statuses.",
            "$ref": "#/components/schemas/EmailCampaignStatusEnum"
          },
          "emailCampaignType": {
            "description": "The email campaign type. See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.campaigntypeenum\">CampaignTypeEnum</a> for valid email campaign types.",
            "$ref": "#/components/schemas/CampaignTypeEnum"
          },
          "itemIds": {
            "type": "array",
            "description": "The listing IDs of the items that were manually added to the email campaign.<br><br>Only listings added manually by the seller are returned. Returns a null array if no listings were added.",
            "items": {
              "type": "string"
            }
          },
          "itemSelectMode": {
            "description": "The mode used to select the items listed in the email campaign.",
            "$ref": "#/components/schemas/ItemSelectModeEnum"
          },
          "marketplaceId": {
            "type": "string",
            "description": "The eBay marketplace where the email campaign is active. See <b>MarketplaceIdEnum</b> for a list of marketplace IDs."
          },
          "modificationDate": {
            "type": "string",
            "description": "The date and time the email campaign was last modified, given in UTC format."
          },
          "personalizedMessage": {
            "type": "string",
            "description": "The body of the email campaign sent to the audience."
          },
          "priceRange": {
            "description": "The price range and currency set within the email campaign. This container will only return if a price range was set.",
            "$ref": "#/components/schemas/PriceRange"
          },
          "promotionId": {
            "type": "string",
            "description": "The ID of the discount that was assigned to the email campaign."
          },
          "promotionSelectMode": {
            "description": "Indicates whether the listings that the discount was applied to were selected manually or automatically.<br><br>This field will only return if a discount was applied.",
            "$ref": "#/components/schemas/PromotionSelectModeEnum"
          },
          "scheduleDate": {
            "type": "string",
            "description": "The date and time that the email campaign newsletter is scheduled to send, given in UTC format. This field is only returned if the seller set the start of the email campaign to a date in the future."
          },
          "scheduleDateType": {
            "description": "The schedule type of the email campaign. See <b>ScheduleDateTypeEnum</b>.",
            "$ref": "#/components/schemas/ScheduleDateTypeEnum"
          },
          "sentDate": {
            "type": "string",
            "description": "The date and time that the email campaign was sent, given in UTC format."
          },
          "sort": {
            "description": "The sort rule is used to display the items in the email campaign. If no sort rule was selected, the default will be <code>NEWLY_LISTED</code>.",
            "$ref": "#/components/schemas/ItemSortEnum"
          },
          "subject": {
            "type": "string",
            "description": "The email campaign subject."
          }
        }
      },
      "GetEmailCampaignsResponse": {
        "type": "object",
        "description": "This type defines the response payload of the <b>getEmailCampaigns</b> method.",
        "required": [
          "campaigns",
          "href",
          "limit",
          "offset",
          "total"
        ],
        "properties": {
          "campaigns": {
            "type": "array",
            "description": "A list of email campaigns that match the search criteria.",
            "items": {
              "$ref": "#/components/schemas/CampaignDTO"
            }
          },
          "href": {
            "type": "string",
            "description": "The URL to the current page of store email campaigns."
          },
          "limit": {
            "type": "integer",
            "description": "The value of the limit parameter submitted in the request, which is the maximum number of store email campaigns to return on a page from the result set.",
            "format": "int32"
          },
          "next": {
            "type": "string",
            "description": "The URI for the next page of results. This value is returned if there is an additional page of results to return from the result set."
          },
          "offset": {
            "type": "integer",
            "description": "This value indicates the offset used for current page of store email campaigns being returned.",
            "format": "int32"
          },
          "prev": {
            "type": "string",
            "description": "The URI for the previous page of results. This is returned if there is a previous page of results from the result set."
          },
          "total": {
            "type": "integer",
            "description": "Total number of available results returned under the filter criteria submitted in the request.",
            "format": "int32"
          }
        }
      },
      "GetEmailPreviewResponse": {
        "type": "object",
        "description": "This type defines the response payload for the <b>getEmailPreview</b> method.",
        "required": [
          "content",
          "renderDate"
        ],
        "properties": {
          "content": {
            "type": "string",
            "description": "The raw HTML code of the email campaign contents. The client side can use this HTML output directly.<br><br>Because the contents of an email campaign are subject to change, these contents are a \"snapshot\" of the email campaign at a specific time and date, indicated by the <b>renderDate</b> field."
          },
          "renderDate": {
            "type": "string",
            "description": "The date and time when a \"snapshot\" of the email campaign contents contained in the <b>content</b> result was taken. Given in UTC format."
          }
        }
      },
      "GetEmailReportResponse": {
        "type": "object",
        "description": "This type defines the response payload for the <b>getEmailReport</b> method.",
        "required": [
          "clickCount",
          "openCount",
          "totalSales"
        ],
        "properties": {
          "clickCount": {
            "type": "integer",
            "description": "The number of item listing links clicked from the body of campaign emails for the time range specified by the query.",
            "format": "int32"
          },
          "openCount": {
            "type": "integer",
            "description": "The total email opened count for all email campaigns from a seller for the time range specified by the query.",
            "format": "int32"
          },
          "totalSales": {
            "description": "A seller's total sale amount for the time range specified by the query.",
            "$ref": "#/components/schemas/Amount"
          }
        }
      },
      "InventoryCriterion": {
        "type": "object",
        "required": [
          "inventoryCriterionType"
        ],
        "properties": {
          "inventoryCriterionType": {
            "description": "Indicates how the items to be discounted are selected. You can include inventory by ID, using rules, or globally include all your inventory. ",
            "$ref": "#/components/schemas/InventoryCriterionEnum"
          },
          "inventoryItems": {
            "type": "array",
            "description": "An array of containers for the seller's inventory reference IDs (also known as an \"SKU\" or \"custom label\") to be added to the discount.<br><p class=\"tablenote\"><b>Note:</b> The request can have either <b>inventoryItems</b> or <b>listingIds</b>, but not both.</p><br><b>Maximum:</b> 2000 parent items <br><br><b>Maximum SKU or custom label length:</b> 50 characters <br><br><i>Required if</i> <b>InventoryCriterionType</b> is set to <code>INVENTORY_BY_VALUE</code>, you must specify either <b>inventoryItems</b> or <b>listingIds</b>.",
            "items": {
              "$ref": "#/components/schemas/InventoryItem"
            }
          },
          "listingIds": {
            "type": "array",
            "description": "An array of eBay listing IDs to be discounted. <br><p class=\"tablenote\"><b>Note:</b> The request can have either <b>inventoryItems</b> or <b>listingIds</b>, but not both.</p>  <br><b>Required:</b> All listings being discounted must offer an electronic payment method.<br><br><b>Maximum:</b> 2000 parent items <br><br><b>Maximum SKU or custom label length:</b> 50 characters <br><br><i>Required if</i> <b>InventoryCriterionType</b> is set to <code>INVENTORY_BY_VALUE</code>, you must specify either <b>inventoryItems</b> or <b>listingIds</b>.",
            "items": {
              "type": "string"
            }
          },
          "ruleCriteria": {
            "description": "This container defines a set of inventory selection rules for a discount.  <br><br>When defining rule criteria, you must limit item exclusions to 100 IDs when you choose from live inventory.  <br><br>Required if  <b>InventoryCriterionEnum</b> is set to <code>INVENTORY_BY_RULE</code> or <code>INVENTORY_ANY</code>.",
            "$ref": "#/components/schemas/RuleCriteria"
          }
        },
        "description": "This type defines either the selections rules or the list of listing IDs for the discount. The \"listing IDs\" are either the seller's item IDs or the eBay listing IDs."
      },
      "InventoryCriterionEnum": {
        "type": "object",
        "description": "This enumerated type defines the values that represent the inventory selection method for a discount. | - **INVENTORY_BY_RULE**: Indicates the discount inventory selection is based on rules and item aspects such as item condition or brand.<br><br><span class=\"tablenote\"><b>Note:</b> If <b>inventoryCriterionType</b> is set to this value, the request payload must have at least one rule in <b>ruleCriteria</b>.</span> - **INVENTORY_BY_VALUE**: Indicates the discount inventory selection is either a list of the seller's inventory reference IDs (also known as an \"SKU\" or \"custom label\") or eBay listing IDs.<br><br><span class=\"tablenote\"><b>Note:</b> If <b>inventoryCriterionType</b> is set to this value, the request payload must have at least one listing ID in <b>listingIds</b> or <b>inventoryItems</b>.</span> - **INVENTORY_ANY**: Indicates all the seller's inventory is discounted.<br><br><span class=\"tablenote\"><b>Note:</b> If <b>inventoryCriterionType</b> is set to this value, include an inventory selection rule. In the request payload, use <b>ruleCriteria</b> that contains criteria or <code>null</code>.</span>",
        "enum": [
          "INVENTORY_BY_RULE",
          "INVENTORY_BY_VALUE",
          "INVENTORY_ANY"
        ]
      },
      "InventoryItem": {
        "type": "object",
        "properties": {
          "inventoryReferenceId": {
            "type": "string",
            "description": "The unique identifier of a single-item listing or a multi-variation listing.<br><br>To create an ad for a single-item listing, set the <b>inventoryReferenceType</b> value to <code>INVENTORY_ITEM</code> and specify and item ID or a SKU (if the SKU is defined in the listing)<br><br>To create an ad for a multi-variation listing, set the <b>inventoryReferenceType</b> value to <code>INVENTORY_ITEM_GROUP</code> and specify the item ID for the multi-variation listing or the <b>inventoryitemGroupKey</b> value as defined in the Inventory API."
          },
          "inventoryReferenceType": {
            "description": "Indicates the type of the <b>inventoryReferenceId</b>, which can be either <code>INVENTORY_ITEM</code> or <code>INVENTORY_ITEM_GROUP</code>. <br><br><b>Note:</b> This value is not currently returned in the response.",
            "$ref": "#/components/schemas/InventoryReferenceTypeEnum"
          }
        },
        "description": "This type defines the fields for the seller inventory reference IDs (also known as an \"SKU\" or \"custom label\")."
      },
      "InventoryReference": {
        "type": "object",
        "properties": {
          "inventoryReferenceId": {
            "type": "string",
            "description": "The unique identifier of a single-item listing or a multi-variation listing.<br><br>To create an ad for a single-item listing, set the <b>inventoryReferenceType</b> value to <code>INVENTORY_ITEM</code> and specify an item ID or a SKU (if the SKU is defined in the listing).<br><br>To create an ad for a multi-variation listing, set the <b>inventoryReferenceType</b> value to <code>INVENTORY_ITEM_GROUP</code> and specify the item ID for the multi-variation listing or the <b>inventoryitemGroupKey</b> value as defined in the Inventory API.<br><br><i>Required if </i> if you supply an <b>inventoryReferenceType</b>."
          },
          "inventoryReferenceType": {
            "description": "Indicates the type of item indicated by the <b>inventoryReferenceId</b>.<br><br>This value can be set to either <code>INVENTORY_ITEM</code> or <code>INVENTORY_ITEM_GROUP</code>.<br><br><i>Required if </i> if you supply an <b>inventoryReferenceId</b>.",
            "$ref": "#/components/schemas/InventoryReferenceTypeEnum"
          }
        },
        "description": "This complex type is used to identify an item that is managed by the Inventory API. The type defines the fields contained in an inventory reference ID."
      },
      "InventoryReferenceTypeEnum": {
        "type": "string",
        "description": "An enumerated type defining the type of the seller's inventory reference ID. When specifying an inventory item, you must always specify both <b>inventoryReferenceId</b> and <b>inventoryReferenceType</b>. | - **INVENTORY_ITEM**: This enum value is used if you want to identify a single-item listing by its item ID or SKU. - **INVENTORY_ITEM_GROUP**: This enum value is used if you want to identify a multi-variation listing by its item ID or <b>inventoryItemGroupKey</b> as defined in the Inventory API.",
        "enum": [
          "INVENTORY_ITEM",
          "INVENTORY_ITEM_GROUP"
        ]
      },
      "ItemBasis": {
        "type": "object",
        "required": [
          "estimatedValue",
          "metric"
        ],
        "properties": {
          "estimatedValue": {
            "type": "integer",
            "description": "The estimated value of the search impressions for items based on the provided dimensions. <br /><br /><b>Duration:</b> 17 days<br /><br /><b>Total slots:</b> 200 <br /><br /><b>Channel:</b> Dweb, Mweb, Native",
            "format": "int32"
          },
          "metric": {
            "description": "The basis of the statistics.",
            "$ref": "#/components/schemas/TargetingMetricsEnum"
          }
        },
        "description": "This type defines the details regarding the basis for an item."
      },
      "ItemMarkdownStatus": {
        "type": "object",
        "properties": {
          "listingMarkdownStatus": {
            "description": "Indicates the state assigned to the markdown discount using one of the <b>status</b> values.",
            "$ref": "#/components/schemas/ItemMarkdownStatusEnum"
          },
          "statusChangedDate": {
            "type": "string",
            "description": "Identifies the date the last time the state of the discount changed. Both both markdown and markup events can trigger a status change."
          },
          "statusMessage": {
            "type": "string",
            "description": "An eBay-assigned text string that describes the status of the discount."
          }
        },
        "description": "This type defines the status of a markdown discount."
      },
      "ItemMarkdownStatusEnum": {
        "description": "This enumerated type defines the item markdown status of a discount. | - **PENDING**: Indicates the system is still processing the item price markdown discount request. - **MARKED_DOWN**: Indicates item price markdown discount request succeeded and the discount has been scheduled. - **MARKED_UP**: Indicates the item is no longer in the markdown discount and the price has been \"marked up\" to its standard price. - **SKIPPED**: Indicates item price markdown discount has been skipped. - **FAILED**: Indicates item price markdown discount request failed. Check the configuration of your discount and resubmit the request.",
        "type": "object",
        "enum": [
          "PENDING",
          "MARKED_DOWN",
          "MARKED_UP",
          "SKIPPED",
          "FAILED"
        ]
      },
      "ItemPriceMarkdown": {
        "type": "object",
        "required": [
          "description",
          "endDate",
          "marketplaceId",
          "name",
          "promotionStatus",
          "selectedInventoryDiscounts",
          "startDate"
        ],
        "properties": {
          "applyFreeShipping": {
            "type": "boolean",
            "description": "If set to <code>true</code>, free shipping is applied to the first shipping service specified for the item. The first domestic shipping option is set to \"free shipping,\" regardless if the shipping <b>optionType</b> for that service is set to <code>FLAT_RATE</code>, <code>CALCULATED</code>, or <code>NOT_SPECIFIED</code> (freight). This flag essentially adds free shipping as a part of the discount. <br><br><b>Default:</b> <code>false</code>"
          },
          "autoSelectFutureInventory": {
            "type": "boolean",
            "description": "If set to <code>true</code>, eBay will automatically add inventory items to the markdown discount if they meet the <b>selectedInventoryDiscounts</b> criteria specified for the markdown discount.  <br><br><b>Default:</b> <code>false</code>"
          },
          "blockPriceIncreaseInItemRevision": {
            "type": "boolean",
            "description": "If set to <code>true</code>, price increases (including removing the free shipping flag) are blocked and an error message is returned if a seller attempts to adjust the price of an item that's partaking in this markdown discount. If set to <code>false</code>, an item is dropped from the markdown discount if the seller adjusts the price.  <br><br><b>Default:</b> <code>false</code>"
          },
          "description": {
            "type": "string",
            "description": "This field is required if you are configuring an MARKDOWN_SALE discount. <br><br>This is the seller-defined \"tag line\" for the offer, such as \"Save on designer shoes.\" A tag line appears under the \"offer-type text\" that is generated for the discount. The text is displayed on the offer tile that is shown on the seller's <b>All Offers</b> page and on the event page for the discount.  <p class=\"tablenote\"><b>Note:</b> 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&mdash;it's derived from the settings in the <b>discountRules</b> and <b>discountSpecification</b> fields&mdash;and can be, for example, \"20% off\".</p>  <br><b>Maximum length:</b> 50"
          },
          "endDate": {
            "type": "string",
            "description": "The date and time the discount ends, in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). The value supplied for <b>endDate</b> must be at least 24 hours after the value supplied for the <b>startDate</b> of the markdown discount.<br><br>For display purposes, convert this time into the local time of the seller.  <br><br><b>Max value:</b><ul><li><code>14</code> days for the AT, CH, DE, ES, FR, IE, IT, and UK, marketplaces.</li>  <li><code>45</code> days for all other marketplaces.</li></ul>"
          },
          "marketplaceId": {
            "description": "The eBay marketplace ID of the site where the markdown discount is hosted. Markdown discounts are supported on all eBay marketplaces.",
            "$ref": "#/components/schemas/MarketplaceIdEnum"
          },
          "name": {
            "type": "string",
            "description": "The seller-defined name or 'title' of the discount that the seller can use to identify a discount. This label is not displayed in end-user flows.  <br><br><b>Maximum length:</b> 90"
          },
          "priority": {
            "description": "This field is ignored in markdown discounts.",
            "$ref": "#/components/schemas/PromotionPriorityEnum"
          },
          "promotionImageUrl": {
            "type": "string",
            "description": "Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT discounts, populate this field with a URL that points to an image to be used with the discount. This image is displayed on the seller's <b>All Offers</b> 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": {
            "description": "The current status of the discount. When creating a new discount, you must set this value to either <code>DRAFT</code> or <code>SCHEDULED</code>.  <br><br>Note that you must set this value to <code>SCHEDULED</code> when you update a <b>RUNNING</b> discount.",
            "$ref": "#/components/schemas/PromotionStatusEnum"
          },
          "selectedInventoryDiscounts": {
            "type": "array",
            "description": "A list that defines the sets of selected items for the markdown discount.",
            "items": {
              "$ref": "#/components/schemas/SelectedInventoryDiscount"
            }
          },
          "startDate": {
            "type": "string",
            "description": "The date and time the discount starts in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller."
          }
        },
        "description": "This type defines the fields used to describe an item price markdown discount."
      },
      "ItemPromotion": {
        "type": "object",
        "required": [
          "discountRules",
          "endDate",
          "inventoryCriterion",
          "marketplaceId",
          "name",
          "promotionStatus",
          "startDate"
        ],
        "properties": {
          "applyDiscountToSingleItemOnly": {
            "type": "boolean",
            "description": "This flag is relevant only when <b>promotionType</b> is set to <code>VOLUME_DISCOUNT</code>. For details on volume pricing discounts, see <a href=\"/api-docs/sell/static/marketing/pm-volume-discounts.html\" target=\"_blank\">Configuring volume pricing discounts</a>.  <br><br>If set to <code>true</code>, the discount is applied only when the buyer purchases multiple quantities of a single item that is being discounted. Otherwise, the discount applies to multiple quantities of any the items being discounted. Different variations of a multi-variation item are considered to be the same item. Note that this flag is not relevant if the <b>inventoryCriterion</b> container identifies a single listing ID for the discount."
          },
          "budget": {
            "description": "This sets the budget for the <code>CODED_COUPON</code> discount type. Supported values range from 100-1000000. Supported currency codes include USD, GBP, EUR, and AUD. <p class=\"tablenote\"><b>Note:</b> The budget value for an active or paused discount can not be decreased.</p> <p class=\"tablenote\"><b>Note:</b> The Currency Code for 'budget' must be the same as the Currency Code for 'maxDiscountAmount'.</p>",
            "$ref": "#/components/schemas/Amount"
          },
          "couponConfiguration": {
            "description": "The configuration of a coded coupon discount.",
            "$ref": "#/components/schemas/CouponConfiguration"
          },
          "description": {
            "type": "string",
            "description": "This is the seller-defined \"tag line\" for the offer, such as \"Save on designer shoes.\"  <br><br>The tag line appears under the \"offer-type text\" that is generated for the discount and is displayed on the offer tile that's shown on the seller's <b>All Offers</b> page, and on the event page for the discount.  <p class=\"tablenote\"><b>Note:</b> 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&mdash;it's derived from the settings in the <b>discountRules</b> and <b>discountSpecification</b> fields&mdash;and can be, for example, \"Extra 20% off when you buy 3+\".</p>  <br><b>Maximum length:</b> 50 <br><br><i>Required if</i> you are configuring CODED_COUPON, ORDER_DISCOUNT, or MARKDOWN_SALE discounts (and not valid for VOLUME_DISCOUNT discounts)."
          },
          "discountRules": {
            "type": "array",
            "description": "This container defines a discount using the following two required fields: <ul><li><b>discountBenefit</b> &ndash; Defines a discount as either a monetary amount or a percentage that is subtracted from the sales price of an item, a set of items, or an order.</li>  <li><b>discountSpecification</b> &ndash; Defines a set of rules that determine when the discount is applied.</li></ul> <p class=\"tablenote\"><b>Note:</b> For volume pricing, you must specify at least two and not more than four <b>discountBenefit</b>/<b>discountSpecification</b> pairs. In addition, you must define each set of rules with a <b>ruleOrder</b> value that corresponds with the order of volume discounts you present.</p>  <p><b>Tip:</b> Refer to <a href=\"/api-docs/sell/static/marketing/pm-specifying-discounts.html\" target=\"_blank\">Specifying item discounts</a> for information and examples on how to combine <b>discountBenefit</b> and <b>discountSpecification</b> to create different types of discounts.</p>",
            "items": {
              "$ref": "#/components/schemas/DiscountRule"
            }
          },
          "endDate": {
            "type": "string",
            "description": "The date and time the discount ends in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller."
          },
          "inventoryCriterion": {
            "description": "A container that defines either the listing IDs or the selection rules that specify the items to be discounted. Listing IDs can be either eBay listing IDs or a list of the seller's inventory reference IDs (know as SKUs or custom labels). See the <b>selectionRules</b> container for the rule criteria you can use to select inventory.  <p class=\"tablenote\"><b>Note:</b> All listings in Discounts Manager discounts must support an electronic payment method.</p>",
            "$ref": "#/components/schemas/InventoryCriterion"
          },
          "marketplaceId": {
            "description": "The eBay marketplace ID of the site where the threshold discount is hosted. Threshold discounts are currently supported on a limited number of eBay marketplaces.  <p><b>Valid values:</b></p>  <ul><li><code>EBAY_AU</code> = Australia</li> <li><code>EBAY_DE</code> = Germany</li> <li><code>EBAY_ES</code> = Spain</li> <li><code>EBAY_FR</code> = France</li> <li><code>EBAY_GB</code> = Great Britain</li> <li><code>EBAY_IT</code> = Italy</li> <li><code>EBAY_US</code> = United States</li></ul>",
            "$ref": "#/components/schemas/MarketplaceIdEnum"
          },
          "name": {
            "type": "string",
            "description": "The seller-defined name or \"title\" of the discount that the seller can use to identify a discounts. This label is not displayed in end-user flows.  <br><br><b>Maximum length:</b> 90"
          },
          "priority": {
            "description": "Applicable for only <b>ORDER_DISCOUNT</b> discounts, this field indicates the precedence of the discounts, which is used to determine the position of a discount on the seller's <b>All Offers</b> page. If an item is associated with multiple discounts, the discount with the higher priority takes precedence.",
            "$ref": "#/components/schemas/PromotionPriorityEnum"
          },
          "promotionImageUrl": {
            "type": "string",
            "description": "Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT discounts, and not valid for VOLUME_DISCOUNT discounts.  <br><br>Populate this field with a URL that points to an image to be used with the discount. This image is displayed on the seller's <b>All Offers</b> 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": {
            "description": "The current status of the discount. When creating a new discount, this value must be set to either <code>DRAFT</code> or <code>SCHEDULED</code>.  <br><br>Note that you must set this value to <code>SCHEDULED</code> when you update a <b>RUNNING</b> discount.",
            "$ref": "#/components/schemas/PromotionStatusEnum"
          },
          "promotionType": {
            "description": "Use this field to specify the type of the discount you are creating. <p>The supported types are:</p> <ul><li><code>CODED_COUPON</code> &ndash; A coupon code discount set with <b>createItemPromotion</b>.</li> <li><code>MARKDOWN_SALE</code> &ndash; A markdown discount set with <b>createItemPriceMarkdownPromotion</b>.</li> <li><code>ORDER_DISCOUNT</code> &ndash; A threshold discount set with <b>createItemPromotion</b>.</li> <li><code>VOLUME_DISCOUNT</code> &ndash; A volume pricing discount set with <b>createItemPromotion</b>.</li></ul> <p>See the <a href=\"/api-docs/sell/static/marketing/promotions-manager.html\" target=\"_blank\">Discounts Manager</a> documentation for details.</p> <p><i>Required if </i> you are creating a volume pricing discount (<code>VOLUME_DISCOUNT</code>).</p>",
            "$ref": "#/components/schemas/PromotionTypeEnum"
          },
          "startDate": {
            "type": "string",
            "description": "The date and time the discount starts in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller."
          }
        },
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This type defines the fields that describe a threshold discount and includes the discount, the items being discounted, and the rules that specify when the discount is applied."
      },
      "ItemPromotionResponse": {
        "type": "object",
        "required": [
          "discountRules",
          "endDate",
          "inventoryCriterion",
          "inventoryCriterion",
          "marketplaceId",
          "name",
          "promotionId",
          "promotionStatus",
          "startDate"
        ],
        "properties": {
          "applyDiscountToSingleItemOnly": {
            "type": "boolean",
            "description": "If set to <code>true</code>, the discount is applied only when the buyer purchases multiple quantities of a single item being discounted. Otherwise, the discount applies to multiple quantities of any items being discounted. Different variations of a multi-variation item are considered to be the same item. Note that this flag is not relevant if the <b>inventoryCriterion</b> container identifies a single listing ID for the discount."
          },
          "budget": {
            "description": "This sets the budget for the <code>CODED_COUPON</code> discount type. Supported values range from 100-1000000. Supported currency codes include USD, GBP, EUR, and AUD. <p class=\"tablenote\"><b>Note:</b> The budget value for an active or paused discount can not be decreased.</p> <p class=\"tablenote\"><b>Note:</b> The Currency Code for 'budget' must be the same as the Currency Code for 'maxDiscountAmount'.</p>",
            "$ref": "#/components/schemas/Amount"
          },
          "couponConfiguration": {
            "description": "The configuration of a coded coupon discount.",
            "$ref": "#/components/schemas/CouponConfiguration"
          },
          "description": {
            "type": "string",
            "description": "Required for CODED_COUPON discounts, this is the seller-defined \"tag line\" for the offer, such as \"Save on designer shoes.\" The tag line appears under the \"offer-type text\" that is generated for the discount and is displayed under the offer tile that is shown on the seller's <b>All Offers</b> page and on the event page for the discount.  This tag line is not used with volume pricing discounts. <p class=\"tablenote\"><b>Note:</b> 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&mdash;it's derived from the settings in the <b>discountRules</b> and <b>discountSpecification</b> fields&mdash;and can be, for example, \"Extra 20% off when you buy 3+\".</p>  <br><b>Maximum length:</b> 50"
          },
          "discountRules": {
            "type": "array",
            "description": "A list containing the discount benefits (<b>discountRule</b>) and the rules that define when the benefit is applied (<b>discountSpecification</b>).",
            "items": {
              "$ref": "#/components/schemas/DiscountRule"
            }
          },
          "endDate": {
            "type": "string",
            "description": "The date and time the discount ends in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller."
          },
          "inventoryCriterion": {
            "description": "Returns either an array of listing IDs or the selection rules used to specify the items being discounted. Listing IDs can be either eBay listing IDs or an array of seller's inventory reference IDs (know as SKUs or custom labels). See the <b>selectionRules</b> container for the rule criteria you can use to select inventory.",
            "$ref": "#/components/schemas/InventoryCriterion"
          },
          "marketplaceId": {
            "description": "The eBay marketplace ID of the site where the threshold discount is hosted. Threshold discounts are currently supported on a limited number of eBay marketplaces.  <p><b>Valid values:</b></p>  <ul class=\"compact\"><li><code>EBAY_AU</code> = Australia</li> <li><code>EBAY_DE</code> = Germany</li> <li><code>EBAY_ES</code> = Spain</li> <li><code>EBAY_FR</code> = France</li> <li><code>EBAY_GB</code> = Great Britain</li> <li><code>EBAY_IT</code> = Italy</li> <li><code>EBAY_US</code> = United States</li></ul>",
            "$ref": "#/components/schemas/MarketplaceIdEnum"
          },
          "name": {
            "type": "string",
            "description": "The seller-defined name or \"title\" of the discount that the seller can use to identify a discount. This label is not displayed in end-user flows.  <br><br><b>Maximum length:</b> 90"
          },
          "priority": {
            "description": "Applicable for only <b>ORDER_DISCOUNT</b> discounts, this field indicates the precedence of the discount, which eBay uses to determine the position of a discount on the seller's <b>All Offers</b> page. If an item is associated with multiple discounts, the discount with the higher priority takes precedence.",
            "$ref": "#/components/schemas/PromotionPriorityEnum"
          },
          "promotionId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for the discount that's generated when the discount is created."
          },
          "promotionImageUrl": {
            "type": "string",
            "description": "Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT discounts, and not applicable for <b>VOLUME_DISCOUNT</b> discounts, this field is a URL that points to an image for the discount. This image is displayed on the seller's <b>All Offers</b> 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": {
            "description": "The current status of the discount. When creating a new discount, this value must be set to either <code>DRAFT</code> or <code>SCHEDULED</code>.",
            "$ref": "#/components/schemas/PromotionStatusEnum"
          },
          "promotionType": {
            "description": "Indicates the type of the discount, either <code>CODED_COUPON</code>, <code>MARKDOWN_SALE</code>, <code>ORDER_DISCOUNT</code>, or <code>VOLUME_DISCOUNT</code>.",
            "$ref": "#/components/schemas/PromotionTypeEnum"
          },
          "startDate": {
            "type": "string",
            "description": "The date and time the discount starts in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller."
          }
        },
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This complex type defines the fields returned for an item (threshold) discount."
      },
      "ItemSelectModeEnum": {
        "type": "object",
        "description": "This enum type determines whether listings featured in an email campaign are selected by the seller or by eBay. | - **AUTO**: Automatic mode. The system will select items automatically based on the specified criteria such as price range and selected category. - **MANUAL**: Manual mode. The user selects eligible items manually and populates <b>itemIds</b> with listing codes.",
        "enum": [
          "AUTO",
          "MANUAL"
        ]
      },
      "ItemSortEnum": {
        "type": "object",
        "description": "This enumerated type specifies the sort rule for displaying listings included in the email campaign. The default sort rule used is <code>NEWLY_LISTED</code>. | - **ENDING_FIRST**: Display items by date ending, with listings ending soonest first. - **HIGHEST_PRICED**: Display items by price, from highest to lowest. - **LOWEST_PRICED**: Display items by price, from lowest to highest. - **NEWLY_LISTED**: Display items by date listed, from newest to oldest.  ",
        "enum": [
          "ENDING_FIRST",
          "HIGHEST_PRICED",
          "LOWEST_PRICED",
          "NEWLY_LISTED"
        ]
      },
      "ItemsPagedCollection": {
        "type": "object",
        "required": [
          "href",
          "limit",
          "listings",
          "offset",
          "total"
        ],
        "properties": {
          "href": {
            "type": "string",
            "description": "The URI of the current page of results from the result set."
          },
          "limit": {
            "type": "integer",
            "description": "The number of items returned on a single page from the result set. This value can be set in the request with the <b>limit</b> query parameter.",
            "format": "int32"
          },
          "listings": {
            "type": "array",
            "description": "An array of the listings associated with a discount.",
            "items": {
              "$ref": "#/components/schemas/ListingDetail"
            }
          },
          "next": {
            "type": "string",
            "description": "The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set. <br><br><b>Max length</b>: 2048"
          },
          "offset": {
            "type": "integer",
            "description": "The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the <b>offset</b> query parameter. <p class=\"tablenote\"><strong>Note: </strong>The items in a paginated result set use a zero-based list where the first item in the list has an offset of <code>0</code>.</p>",
            "format": "int32"
          },
          "prev": {
            "type": "string",
            "description": "The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set. <br><br><b>Max length</b>: 2048"
          },
          "total": {
            "type": "integer",
            "description": "The total number of items retrieved in the result set.  <br><br>If no items are found, this field is returned with a value of <code>0</code>.",
            "format": "int32"
          },
          "warnings": {
            "type": "array",
            "description": "A list of warnings that were generated by the request. Warning do not stop processing, but should be checked to ensure that the response contains the correct information.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          }
        },
        "description": "This type defines the fields for a paginated result set of discounts. The response consists of 0 or more sequenced pages that are returned from the complete <i>result set</i>, where each page consists of 0 or more items."
      },
      "Keyword": {
        "type": "object",
        "required": [
          "adGroupId",
          "keywordStatus",
          "keywordText",
          "matchType"
        ],
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "This field identifies the ad group that the keyword is associated with."
          },
          "bid": {
            "description": "The bid associated with the keyword. This container will not be returned if the keyword does not have a defined bid value.",
            "$ref": "#/components/schemas/Amount"
          },
          "keywordId": {
            "type": "string",
            "description": "The unique identifier of a keyword."
          },
          "keywordStatus": {
            "description": "The status of the keyword.<br /><br /><b>Valid Values:</b><ul><li><code>ACTIVE</code></li><li><code>PAUSED</code></li><li><code>ARCHIVED</code></li></ul>",
            "$ref": "#/components/schemas/KeywordStatusEnum"
          },
          "keywordText": {
            "type": "string",
            "description": "The text of the keyword."
          },
          "matchType": {
            "description": "A field that defines the match type for the keyword.<br /><br /><b>Valid Values:</b><ul><li><code>BROAD</code></li><li><code>EXACT</code></li><li><code>PHRASE</code></li></ul>",
            "$ref": "#/components/schemas/MatchTypeEnum"
          }
        },
        "description": "A type that contains the details for keywords that are associated with an ad group.<br /><br /><span class=\"tablenote\"><b>Note:</b> This type only applies to the Cost Per Click (CPC) funding model; it does not apply to the Cost Per Sale (CPS) funding model.</span>"
      },
      "KeywordPagedCollectionResponse": {
        "type": "object",
        "required": [
          "href",
          "keywords",
          "limit",
          "offset",
          "total"
        ],
        "properties": {
          "href": {
            "type": "string",
            "description": "The URI of the current page of results from the result set."
          },
          "keywords": {
            "type": "array",
            "description": "This array contains all of the keywords that match the request criteria. Keywords will be sorted by adGroupId, regardless of whether you searched for keywords across the entire campaign, or if you searched for keywords within one or specific ad groups.",
            "items": {
              "$ref": "#/components/schemas/Keyword"
            }
          },
          "limit": {
            "type": "integer",
            "description": "The number of keywords returned on a single page from the result set. This value can be set in the request with the <b>limit</b> query parameter.",
            "format": "int32"
          },
          "next": {
            "type": "string",
            "description": "The call URI that can be used to retrieve the next page in the result set. This value is returned only if there is an additional page of results to display from the result set. <br><br><b>Max length</b>: 2048"
          },
          "offset": {
            "type": "integer",
            "description": "The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the <b>offset</b> query parameter. <p class=\"tablenote\"><strong>Note: </strong>The items in a paginated result set use a zero-based list where the first item in the list has an offset of <code>0</code>.</p>",
            "format": "int32"
          },
          "prev": {
            "type": "string",
            "description": "The call URI that can be used to retrieve the previous page in the result set. Basically, all of the request parameters will remain the same except the offset value, which will be decreased to retrieve the previous page of results. <br><br><b>Max length</b>: 2048"
          },
          "total": {
            "type": "integer",
            "description": "The total number of keywords retrieved in the result set.  <br><br>If no keywords are found, this field is returned with a value of <code>0</code>.",
            "format": "int32"
          }
        },
        "description": "A type that defines the keywords of the paged collection."
      },
      "KeywordRequest": {
        "type": "object",
        "required": [
          "keywordText",
          "matchType"
        ],
        "properties": {
          "keywordText": {
            "type": "string",
            "description": "The text of the keyword. Keywords are not case sensitive and compound words can be used without additional encoding (for example, tennis ball).<br><br>You can use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-keyword-getkeywords\">getKeywords</a> method to retrieve keyword values currently associated with the specified ad group.<br /><br /><b>Maximum number of characters: </b>100 <br /><br /><b>Maximum number of words: </b>10 "
          },
          "matchType": {
            "description": "A field that defines the match type for the keyword.<br /><br /><b>Valid Values:</b><ul><li><code>BROAD</code></li><li><code>EXACT</code></li><li><code>PHRASE</code></li></ul>",
            "$ref": "#/components/schemas/MatchTypeEnum"
          }
        },
        "description": "A type that defines the fields used by the <b>keyword</b> requests."
      },
      "KeywordResponse": {
        "type": "object",
        "required": [
          "adGroupId"
        ],
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "The identifier of the ad group that the keyword was added to."
          },
          "errors": {
            "type": "array",
            "description": "This container will be returned if there is an issue creating the corresponding keyword and/or adding that keyword to the corresponding ad group.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          },
          "href": {
            "type": "string",
            "description": "The getKeyword URI for the keyword, which is used to retrieve the keyword. This URI will be returned for each successfully created keyword."
          },
          "keywordId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for a keyword that is generated for an ad group. This keyword ID will be generated for each successfully created keyword."
          },
          "keywordText": {
            "type": "string",
            "description": "The text of the keyword."
          },
          "matchType": {
            "description": "A field that defines the match type for the keyword.<br /><br /><b>Valid Values:</b><ul><li><code>BROAD</code></li><li><code>EXACT</code></li><li><code>PHRASE</code></li></ul>",
            "$ref": "#/components/schemas/MatchTypeEnum"
          },
          "statusCode": {
            "type": "integer",
            "description": "An HTTP status code is returned for each keyword to indicate the success or failure of adding that keyword to the ad group.",
            "format": "int32"
          },
          "warnings": {
            "type": "array",
            "description": "List of warnings associated with this operation",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          }
        },
        "description": "A type that defines the response fields used by the <b>Keyword</b> method."
      },
      "KeywordStatusEnum": {
        "type": "object",
        "description": "An enumerated type that indicates the status of existing keywords. | - **ACTIVE**: This enum value indicates that the keyword is active. - **PAUSED**: This enum value indicates that the keyword is in the paused state. Keywords can be moved back to the active state from the paused state. - **ARCHIVED**: This enum value indicates that the keyword is in the archived state. Keywords cannot be moved back to active state from the archived state. The keyword must be recreated to become active.",
        "enum": [
          "ACTIVE",
          "PAUSED",
          "ARCHIVED"
        ]
      },
      "ListingDetail": {
        "type": "object",
        "required": [
          "currentPrice",
          "freeShipping",
          "title"
        ],
        "properties": {
          "currentPrice": {
            "description": "The container that returns the current price of the listing.",
            "$ref": "#/components/schemas/Amount"
          },
          "freeShipping": {
            "type": "boolean",
            "description": "If set to <code>true</code>, the seller pays for the shipping (or that the item is marked for local pickup only) In this case, the listing does not have an associated shipping cost for the first listed domestic-shipping option (even if the first domestic-shipping option specifies a flat-rate or calculated shipping option). If <code>false</code>, the buyer is required to pay for a flat-rate or calculated cost shipping service."
          },
          "inventoryReferenceId": {
            "type": "string",
            "description": "The seller's inventory reference ID for a listing. Also known as the \"SKU\" or \"custom label,\" an inventory reference ID is either the ID of the listing or, if the listing has variations (such as a shirt that's available in multiple sizes and colors), the ID of the parent listing."
          },
          "inventoryReferenceType": {
            "type": "string",
            "description": "Indicates the type of the <b>inventoryReferenceId</b>, which can be either a single-SKU or a multi-SKU listing (<code>INVENTORY_ITEM</code> and <code>INVENTORY_ITEM_GROUP</code>, respectively).  <br><br><b>Note:</b> This value is not currently returned in the response."
          },
          "listingCategoryId": {
            "type": "string",
            "description": "The ID of the category that listing belongs to. The ID is a numeric and unique identifier for the category that is assigned by eBay."
          },
          "listingCondition": {
            "type": "string",
            "description": "An eBay-assigned value that indicates condition of the associated item. For more information, see <a href=\"/api-docs/sell/static/metadata/condition-id-values.html\" target=\"_blank\">Item condition ID and name values</a>."
          },
          "listingConditionId": {
            "type": "string",
            "description": "The ID of the condition associated with the item. For more information, see <a href=\"/api-docs/sell/static/metadata/condition-id-values.html\" target=\"_blank\">Item condition ID and name values</a>.<br /><br /><span class=\"tablenote\"><b>Note: </b> This value is not currently returned in the response.</span>"
          },
          "listingId": {
            "type": "string",
            "description": "A unique eBay-assigned ID that is generated when the item is listed."
          },
          "listingPromotionStatuses": {
            "type": "array",
            "description": "A list of the status values assigned to the item and the date that each new status was assigned.",
            "items": {
              "$ref": "#/components/schemas/ItemMarkdownStatus"
            }
          },
          "quantity": {
            "type": "integer",
            "description": "The number of items being sold in the listing.",
            "format": "int32"
          },
          "storeCategoryId": {
            "type": "string",
            "description": "Store CategoryId (if any) that to which the listing belongs. This field is blank if there is no seller Store category ID."
          },
          "title": {
            "type": "string",
            "description": "The seller-defined title of the listing that a seller can use to identify the item.  This label is not displayed in end-user flows."
          }
        },
        "description": "This type defines the fields that describe a listing that is in a discount."
      },
      "MarketplaceIdEnum": {
        "type": "string",
        "description": "This enumerated type defines the unique IDs for each of the eBay marketplaces. | - **EBAY_AT**: This enumeration value indicates that the eBay Marketplace is the Austria site (ebay.at). - **EBAY_AU**: This enumeration value indicates that the eBay Marketplace is the Australia site (ebay.com.au). - **EBAY_BE**: This enumeration value indicates that the eBay marketplace is the Belgium (Dutch) site (www.ebay.be). - **EBAY_CA**: This enumeration value indicates that the eBay Marketplace is the Canada (English) site (ebay.ca). - **EBAY_CH**: This enumeration value indicates that the eBay Marketplace is the Switzerland site (ebay.ch). - **EBAY_CN**: Reserved for future use. - **EBAY_CZ**: Reserved for future use. - **EBAY_DE**: This enumeration value indicates that the eBay Marketplace is the Germany site (ebay.de). - **EBAY_DK**: Reserved for future use. - **EBAY_ES**: This enumeration value indicates that the eBay Marketplace is the Spain site (ebay.es). - **EBAY_FI**: Reserved for future use. - **EBAY_FR**: This enumeration value indicates that the eBay Marketplace is the France site (ebay.fr). - **EBAY_GB**: This enumeration value indicates that the eBay Marketplace is the UK site (ebay.co.uk). - **EBAY_GR**: Reserved for future use. - **EBAY_HK**: This enumeration value indicates that the eBay Marketplace is the Hong Kong site (ebay.com.hk). - **EBAY_HU**: Reserved for future use. - **EBAY_ID**: Reserved for future use. - **EBAY_IE**: This enumeration value indicates that the eBay Marketplace is the Ireland site (ebay.ie). - **EBAY_IL**: Reserved for future use. - **EBAY_IN**: This enumeration value indicates that the eBay Marketplace is the India site (ebay.in). Note: eBay India is no longer a functioning eBay marketplace. - **EBAY_IT**: This enumeration value indicates that the eBay Marketplace is the Italy site (ebay.it). - **EBAY_JP**: Reserved for future use. - **EBAY_MY**: This enumeration value indicates that the eBay Marketplace is the Malaysia site (ebay.com/my). - **EBAY_NL**: This enumeration value indicates that the eBay Marketplace is the Netherlands site (ebay.nl). - **EBAY_NO**: Reserved for future use. - **EBAY_NZ**: Reserved for future use. - **EBAY_PE**: Reserved for future use. - **EBAY_PH**: This enumeration value indicates that the eBay Marketplace is the Philippines site (ebay.ph). - **EBAY_PL**: This enumeration value indicates that the eBay Marketplace is the Poland site (ebay.pl). - **EBAY_PR**: Reserved for future use. - **EBAY_PT**: Reserved for future use. - **EBAY_RU**: Reserved for future use. - **EBAY_SE**: Reserved for future use. - **EBAY_SG**: This enumeration value indicates that the eBay Marketplace is the Singapore site (ebay.com/sg). - **EBAY_TH**: This enumeration value indicates that the eBay Marketplace is the Thailand site (export.ebay.co.th). - **EBAY_TW**: This enumeration value indicates that the eBay Marketplace is the Taiwan site (ebay.com/tw). - **EBAY_US**: This enumeration value indicates that the eBay Marketplace is the US site (ebay.com). - **EBAY_VN**: This enumeration value indicates that the eBay Marketplace is the Vietnam site (ebay.vn). - **EBAY_ZA**: Reserved for future use. - **EBAY_HALF_US**: This enumeration value is no longer applicable as the Half.com site no longer exists. - **EBAY_MOTORS_US**: Indicates the parent category for \"Auto Parts and Vehicles\" on the EBAY_US marketplace (https://www.ebay.com/motors).",
        "enum": [
          "EBAY_AT",
          "EBAY_AU",
          "EBAY_BE",
          "EBAY_CA",
          "EBAY_CH",
          "EBAY_CN",
          "EBAY_CZ",
          "EBAY_DE",
          "EBAY_DK",
          "EBAY_ES",
          "EBAY_FI",
          "EBAY_FR",
          "EBAY_GB",
          "EBAY_GR",
          "EBAY_HK",
          "EBAY_HU",
          "EBAY_ID",
          "EBAY_IE",
          "EBAY_IL",
          "EBAY_IN",
          "EBAY_IT",
          "EBAY_JP",
          "EBAY_MY",
          "EBAY_NL",
          "EBAY_NO",
          "EBAY_NZ",
          "EBAY_PE",
          "EBAY_PH",
          "EBAY_PL",
          "EBAY_PR",
          "EBAY_PT",
          "EBAY_RU",
          "EBAY_SE",
          "EBAY_SG",
          "EBAY_TH",
          "EBAY_TW",
          "EBAY_US",
          "EBAY_VN",
          "EBAY_ZA",
          "EBAY_HALF_US",
          "EBAY_MOTORS_US"
        ]
      },
      "MatchTypeEnum": {
        "type": "object",
        "description": "An enumerated type that indicates the accepted match type. | - **BROAD**: This enum value indicates that broad matches are accepted. - **EXACT**: This enum value indicates that only exact matches are accepted. - **PHRASE**: This enum value indicates that phrasal matches are accepted.",
        "enum": [
          "BROAD",
          "EXACT",
          "PHRASE"
        ]
      },
      "MaxCpc": {
        "type": "object",
        "description": "This type defines the max CPC amount for a campaign.",
        "properties": {
          "amount": {
            "description": "The allocated maximum CPC amount for a smart targeting campaign.<br><br>Both the <b>currency</b> and <b>amount</b> must be specified when allocating the Max CPC.",
            "$ref": "#/components/schemas/Amount"
          }
        }
      },
      "MetricEnum": {
        "type": "object",
        "description": "An enumerated type that indicates the metric used to provide additional information about suggested keywords.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> All metric data is compiled for the marketplace associated with the specified campaign ID.</span> | - **ACTIVE_SELLER_COUNT**: This enum value indicates the approximate number of sellers who have bid on the suggested keyword. - **SEARCH_VOLUME**: This enum value indicates the search volume for the suggested keyword.",
        "enum": [
          "ACTIVE_SELLER_COUNT",
          "SEARCH_VOLUME"
        ]
      },
      "MetricMetadata": {
        "type": "object",
        "required": [
          "description",
          "metricKey"
        ],
        "properties": {
          "dataType": {
            "description": "The data type of the returned metric value.",
            "$ref": "#/components/schemas/DataTypeEnum"
          },
          "metricKey": {
            "type": "string",
            "description": "The name of the metric."
          }
        },
        "description": "This type defines the name and data type of a metric."
      },
      "NegativeKeyword": {
        "type": "object",
        "required": [
          "negativeKeywordId",
          "negativeKeywordMatchType",
          "negativeKeywordStatus",
          "negativeKeywordText"
        ],
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "An ad group ID that is generated when an ad group is first created and associated with a campaign.<br /><br /><span class=\"tablenote\"><b>Note:</b> You can call the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups\">getAdGroups</a> method to retrieve the ad group IDs for a seller.</span>"
          },
          "campaignId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for a campaign. This ID is generated when a campaign is created."
          },
          "negativeKeywordId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for a negative keyword. This keyword ID will be generated for each successfully created negative keyword."
          },
          "negativeKeywordMatchType": {
            "description": "A field that defines the match type for the negative keyword.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> Broad matching of negative keywords is not currently supported.</span><br /><b>Valid Values:</b><ul><li><code>EXACT</code></li><li><code>PHRASE</code></li></ul>",
            "$ref": "#/components/schemas/NegativeKeywordMatchTypeEnum"
          },
          "negativeKeywordStatus": {
            "description": "A field that defines the status of the negative keyword.",
            "$ref": "#/components/schemas/NegativeKeywordStatusEnum"
          },
          "negativeKeywordText": {
            "type": "string",
            "description": "The text for the negative keyword."
          }
        },
        "description": "A type that defines the fields for a negative keyword."
      },
      "NegativeKeywordMatchTypeEnum": {
        "type": "object",
        "description": "An enumerated type that indicates the accepted match type for negative keywords. | - **EXACT**: This enum value indicates that only exact matches are accepted. - **PHRASE**: This enum value indicates that phrasal matches are accepted.",
        "enum": [
          "EXACT",
          "PHRASE"
        ]
      },
      "NegativeKeywordPagedCollectionResponse": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string",
            "description": "The URI of the current page of results from the result set."
          },
          "limit": {
            "type": "integer",
            "description": "The number of items returned on a single page from the result set. This value can be set in the request with the <b>limit</b> query parameter.",
            "format": "int32"
          },
          "negativeKeywords": {
            "type": "array",
            "description": "A list of negative keywords returned in the paginated collection.",
            "items": {
              "$ref": "#/components/schemas/NegativeKeyword"
            }
          },
          "next": {
            "type": "string",
            "description": "The call URI that can be used to retrieve the next page in the result set. This value is returned only if there is an additional page of results to display from the result set."
          },
          "offset": {
            "type": "integer",
            "description": "The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the <b>offset</b> query parameter.<br /><br /><b>Default:</b> <code>0</code><br /><br /><span class=\"tablenote\"><b>Note: </b>The items in a paginated result set use a zero-based list, where the first item in the list has an offset of <code>0</code>.</span>",
            "format": "int32"
          },
          "prev": {
            "type": "string",
            "description": "The call URI that can be used to retrieve the previous page in the result set. Basically, all of the request parameters will remain the same except the offset value, which will be decreased to retrieve the previous page of results."
          },
          "total": {
            "type": "integer",
            "description": "The total number of result sets in the paginated collection.",
            "format": "int32"
          }
        },
        "description": "A type that defines the negative keywords, returned in a paged collection."
      },
      "NegativeKeywordResponse": {
        "type": "object",
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "A unique identifier for an ad group that is generated when an ad group is first created and associated with a campaign."
          },
          "campaignId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for a campaign. This ID is generated when a campaign is created."
          },
          "errors": {
            "type": "array",
            "description": "This container will be returned if there is an issue creating the corresponding negative keyword.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          },
          "href": {
            "type": "string",
            "description": "The URI for the negative keyword, which is used to retrieve the negative keyword. This URI will be returned for each successfully created negative keyword."
          },
          "negativeKeywordId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for a negative keyword. This negative keyword ID will be generated for each successfully created negative keyword."
          },
          "negativeKeywordMatchType": {
            "description": "The match type for the negative keyword.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> Broad matching of negative keywords is not currently supported.</span><br /><b>Valid Values:</b><ul><li><code>EXACT</code></li><li><code>PHRASE</code></li></ul>",
            "$ref": "#/components/schemas/NegativeKeywordMatchTypeEnum"
          },
          "negativeKeywordText": {
            "type": "string",
            "description": "The text for the negative keyword."
          },
          "statusCode": {
            "type": "integer",
            "description": "The status of the request to create a negative keyword. This field indicates whether the process was successful or not.",
            "format": "int32"
          }
        },
        "description": "A type that defines the negative keyword response."
      },
      "NegativeKeywordStatusEnum": {
        "type": "object",
        "description": "An enumerated type that defines the status of a request to create a negative keyword. | - **ACTIVE**: This enum value indicates that the negative keyword is active. - **ARCHIVED**: This enum value indicates that the negative keyword is archived. Negative keywords with this status cannot be set to <code>ACTIVE</code> again.",
        "enum": [
          "ACTIVE",
          "ARCHIVED"
        ]
      },
      "PriceRange": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "description": "Specifies the currency of the listings in an email campaign using one of the three-digit codes of the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailreport.currencycodeenum\">CurrencyCodeEnum</a> type."
          },
          "gte": {
            "type": "number",
            "description": "The listings selected will be greater than or equal to this value. The value entered must be given in number format, such as 20.00.<br><br>Either <code>gte</code>, <code>lte</code>, or both must contain a value if the seller wishes to use a price range."
          },
          "lte": {
            "type": "number",
            "description": "The listings selected will be less than or equal to this value. The value entered must be given in number format, such as 100.00.<br><br>Either <code>gte</code>, <code>lte</code>, or both must contain a value if the seller wishes to use a price range."
          }
        },
        "description": "This type defines the price range for the listings in an email campaign."
      },
      "PromotionDetail": {
        "type": "object",
        "required": [
          "couponCode",
          "endDate",
          "marketplaceId",
          "name",
          "promotionHref",
          "promotionId",
          "promotionImageUrl",
          "promotionStatus",
          "promotionType",
          "startDate"
        ],
        "properties": {
          "couponCode": {
            "type": "string",
            "description": "A unique code that buyers can use during checkout to receive a discount. The code must be unique across eBay."
          },
          "description": {
            "type": "string",
            "description": "This is the seller-defined \"tag line\" for the offer, such as \"Save on designer shoes.\" Tag lines appear under the \"offer-type text\" that is generated for a discount and displayed under the offer tile that is shown on the seller's <b>All Offers</b> page and on the discount's event page.  <p class=\"tablenote\"><b>Note:</b> 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&mdash;it's derived from the settings in the <b>discountRules</b> and <b>discountSpecification</b> fields&mdash;and can be, for example, \"Extra 20% off when you buy 3+\".</p>  <br><b>Maximum length:</b> 50 <br><br><i>Required if</i> you are configuring ORDER_DISCOUNT or MARKDOWN_SALE discounts (and not valid for VOLUME_DISCOUNT discounts)."
          },
          "endDate": {
            "type": "string",
            "description": "The date and time the discount ends in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller."
          },
          "marketplaceId": {
            "description": "The eBay marketplace ID of the site where the discount is hosted. Threshold discounts are supported on a select set of marketplaces while markdown discounts are supported on all eBay marketplaces. <p><b>Valid values for threshold discounts are as follows:</b></p>  <ul class=\"compact\"><li><code>EBAY_AU</code> = Australia</li> <li><code>EBAY_DE</code> = Germany</li> <li><code>EBAY_ES</code> = Spain</li> <li><code>EBAY_FR</code> = France</li> <li><code>EBAY_GB</code> = Great Britain</li> <li><code>EBAY_IT</code> = Italy</li> <li><code>EBAY_US</code> = United States</li></ul>",
            "$ref": "#/components/schemas/MarketplaceIdEnum"
          },
          "name": {
            "type": "string",
            "description": "The seller-defined name or \"title\" of the discount, such as \"Buy 1 Get 1\", that the seller can use to identify a discount. This label is not displayed in end-user flows.  <br><br><b>Maximum length:</b> 90"
          },
          "priority": {
            "description": "Applicable for only <b>ORDER_DISCOUNT</b> discount, this field indicates the precedence of the discount, which is used to determine the position of a discount on the seller's <b>All Offers</b> page. If an item is associated with multiple discounts, the discount with the higher priority takes precedence.",
            "$ref": "#/components/schemas/PromotionPriorityEnum"
          },
          "promotionHref": {
            "type": "string",
            "description": "The URI of the discount details."
          },
          "promotionId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for the discount that's generated when the discount is created."
          },
          "promotionImageUrl": {
            "type": "string",
            "description": "Required for <code>CODED_COUPON</code>, <code>MARKDOWN_SALE</code>, and <code>ORDER_DISCOUNT</code> discount, and not applicable for <b>VOLUME_DISCOUNT</b> discounts, this field is a URL that points to an image for the discount. This image is displayed on the seller's <b>All Offers</b> 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": {
            "description": "The current status of the discount. When creating a new discount, you must set this value to either <code>DRAFT</code> or <code>SCHEDULED</code>.",
            "$ref": "#/components/schemas/PromotionStatusEnum"
          },
          "promotionType": {
            "description": "Indicates type of the discount, either <code>CODED_COUPON</code>, <code>MARKDOWN_SALE</code>, <code>ORDER_DISCOUNT</code>, or <code>VOLUME_DISCOUNT</code>.",
            "$ref": "#/components/schemas/PromotionTypeEnum"
          },
          "startDate": {
            "type": "string",
            "description": "The date and time the discount starts in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller."
          }
        },
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This type defines the fields that describe a discount. This includes all the information about a discount except for the listings that are a part of the discount."
      },
      "PromotionPriorityEnum": {
        "type": "object",
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>An enum that defines the values that represent the priority level of a discount, which is used to assign the precedence of a discount on the seller's <b>All Offers</b> page. | - **PRIORITY_1**: Indicates the rule is ranked first in priority. - **PRIORITY_2**: Indicates the rule is ranked second in priority. - **PRIORITY_3**: Indicates the rule is ranked third in priority. - **PRIORITY_4**: Indicates the rule is ranked fourth in priority. - **INVALID**: This is for internal use only for when priority specified in the request is invalid.",
        "enum": [
          "PRIORITY_1",
          "PRIORITY_2",
          "PRIORITY_3",
          "PRIORITY_4",
          "INVALID"
        ]
      },
      "PromotionReportDetail": {
        "type": "object",
        "required": [
          "averageItemDiscount",
          "averageOrderDiscount",
          "averageOrderRevenue",
          "averageOrderRevenue",
          "averageOrderSize",
          "baseSale",
          "itemsSoldQuantity",
          "numberOfOrdersSold",
          "promotionHref",
          "promotionId",
          "promotionSale",
          "promotionType",
          "totalDiscount",
          "totalSale"
        ],
        "properties": {
          "averageItemDiscount": {
            "description": "The <i>average item discount</i> is the average discount that has been applied to each item being discounted. This value is calculated as follows:  <br><br><b>totalDiscount</b> / <b>itemsSoldQuantity</b> = <b>averageItemDiscount</b>",
            "$ref": "#/components/schemas/Amount"
          },
          "averageItemRevenue": {
            "description": "The <i>average item revenue</i> is the average revenue that has been received for each item being discounted.. This value is calculated as follows:  <br><br><b>totalSales</b> / <b>itemsSoldQuantity</b> = <b>averageItemRevenue</b>",
            "$ref": "#/components/schemas/Amount"
          },
          "averageOrderDiscount": {
            "description": "The <i>average order discount</i> is the average discount that has been applied to each order that has an active discount. This value is calculated as follows:  <br><br><b>totalDiscount</b> / <b>numberOfOrdersSold</b> = <b>averageOrderDiscount</b>",
            "$ref": "#/components/schemas/Amount"
          },
          "averageOrderRevenue": {
            "description": "The <i>average order revenue</i> is the average revenue that has been received for each order that has an active discount. This value is calculated as follows:  <br><br><b>totalSales</b> / <b>numberOfOrdersSold</b> = <b>averageOrderRevenue</b>",
            "$ref": "#/components/schemas/Amount"
          },
          "averageOrderSize": {
            "type": "string",
            "description": "The <i>average order size</i> is the average number of items that each order contained that have an active discount. This value is calculated as follows:  <br><br><b>itemsSoldQuantity</b> / <b>numberOfOrdersSold</b> = <b>averageOrderSize</b> "
          },
          "baseSale": {
            "description": "This is the monetary amount of items purchased that have been discounted where the threshold <i>wasn't met</i>, so the discount was not applied.  <br><br>For example, suppose you're running a \"Buy 1, get 1 at 50%\" discount on $5 socks. One buyer purchased only one pair of socks, so they pay the full price of $5. Here, your <b>baseSale</b> amount would be $5.",
            "$ref": "#/components/schemas/Amount"
          },
          "itemsSoldQuantity": {
            "type": "integer",
            "description": "This is the quantity of items purchased in a threshold discount where the threshold <i>has been met</i> and the discount was applied. <br><br>For example, suppose you're running a \"Buy 1, get 1 at 50%\" discount on $5 socks. One buyer purchases two pairs of socks, so they pay $7.50 for both pairs (rather than the full price of $10). Your number of items sold (<b>itemsSoldQuantity</b>) would be 2 and you number of orders sold (<b>numberOfOrdersSold</b>) would be 1.",
            "format": "int32"
          },
          "numberOfOrdersSold": {
            "type": "integer",
            "description": "This is the number of orders sold in a threshold discount where the threshold <i>has been met</i> and the discount was applied. <br><br>For example, suppose you're running a \"Buy 1, get 1 at 50%\" discount on $5 socks. One buyer purchases two pairs of socks, so they pay $7.50 for both pairs (rather than the full price of $10). Your <b>numberOfOrdersSold</b> would be 1 and your <b>itemsSoldQuantity</b> would be 2.",
            "format": "int32"
          },
          "percentageSalesLift": {
            "type": "string",
            "description": "The <i>percentage sales lift</i> is the total dollar amount gained due to discounts. This value is calculated as follows:  <br><br> <b>promotionSale</b> / <b>totalSale</b> =  <b>percentageSalesLift</b> "
          },
          "promotionHref": {
            "type": "string",
            "description": "The URI of the discount report."
          },
          "promotionId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for the discount that's generated when the discount is created."
          },
          "promotionReportId": {
            "type": "string",
            "description": "The unique eBay-assigned ID of the discount report that is generated when the report is created."
          },
          "promotionSale": {
            "description": "This is the monetary amount of the items sold in a threshold discount where the threshold <i>has been met</i> and the discount was applied.  <br><br>For example, suppose you're running a \"Buy 1, get 1 at 50%\" discount on $5 socks. One buyer purchases two pairs of socks, so they pay $7.50 for both pairs (rather than the full price of $10). Your <b>promotionSale</b> amount would be $7.50.",
            "$ref": "#/components/schemas/Amount"
          },
          "promotionType": {
            "description": "Indicates the type of the discount, either <code>CODED_COUPON</code>, <code>MARKDOWN_SALE</code>, <code>ORDER_DISCOUNT</code>, or <code>VOLUME_DISCOUNT</code>.",
            "$ref": "#/components/schemas/PromotionTypeEnum"
          },
          "totalDiscount": {
            "description": "This is the monetary discount amount applied to the sale of items in a threshold discount where the threshold <i>has been met</i> and the discount was applied.  <br><br>For example, suppose you're running a \"Buy 1, get 1 at 50%\" discount on $5 socks. One buyer purchases two pairs of socks, so they pay $7.50 for both pairs (rather than the full price of $10). Your <b>totalDiscount</b> amount would be $2.50.",
            "$ref": "#/components/schemas/Amount"
          },
          "totalSale": {
            "description": "This is the total monetary sales amount of all items sold that were discounted. <br><br>For example, suppose you're running a \"Buy 1, get 1 at 50%\" discount on $5 socks. You make one sale where the buyer purchases only one pair of socks and they pay the full price of $5 (<b>baseSale</b>). You make a second sale where the buyer purchases two pairs of socks and they pay $7.50, for both pairs (<b>promotionSale</b>). Your <b>totalSale</b> would be $12.50. This value is calculated as follows:  <br><br><b>baseSale</b> + <b>promotionSale</b> = <b>totalSale</b>",
            "$ref": "#/components/schemas/Amount"
          }
        },
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This type defines the fields in a discount-level report."
      },
      "PromotionSelectModeEnum": {
        "type": "object",
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This enumerated type is used to indicate how a discount is selected, if one is added to the email campaign. | - **AUTO**: Automatic mode. The system will select items automatically based on the specified criteria such as price range and selected category. - **MANUAL**: Manual mode. The user must selects the discount and adds it in the <b>promotionId</b> field. This mode can only be used if the user selects the listings included in <b>itemIds</b>.",
        "enum": [
          "AUTO",
          "MANUAL"
        ]
      },
      "PromotionStatusEnum": {
        "type": "object",
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>An enumerated type for the values that represent the different states that can be assigned to a discount. | - **SCHEDULED**: Indicates the discount start date is in future (greater than current date). The discount is not yet live. - **RUNNING**: Indicates the discount is live on the site. - **PAUSED**: Indicates the discount is currently on hold. Call <b>resumePromotion</b> to restart the discount. - **DRAFT**: Indicates the discount is a draft. Call <b>updateItemPromotion</b> to submit the full details of the discount, schedule it, and make it active. - **ENDED**: Indicates the discount has ended. - **INVALID**: This is for internal use only for when discount type specified in the request is invalid. ",
        "enum": [
          "SCHEDULED",
          "RUNNING",
          "PAUSED",
          "DRAFT",
          "ENDED",
          "INVALID"
        ]
      },
      "PromotionTypeEnum": {
        "type": "object",
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>An enum that defines the types of supported Discounts Manager discounts.  <br />See the <a href=\"/api-docs/sell/static/marketing/promotions-manager.html\", target=\"_blank\">Discounts Manager</a> documentation for details. | - **CODED_COUPON**: Discount type for coupon code discount set with <b>createItemPromotion</b>. - **MARKDOWN_SALE**: Discount type for markdown discount set with <b>createItemPriceMarkdownPromotion</b>. - **ORDER_DISCOUNT**: Discount type for threshold discount set with <b>createItemPromotion</b>. - **VOLUME_DISCOUNT**: Discount type for volume pricing discount set with <b>createItemPromotion</b>.",
        "enum": [
          "CODED_COUPON",
          "MARKDOWN_SALE",
          "ORDER_DISCOUNT",
          "VOLUME_DISCOUNT"
        ]
      },
      "PromotionsPagedCollection": {
        "type": "object",
        "required": [
          "href",
          "limit",
          "offset",
          "promotions",
          "total"
        ],
        "properties": {
          "href": {
            "type": "string",
            "description": "The URI of the current page of results from the result set."
          },
          "limit": {
            "type": "integer",
            "description": "The number of items returned on a single page from the result set. This value can be set in the request with the <b>limit</b> query parameter.",
            "format": "int32"
          },
          "next": {
            "type": "string",
            "description": "The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set. <br><br><b>Max length</b>: 2048"
          },
          "offset": {
            "type": "integer",
            "description": "The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the <b>offset</b> query parameter. <p class=\"tablenote\"><strong>Note: </strong>The items in a paginated result set use a zero-based list where the first item in the list has an offset of <code>0</code>.</p>",
            "format": "int32"
          },
          "prev": {
            "type": "string",
            "description": "The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set. <br><br><b>Max length</b>: 2048"
          },
          "promotions": {
            "type": "array",
            "description": "A list containing the details of each returned discount. This includes all the information about the discounts except for the listings that are discounted.",
            "items": {
              "$ref": "#/components/schemas/PromotionDetail"
            }
          },
          "total": {
            "type": "integer",
            "description": "The total number of items retrieved in the result set.  <br><br>If no items are found, this field is returned with a value of <code>0</code>.",
            "format": "int32"
          }
        },
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This type defines the fields in a paginated result set of seller discounts. The response consists of 0 or more sequenced pages that are returned from the complete <i>result set</i>, where each page consists of 0 or more items."
      },
      "PromotionsReportPagedCollection": {
        "type": "object",
        "required": [
          "href",
          "limit",
          "offset",
          "promotionReports",
          "total"
        ],
        "properties": {
          "href": {
            "type": "string",
            "description": "The URI of the current page of results from the result set."
          },
          "limit": {
            "type": "integer",
            "description": "The number of items returned on a single page from the result set. This value can be set in the request with the <b>limit</b> query parameter.",
            "format": "int32"
          },
          "next": {
            "type": "string",
            "description": "The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set. <br><br><b>Max length</b>: 2048"
          },
          "offset": {
            "type": "integer",
            "description": "The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the <b>offset</b> query parameter. <p class=\"tablenote\"><strong>Note: </strong>The items in a paginated result set use a zero-based list where the first item in the list has an offset of <code>0</code>.</p>",
            "format": "int32"
          },
          "prev": {
            "type": "string",
            "description": "The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set. <br><br><b>Max length</b>: 2048"
          },
          "promotionReports": {
            "type": "array",
            "description": "A list of <b>promotionReports</b> contained in the paginated result set.",
            "items": {
              "$ref": "#/components/schemas/PromotionReportDetail"
            }
          },
          "total": {
            "type": "integer",
            "description": "The total number of items retrieved in the result set.  <br><br>If no items are found, this field is returned with a value of <code>0</code>.",
            "format": "int32"
          }
        },
        "description": "<span class=\"tablenote\"><b>Note:</b> As of July 8th 2024, <i>promotions</i> are now being referred to as <i>discounts</i> on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.</span><br>This type defines the fields in a paginated result set of discount-level reports. The response consists of 0 or more sequenced pages that are returned from the complete <i>result set</i>, where each page consists of 0 or more items."
      },
      "ProposedBid": {
        "type": "object",
        "required": [
          "currency",
          "rangeEnd",
          "rangeStart",
          "value"
        ],
        "properties": {
          "currency": {
            "description": "The base currency applied to the <b>value</b> field to establish a monetary amount.  <br><br>The currency is represented as a 3-letter <a href=\"https://www.iso.org/iso-4217-currency-codes.html \" title=\"https://www.iso.org \" target=\"_blank\">ISO 4217</a> currency code. For example, the code for the Canadian Dollar is <code>CAD</code>.  <br><br><b>Default:</b> The default currency of the eBay marketplace that hosts the listing.",
            "$ref": "#/components/schemas/CurrencyCodeEnum"
          },
          "rangeEnd": {
            "type": "string",
            "description": "The end of the range specified for the bid."
          },
          "rangeStart": {
            "type": "string",
            "description": "The start of the range specified for the bid."
          },
          "value": {
            "type": "string",
            "description": "The value of the proposed bid."
          }
        },
        "description": "A type that defines the data for a payment amount, such as the sale price."
      },
      "ReportFormatEnum": {
        "type": "object",
        "description": "This enum defines the format of a report file. Currently, the only supported format is <code>TSV_GZIP</code>, which is a gzip file with tab separated values. | - **TSV_GZIP**: Indicates a gzip file with tab separated values.",
        "enum": [
          "TSV_GZIP"
        ]
      },
      "ReportMetadata": {
        "type": "object",
        "required": [
          "dimensionMetadata",
          "maxNumberOfDimensionsToRequest",
          "metricMetadata",
          "reportType"
        ],
        "properties": {
          "dimensionMetadata": {
            "type": "array",
            "description": "A list containing the metadata for the dimension used in the report.",
            "items": {
              "$ref": "#/components/schemas/DimensionMetadata"
            }
          },
          "maxNumberOfDimensionsToRequest": {
            "type": "integer",
            "description": "The maximum number of dimensions that can be requested for the specified report type.",
            "format": "int32"
          },
          "maxNumberOfMetricsToRequest": {
            "type": "integer",
            "description": "The maximum number of metrics that can be requested for the specified report type.",
            "format": "int32"
          },
          "channel": {
            "description": "This field indicates whether a <code>COST_PER_CLICK</code> report type is related to an <code>ON_SITE</code> or <code>OFF_SITE</code> Promoted Listings campaign. This field is not returned for <code>COST_PER_SALE</code> report types since <code>COST_PER_SALE</code> campaigns are only available <code>ON_SITE</code>.",
            "$ref": "#/components/schemas/ChannelEnum"
          },
          "metricMetadata": {
            "type": "array",
            "description": "A list containing the metadata for the metrics in the report.",
            "items": {
              "$ref": "#/components/schemas/MetricMetadata"
            }
          },
          "reportType": {
            "description": "The <b>report_type</b>, as specified in the request to create the report task.<br/><br/><span class=\"tablenote\"><b>Note:</b> INVENTORY_PERFORMANCE_REPORT is not currently available; availability date is pending.</span>",
            "$ref": "#/components/schemas/ReportTypeEnum"
          }
        },
        "description": "This type defines the fields included in the report."
      },
      "ReportMetadatas": {
        "type": "object",
        "required": [
          "reportMetadata"
        ],
        "properties": {
          "reportMetadata": {
            "type": "array",
            "description": "A list of the metadata for the associated report type.",
            "items": {
              "$ref": "#/components/schemas/ReportMetadata"
            }
          }
        },
        "description": "This type defines the metadata used by the all report types."
      },
      "ReportTask": {
        "type": "object",
        "required": [
          "dateFrom",
          "dateTo",
          "dimensions",
          "marketplaceId",
          "metricKeys",
          "reportExpirationDate",
          "reportFormat",
          "reportHref",
          "reportId",
          "reportName",
          "reportTaskCompletionDate",
          "reportTaskCreationDate",
          "reportTaskExpectedCompletionDate",
          "reportTaskId",
          "reportTaskStatus",
          "reportType"
        ],
        "properties": {
          "campaignIds": {
            "type": "array",
            "description": "A list of IDs for the campaigns that are included in the report. A campaign ID is a unique eBay-assigned identifier of the campaign that's generated when the campaign is created.<br /><br />Call <b>getCampaigns</b> to return the current campaign IDs for a seller.",
            "items": {
              "type": "string"
            }
          },
          "channels": {
            "type": "array",
            "description": "The channel for the advertising campaign that will be included in the report task. This value indicates whether the data included in the report task is for an Onsite or Offsite advertising campaign.",
            "items": {
              "$ref": "#/components/schemas/ChannelEnum"
            }
          },
          "dateFrom": {
            "type": "string",
            "description": "The date defining the start of the timespan covered by the report, formatted as an <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html \" title=\"https://www.iso.org \" target=\"_blank\">ISO 8601</a> timestamp."
          },
          "dateTo": {
            "type": "string",
            "description": "The date defining the end of the timespan covered by the report, formatted as an <a href=\"https://www.iso.org/iso-8601-date-and-time-format.html \" title=\"https://www.iso.org \" target=\"_blank\">ISO 8601</a> timestamp."
          },
          "dimensions": {
            "type": "array",
            "description": "A list containing the dimension in the report.",
            "items": {
              "$ref": "#/components/schemas/Dimension"
            }
          },
          "fundingModels": {
            "type": "array",
            "description": "The funding model for the campaign that shall be included in the report.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> The default funding model for Promoted Listings reports is <code>COST_PER_SALE</code>.</span><br /><br /><b>Valid Values:</b><ul><li><code>COST_PER_SALE</code></li><li><code>COST_PER_CLICK</code></li></ul>",
            "items": {
              "$ref": "#/components/schemas/FundingModelEnum"
            }
          },
          "inventoryReferences": {
            "type": "array",
            "description": "If supplied in the request, this field returns a list of the seller's inventory reference IDs included in the report.  <p>Each item is referenced by a pair of <b>inventoryRefernceID</b> and <b>inventoryReferenceType</b> values, where an inventory reference ID can be either a seller-defined <b>SKU</b> value or an <b>inventoryItemGroupKey</b>. An <b>inventoryItemGroupKey</b> is seller-defined ID for an inventory item group (a multiple-variation listing), and is created and used by the <a href=\"/api-docs/sell/inventory/resources/methods\" target=\"_blank\">Inventory API</a>.</p>",
            "items": {
              "$ref": "#/components/schemas/InventoryReference"
            }
          },
          "listingIds": {
            "type": "array",
            "description": "If supplied in the request, this field returns a list of the listing IDs included in the report. A listing ID is an eBay-assigned ID that's generated when a listing is created.",
            "items": {
              "type": "string"
            }
          },
          "marketplaceId": {
            "description": "The ID of the eBay marketplace used by the report task.",
            "$ref": "#/components/schemas/MarketplaceIdEnum"
          },
          "metricKeys": {
            "type": "array",
            "description": "A list of metrics for the report task.",
            "items": {
              "type": "string"
            }
          },
          "reportExpirationDate": {
            "type": "string",
            "description": "The date after which the report is no longer be available. Reports are available for 30 days and you cannot download a report after it has expired.  <br><br><b>Format (UTC): </b> yyyy-MM-ddThh:mm:ss.sssZ"
          },
          "reportFormat": {
            "description": "Indicates the format of the report. Currently, only <code>TSV_GZIP</code> is supported.",
            "$ref": "#/components/schemas/ReportFormatEnum"
          },
          "reportHref": {
            "type": "string",
            "description": "The URL of the generated report, which can be used to download the report once it has been generated."
          },
          "reportId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for the report."
          },
          "reportName": {
            "type": "string",
            "description": "An eBay-assigned name for the report that's created by the <b>createReportTask</b> call. This name is unique for the seller."
          },
          "reportTaskCompletionDate": {
            "type": "string",
            "description": "The date the report task completed the report generation.  <br><br><b>Format (UTC): </b> yyyy-MM-ddThh:mm:ss.sssZ"
          },
          "reportTaskCreationDate": {
            "type": "string",
            "description": "The date the report task was created.  <br><br><b>Format (UTC): </b> yyyy-MM-ddThh:mm:ss.sssZ"
          },
          "reportTaskExpectedCompletionDate": {
            "type": "string",
            "description": "The date the report task is expected to complete the report generation.  <br><br><b>Format (UTC): </b> yyyy-MM-ddThh:mm:ss.sssZ"
          },
          "reportTaskId": {
            "type": "string",
            "description": "The unique eBay-assigned ID of the report task. This value is generated when the report task is created with a call to <b>createReportTask</b>."
          },
          "reportTaskStatus": {
            "description": "Indicates the current state of the report task.",
            "$ref": "#/components/schemas/TaskStatusEnum"
          },
          "reportTaskStatusMessage": {
            "type": "string",
            "description": "A status message with additional information about the report task."
          },
          "reportType": {
            "description": "Indicates type of report associated with the report task.<br/><br/><span class=\"tablenote\"><b>Note:</b> <code>INVENTORY_PERFORMANCE_REPORT</code> is not currently available; availability date is pending.</span>",
            "$ref": "#/components/schemas/ReportTypeEnum"
          }
        },
        "description": "This type defines the fields in a report task."
      },
      "ReportTaskPagedCollection": {
        "type": "object",
        "required": [
          "reportTasks"
        ],
        "properties": {
          "href": {
            "type": "string",
            "description": "The URI of the current page of results from the result set."
          },
          "limit": {
            "type": "integer",
            "description": "The number of items returned on a single page from the result set. This value can be set in the request with the <b>limit</b> query parameter.",
            "format": "int32"
          },
          "next": {
            "type": "string",
            "description": "The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set. <br><br><b>Max length</b>: 2048"
          },
          "offset": {
            "type": "integer",
            "description": "The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the <b>offset</b> query parameter.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> The items in a paginated result set use a zero-based list where the first item in the list has an offset of <code>0</code>.</span>",
            "format": "int32"
          },
          "prev": {
            "type": "string",
            "description": "The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set. <br><br><b>Max length</b>: 2048"
          },
          "total": {
            "type": "integer",
            "description": "The total number of items retrieved in the result set.  <br><br>If no items are found, this field is returned with a value of <code>0</code>.",
            "format": "int32"
          },
          "reportTasks": {
            "type": "array",
            "description": "A list of report tasks contained on this page from the paginated response.",
            "items": {
              "$ref": "#/components/schemas/ReportTask"
            }
          }
        },
        "description": "This type defines the fields that paginate the reports tasks returned by the request. The entire <i>result set</i> consists of 0 or more sequenced <i>response pages</i>, where each page consists of 0 or more items from the complete result set."
      },
      "ReportTypeEnum": {
        "type": "object",
        "description": "An enum that defines the type of reports you can generate.<br /><br /><span class=\"tablenote\"><b>Tip:</b> For details about which report types can be used for Promoted Listings general strategy ad campaigns or Promoted Listings priority strategy ad campaigns, see <a href=\"/api-docs/sell/static/marketing/pl-reports.html\" target=\"_blank\">Promoted Listings reporting</a>.</span> | - **ACCOUNT_PERFORMANCE_REPORT**: This enum value indicates that the report is based on the account performance. This report offers a <i>daily view</i> of the seller's Promoted Listings performance. - **ALL_CAMPAIGN_PERFORMANCE_SUMMARY_REPORT**: This enum value indicates that the report is based on campaign performance. This report provides performance data for all of a seller's campaigns. - **CAMPAIGN_PERFORMANCE_REPORT**: This enum value indicates that the report is a detailed item-based campaign performance report. This report offers an <i>item level view</i> of the performance of specific ad campaigns. - **CAMPAIGN_PERFORMANCE_SUMMARY_REPORT**: This enum value indicates that the report is a summary campaign performance report. This report offers a <i>daily summary view</i> of the performance of specific ad campaigns.  - **INVENTORY_PERFORMANCE_REPORT**: This enum value indicates that the report is an inventory performance report. This report offers a <i>listing view</i> of the performance of all the seller's Promoted Listings.<br><br><span class=\"tablenote\"><b>Note:</b>  The Inventory Performance Summary report is not currently available; availability date is pending.</span> - **LISTING_PERFORMANCE_REPORT**: This enum value indicates that the report is based on listings. This report offers a <i>daily view</i> of the performance of each listing. - **KEYWORD_PERFORMANCE_REPORT**: This enum value indicates that the report is a keyword performance report. This report provides keyword performance data for a specific campaign. - **TRANSACTION_REPORT**: This enum value indicates that the report is a transaction report. This report provides transaction-level details to sellers for both general strategy ad campaigns or priority strategy ad campaigns. - **SEARCH_QUERY_PERFORMANCE_REPORT**: This enum value indicates that the report is a search query performance report. This report offers details to sellers that help them understand buyer search patterns and behaviors, indicating which search queries most effectively led the buyers to their products and the impressions, clicks or amount of sales generated. This data can be used by sellers to choose more relevant keywords and negative keywords.  ",
        "enum": [
          "ACCOUNT_PERFORMANCE_REPORT",
          "ALL_CAMPAIGN_PERFORMANCE_SUMMARY_REPORT",
          "CAMPAIGN_PERFORMANCE_REPORT",
          "CAMPAIGN_PERFORMANCE_SUMMARY_REPORT",
          "INVENTORY_PERFORMANCE_REPORT",
          "LISTING_PERFORMANCE_REPORT",
          "KEYWORD_PERFORMANCE_REPORT",
          "TRANSACTION_REPORT",
          "SEARCH_QUERY_PERFORMANCE_REPORT"
        ]
      },
      "RuleCriteria": {
        "type": "object",
        "properties": {
          "excludeInventoryItems": {
            "type": "array",
            "description": "A list of seller inventory reference IDs to exclude from the discount.<br><p class=\"tablenote\"><b>Note:</b> The request can have either <b>excludeInventoryItems</b> or <b>excludeListingIds</b> but not both.</p> <b>Maximum:</b> 100 parent items<br><br><b>Maximum SKU or custom label length:</b> 50 characters",
            "items": {
              "$ref": "#/components/schemas/InventoryItem"
            }
          },
          "excludeListingIds": {
            "type": "array",
            "description": "A list of eBay listing IDs to exclude from the discount.  <br><br><p class=\"tablenote\"><b>Note:</b> The request can have either <b>excludeInventoryItems</b> or <b>excludeListingIds</b> but not both.</p> <b>Maximum:</b> 100 parent items <br><b>Maximum SKU or custom label length:</b> 50 characters",
            "items": {
              "type": "string"
            }
          },
          "markupInventoryItems": {
            "type": "array",
            "description": "A list of SKUs to remove from a markdown discount. The listed SKUs are 'marked up' to their standard price after being part of the markdown discount.",
            "items": {
              "$ref": "#/components/schemas/InventoryItem"
            }
          },
          "markupListingIds": {
            "type": "array",
            "description": "A list of listing IDs to remove from a markdown discount. The listed items are 'marked up' to their standard price after being part of the markdown discount.",
            "items": {
              "type": "string"
            }
          },
          "selectionRules": {
            "type": "array",
            "description": "The container for the rules that select the items to be discounted.  <br><br><i>Required if </i> <b>inventoryCriterionType</b> is set to <code>INVENTORY_BY_RULE</code>. <br><br>For information on using the contained fields, see <a href= \"/api-docs/sell/static/marketing/using-the-selectionrules-container.html#Promotio \">Item discounts</a>.",
            "items": {
              "$ref": "#/components/schemas/SelectionRule"
            }
          }
        },
        "description": "This type defines the fields for a set of inventory selection rules.  <br><br><b>Required:</b> When <b>inventoryCriterionType</b> is set to <code>INVENTORY_BY_RULE</code> or <code>INVENTORY_ANY</code>."
      },
      "ScheduleDateTypeEnum": {
        "type": "object",
        "description": "This enumerated type specifies whether the user or the eBay system has set the schedule date for the email campaign. | - **SYSTEM**: The schedule date is determined by the system. - **CUSTOM**: The seller has set a custom send date for the email campaign.",
        "enum": [
          "SYSTEM",
          "CUSTOM"
        ]
      },
      "SelectedInventoryDiscount": {
        "type": "object",
        "required": [
          "discountBenefit",
          "inventoryCriterion"
        ],
        "properties": {
          "discountBenefit": {
            "description": "This container defines the discount as either a monetary amount or a percentage applied to the sales price.",
            "$ref": "#/components/schemas/DiscountBenefit"
          },
          "discountId": {
            "type": "string",
            "description": "A unique, eBay-generated ID that you can use to identify the discount. This field is ignored in POST and PUT operations."
          },
          "inventoryCriterion": {
            "description": "A container that defines either the listing IDs or the selection rules that specify the items to include in the discount. Listing IDs can be either eBay listing IDs or a list of the seller's inventory reference IDs (know as SKUs or custom labels). See the <b>selectionRules</b> container for the rule criteria you can use to select inventory.  <p class=\"tablenote\"><b>Note:</b> All listings in Discounts Manager discounts must support an electronic payment method.</p>",
            "$ref": "#/components/schemas/InventoryCriterion"
          },
          "ruleOrder": {
            "type": "integer",
            "description": "For markdown discounts, this field is reserved for future use. <!--This field specifies the precedence of this set of inventory criteria, which is taken into account if an item is selected for multiple discounts by different sets of criteria. The criteria with the highest priority (lowest <b>ruleOrder</b> value) takes precedence over criteria with a lower precedence.-->",
            "format": "int32"
          }
        },
        "description": "This type defines the fields that describe the discounts applied to a set of inventory items and the order in which the selection rules are applied."
      },
      "SelectionRule": {
        "type": "object",
        "properties": {
          "brands": {
            "type": "array",
            "description": "An array of product brands. For more details, see <a href=\"/api-docs/sell/static/marketing/using-the-selectionrules-container.html \" target=\"_blank\">Using the selectionRules container</a>.",
            "items": {
              "type": "string"
            }
          },
          "categoryIds": {
            "type": "array",
            "description": "This field contains an array of the associated category ID(s).<br><br>For <a href= \"/api-docs/sell/static/marketing/using-the-selectionrules-container.html#Promotio \" target=\"_blank\">Item discounts</a>, a single-item array containing the category ID associated with the discounts. Required when used in an Item discount and either specifying a <b>selectionRules</b> container or when <b>inventoryCriterionType</b> is set to <code>INVENTORY_BY_RULE</code>.<br><br>For <a href= \"/api-docs/sell/static/marketing/using-the-selectionrules-container.html#Campaign \" target=\"_blank\">Promoted Listing campaigns</a>, an array of category ID(s) associated with the campaign. <br><br>For information on how to get category IDs, see <a href= \"/api-docs/sell/static/marketing/using-the-selectionrules-container.html#eBay \" target=\"_blank\">eBay Marketplace category IDs</a> and <a href= \"/api-docs/sell/static/marketing/using-the-selectionrules-container.html#Seller \" target=\"_blank\">Seller store category IDs</a>",
            "items": {
              "type": "string"
            }
          },
          "categoryScope": {
            "description": "This enumerated value indicates if the category ID for the item is an identifier for eBay categories or for a seller's eBay store categories. <br><br>For <a href= \"/api-docs/sell/static/marketing/using-the-selectionrules-container.html#Campaign \" target=\"_blank\">Promoted Listing campaigns</a>, this field includes the type of the category ID for the item(s) to be included in the campaign.<br><br>For <a href= \"/api-docs/sell/static/marketing/using-the-selectionrules-container.html#Promotio \" target=\"_blank\">Item discounts</a>, this field identifies the scope for the corresponding array as eBay categories or for a seller's eBay store categories. Required when used in an Item discount and <b>inventoryCriterionType</b> is set to <code>INVENTORY_BY_RULE</code>. ",
            "$ref": "#/components/schemas/CategoryScopeEnum"
          },
          "listingConditionIds": {
            "type": "array",
            "description": "A comma-separated list of unique identifiers for the conditions of listings to be included<br><br>For <a href= \"/api-docs/sell/static/marketing/using-the-selectionrules-container.html#Campaign \" target=\"_blank\">Promoted Listing campaigns</a>, refer to <a href= \"/api-docs/sell/static/marketing/pl-campaign-flow-pls.html#add-by-rule \" target=\"_blank\">Add items to the campaign</a>. Up to four IDs can be specified.<br><br>For <a href= \"/api-docs/sell/static/marketing/using-the-selectionrules-container.html#Promotio \" target=\"_blank\">Item discounts</a>, refer to <a href= \"/api-docs/sell/static/metadata/condition-id-values.html \" target=\"_blank\">Item condition ID and name values</a>.",
            "items": {
              "type": "string"
            }
          },
          "maxPrice": {
            "description": "This container sets the maximum price threshold. For more details, see <a href= \"/api-docs/sell/marketing/resources/using-the-selectionrules-container.html \" target=\"_blank\">Using the selectionRules container</a>.",
            "$ref": "#/components/schemas/Amount"
          },
          "minPrice": {
            "description": "This container sets the minimum price threshold. For more details, see <a href= \"/api-docs/sell/marketing/resources/using-the-selectionrules-container.html \" target=\"_blank\">Using the selectionRules container</a>.",
            "$ref": "#/components/schemas/Amount"
          }
        },
        "description": "This type defines all rules/inclusion filters used to add listings to campaigns or discounts. Use of the specific fields is different for campaigns or discounts. See <a href= \"/api-docs/sell/static/marketing/using-the-selectionrules-container.html \" target=\"_blank\">Using the selectionRules container</a>."
      },
      "SortField": {
        "type": "object",
        "properties": {
          "ascending": {
            "type": "boolean",
            "description": "If set to <code>true</code>, the results are sorted in ascending order. If set to <code>false</code>, the fields are sorted in descending order."
          },
          "field": {
            "type": "string",
            "description": "Specifies the name of the field on which the result set is sorted."
          }
        },
        "description": "This type defines how the fields in the result set are sorted."
      },
      "SuggestBudgetResponse": {
        "type": "object",
        "properties": {
          "suggestedBudget": {
            "type": "array",
            "description": "The suggested allocated daily budget for an offsite campaign.",
            "items": {
              "$ref": "#/components/schemas/BudgetRecommendationResponse"
            }
          }
        },
        "description": "This type defines the fields used in the <b>suggestBudget</b> response."
      },
      "SuggestMaxCpcRequest": {
        "type": "object",
        "required": [
          "listingIds",
          "marketplaceId"
        ],
        "properties": {
          "listingIds": {
            "type": "array",
            "description": "A comma delimited array of listing Ids the seller plans to associate with the smart targeting campaign for which the <b>maxCpc</b> will be suggested.",
            "items": {
              "type": "string"
            }
          },
          "marketplaceId": {
            "description": "The unique identifier of the marketplace where the listings are hosted. See <a href=\"/develop/api/sell/request_headers#marketplace-id-values\" target=\"_blank\">Marketplace ID values</a> for supported values.",
            "$ref": "#/components/schemas/MarketplaceIdEnum"
          }
        },
        "description": "This type defines the fields used in the <b>suggestMaxCpc</b> request. To retrieve the suggested <b>maxCpc</b> value for a smart targeting campaign, a seller must specify the listings associated with the campaign, as well as the marketplace on which the campaign is hosted."
      },
      "SuggestMaxCpcResponse": {
        "type": "object",
        "properties": {
          "amount": {
            "description": "The suggested <b>maxCpc</b> amount for the smart targeting campaign.",
            "$ref": "#/components/schemas/Amount"
          },
          "marketplaceId": {
            "description": "The unique identifier of the marketplace where the listings are hosted.",
            "$ref": "#/components/schemas/MarketplaceIdEnum"
          }
        },
        "description": "This type defines the fields used in the <b>suggestMaxCpc</b> response."
      },
      "SuggestedBids": {
        "type": "object",
        "required": [
          "keywordText",
          "matchType"
        ],
        "properties": {
          "keywordText": {
            "type": "string",
            "description": "The text for the keyword."
          },
          "matchType": {
            "description": "A field that defines the match type for the keyword.<br /><br /><b>Valid Values:</b><ul><li><code>BROAD</code></li><li><code>EXACT</code></li><li><code>PHRASE</code></li></ul>",
            "$ref": "#/components/schemas/MatchTypeEnum"
          },
          "proposedBid": {
            "description": "The suggested bid associated with the keyword. ",
            "$ref": "#/components/schemas/ProposedBid"
          }
        },
        "description": "This type defines the suggested bid rate for the keyword."
      },
      "SuggestedKeywords": {
        "type": "object",
        "required": [
          "keywordText"
        ],
        "properties": {
          "additionalInfo": {
            "type": "array",
            "description": "A container for the additional information and compiled insight data for suggested keywords. ",
            "items": {
              "$ref": "#/components/schemas/AdditionalInfo"
            }
          },
          "keywordText": {
            "type": "string",
            "description": "The text for the keyword."
          },
          "matchType": {
            "description": "A field that defines the match type for the keyword.<br /><br /><b>Valid Values:</b><ul><li><code>BROAD</code></li><li><code>EXACT</code></li><li><code>PHRASE</code></li></ul>",
            "$ref": "#/components/schemas/MatchTypeEnum"
          }
        },
        "description": "This type defines the suggested keywords for the item."
      },
      "SummaryReportResponse": {
        "type": "object",
        "required": [
          "baseSale",
          "lastUpdated",
          "percentageSalesLift",
          "promotionSale",
          "totalSale"
        ],
        "properties": {
          "baseSale": {
            "description": "The total revenue from all the purchased items that were part of a discount but <i>did not trigger</i> a discount during the discount period.",
            "$ref": "#/components/schemas/Amount"
          },
          "lastUpdated": {
            "type": "string",
            "description": "The date the report was generated."
          },
          "percentageSalesLift": {
            "type": "string",
            "description": "The percentage of the total dollar amount gained due to discounts. This value is calculated as follows:  <br><br><b>precentageSalesLift</b> = <b>promotionSale</b> / (<b>baseSale</b> + <b>promotionSale</b>)"
          },
          "promotionSale": {
            "description": "The total revenue from all the purchased items that were part of a discount and their purchase <i>did trigger</i> a discount during the discount period.",
            "$ref": "#/components/schemas/Amount"
          },
          "totalSale": {
            "description": "Total dollar sales amount of all the seller's listings, current to the date the report was generated.",
            "$ref": "#/components/schemas/Amount"
          }
        },
        "description": "This type defines the fields in an Discounts Manager Summary report. Reports are formatted in JSON. For more details, see <a href=\"/api-docs/sell/static/marketing/pm-summary-reports.html\" target=\"_blank\">Reading item discount Summary reports</a>."
      },
      "TargetedAdsPagedCollection": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string",
            "description": "The URI of the current page of results from the result set."
          },
          "limit": {
            "type": "integer",
            "description": "The number of items returned on a single page from the result set. This value can be set in the request with the <b>limit</b> query parameter.",
            "format": "int32"
          },
          "next": {
            "type": "string",
            "description": "The call URI that can be used to retrieve the next page in the result set. This value is returned only if there is an additional page of results to display from the result set."
          },
          "offset": {
            "type": "integer",
            "description": "The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the <b>offset</b> query parameter. <p><b>Default:</b> 0</p><br><span class=\"tablenote\"><b>Note: </b>The items in a paginated result set use a zero-based list, where the first item in the list has an offset of <code>0</code>.</span>",
            "format": "int32"
          },
          "prev": {
            "type": "string",
            "description": "The call URI that can be used to retrieve the previous page in the result set. Basically, all of the request parameters will remain the same except the offset value, which will be decreased to retrieve the previous page of results."
          },
          "suggestedItems": {
            "type": "array",
            "description": "A list of suggested items in the paginated collection.",
            "items": {
              "$ref": "#/components/schemas/TargetingItems"
            }
          },
          "total": {
            "type": "integer",
            "description": "The total number of items retrieved in the result set.<br /><br /><span class=\"tablenote\"><b>Note: </b>If no items are found, this field is returned with a value of <code>0</code>.</span>",
            "format": "int32"
          }
        },
        "description": "A type that defines the keywords of the paged collection."
      },
      "TargetedBidRequest": {
        "type": "object",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "type": "array",
            "description": "An array of keywords for which bids will be required. <br /><br /><b>Maximum number of keywords: </b>500",
            "items": {
              "$ref": "#/components/schemas/KeywordRequest"
            }
          }
        },
        "description": "A type that defines the targeted bid."
      },
      "TargetedBidsPagedCollection": {
        "type": "object",
        "properties": {
          "suggestedBids": {
            "type": "array",
            "description": "A list of bids in the paginated collection.",
            "items": {
              "$ref": "#/components/schemas/SuggestedBids"
            }
          }
        },
        "description": "A type that defines the keywords of the paged collection."
      },
      "TargetedKeywordRequest": {
        "required": [
          "matchType"
        ],
        "type": "object",
        "properties": {
          "additionalInfo": {
            "type": "array",
            "description": "A field used to indicate whether additional information and insight data shall be provided for suggested keywords.<br><br>Use this array to retrieve keyword insights, including active seller count and search volume.<br /><br /><strong>Valid Value:</strong> <code>KEYWORD_INSIGHTS</code>",
            "items": {
              "$ref": "#/components/schemas/AdditionalInfoEnum"
            }
          },
          "exclusions": {
            "type": "array",
            "description": "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.<br /><br /><strong>Valid Value:</strong> <code>ADOPTED_KEYWORDS</code>",
            "items": {
              "$ref": "#/components/schemas/ExclusionsEnum"
            }
          },
          "listingIds": {
            "type": "array",
            "description": "A set of comma-separated listing IDs for the specific listings you wish to retrieve suggested keywords. <br /><br /><b>Maximum number of listings requested: </b>300",
            "items": {
              "type": "string"
            }
          },
          "matchType": {
            "description": "A field that defines the match type for the keyword.<br /><br /><b>Valid Values:</b><ul><li><code>BROAD</code></li><li><code>EXACT</code></li><li><code>PHRASE</code></li></ul>",
            "$ref": "#/components/schemas/MatchTypeEnum"
          }
        },
        "description": "A type that provides details for the targeted keywords."
      },
      "TargetedKeywordsPagedCollection": {
        "type": "object",
        "properties": {
          "suggestedKeywords": {
            "type": "array",
            "description": "A list of suggested keywords in the paged collection. <p> <span class=\"tablenote\"><strong>Note:</strong> A relevancy check with items already present in the ad-group is performed even if item IDs associated with the ad-group are not explicitly passed in the request.</span></p> ",
            "items": {
              "$ref": "#/components/schemas/SuggestedKeywords"
            }
          }
        },
        "description": "A type that defines the keywords of the paged collection."
      },
      "TargetingItems": {
        "type": "object",
        "required": [
          "listingId"
        ],
        "properties": {
          "bases": {
            "type": "array",
            "description": "The metrics and additional information for the items.",
            "items": {
              "$ref": "#/components/schemas/ItemBasis"
            }
          },
          "listingId": {
            "type": "string",
            "description": "The listing ID of the targeted item."
          }
        },
        "description": "A type that defines the targeted items."
      },
      "TargetingMetricsEnum": {
        "type": "object",
        "description": "An enumerated type that indicates the basis for the targeted metrics. | - **SEARCH_IMPRESSIONS**: This enum value indicates that targeting metrics are based on search impressions in search slots.",
        "enum": [
          "SEARCH_IMPRESSIONS"
        ]
      },
      "TaskStatusEnum": {
        "type": "object",
        "description": "An enum that defines the possible states of a report task. | - **PENDING**: Indicates the report task is being worked upon. You cannot make changes to a task in this state. - **SUCCESS**: Indicates the report task ran successfully. - **FAILED**: Indicates the report task failed to run.",
        "enum": [
          "PENDING",
          "SUCCESS",
          "FAILED"
        ]
      },
      "UpdateAdGroupRequest": {
        "type": "object",
        "properties": {
          "adGroupStatus": {
            "description": "An enumeration value representing the current status of the ad group.<p>If the status of the ad is currently <code>ACTIVE</code>, you can change status to <code>PAUSED</code> or <code>ARCHIVED</code>. If ad group is currently in <code>PAUSED</code> status, you can change the status back to <code>ACTIVE</code>. Ads that are currently in <code>ARCHIVED</code> status cannot be made <code>ACTIVE</code> again.<br /><br /><b>Valid Values:</b><ul><li><code>ACTIVE</code></li><li><code>PAUSED</code></li><li><code>ARCHIVED</code></li></ul>",
            "$ref": "#/components/schemas/AdGroupStatusEnum"
          },
          "defaultBid": {
            "description": "A bid amount that applies to all of the keywords in an ad group that do not have individual bids.",
            "$ref": "#/components/schemas/Amount"
          },
          "name": {
            "type": "string",
            "description": "The updated name for the specified ad group."
          }
        },
        "description": "A type that contains the fields used by the <b>UpdateAdGroup</b> request."
      },
      "UpdateAdStatusByListingIdRequest": {
        "type": "object",
        "required": [
          "adStatus",
          "listingId"
        ],
        "properties": {
          "adGroupId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for an ad group in a campaign that uses the Cost Per Click (CPC) funding model.<br /><br />Use the  <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad_group-getadgroups\">getAdGroups</a> method to retrieve the ad group IDs for a seller."
          },
          "adStatus": {
            "description": "An enumeration value representing the current status of the ad.<br /><br /><b>Valid Values:</b><ul><li><code>ACTIVE</code></li><li><code>PAUSED</code></li><li><code>ARCHIVED</code></li></ul>",
            "$ref": "#/components/schemas/AdStatusEnum"
          },
          "listingId": {
            "type": "string",
            "description": "A unique eBay-assigned identifier for a listing that is generated when the listing is created.<br /><br /><span class=\"tablenote\"><b>Note:</b> This field accepts both listing IDs (as generated by the Inventory API), and item IDs (as used in the eBay Traditional API set, such as the Trading and Finding APIs).</span>"
          }
        },
        "description": "A type that contains the fields for the <b>UpdateAdStatusByListingId</b> request."
      },
      "UpdateAdStatusRequest": {
        "type": "object",
        "required": [
          "adId",
          "adStatus"
        ],
        "properties": {
          "adId": {
            "type": "string",
            "description": "A unique eBay-assigned identifier for an ad that belongs to the specified campaign.<br><br> Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-ad-getads\">getAds</a> method to retrieve ad IDs."
          },
          "adStatus": {
            "description": "An enumeration value representing the status you wish to update the specified ad to.<br /><br /><b>Valid Values:</b><ul><li><code>ACTIVE</code></li><li><code>PAUSED</code></li><li><code>ARCHIVED</code></li></ul>",
            "$ref": "#/components/schemas/AdStatusEnum"
          }
        },
        "description": "A type that contains the fields for the <b>UpdateAdStatus</b> request."
      },
      "UpdateAdrateStrategyRequest": {
        "type": "object",
        "properties": {
          "adRateStrategy": {
            "description": "This field is used to change the current ad rate strategy for a Cost Per Sale (CPS) campaign. It is not needed if the ad rate strategy is not being changed for the campaign.<br><br><span class=\"tablenote\"><b>Note:</b> This field is not applicable for offsite campaigns.</span>",
            "$ref": "#/components/schemas/AdRateStrategyEnum"
          },
          "bidPercentage": {
            "type": "string",
            "description": "The user-defined <b>bid percentage</b> (also known as the <i>ad rate</i>) sets the level that eBay increases the visibility in search results for the associated listing. The higher the <b>bidPercentage</b> value, the more eBay promotes the listing.  <br><br>The value specified here is also used to calculate the Promoted Listings fee. This percentage value is multiplied by the final sales price to determine the fee. <br><br>The Promoted Listings fee is determined at the time the transaction completes and the seller is assessed the fee only when an item sells through a Promoted Listings ad campaign. <br><br>The <b>bidPercentage</b> is a single precision value that is guided by the following rules: <ul><li>These values are <b>valid</b>:<br>&nbsp;&nbsp;&nbsp;<code>4.1</code>, &nbsp;&nbsp;&nbsp;<code>5.0</code>, &nbsp;&nbsp;&nbsp;<code>5.5</code>, ...</li>  <li>These values are <b>not valid</b>:<br /> &nbsp;&nbsp;&nbsp;<code>0.01</code>, &nbsp;&nbsp;&nbsp;<code>10.75</code>, &nbsp;&nbsp;&nbsp;<code>99.99</code>,<br /> &nbsp;&nbsp;&nbsp;and so on.</li></ul>This is the default bid percentage for the campaigns using the Cost Per Sale (CPS) funding model, and this value will be overridden by any ads in the campaign that have their own set bid percentages.<br /><br />If a bid percentage is not provided for an ad, eBay uses the default bid percentage of the associated campaign.<br><br><span class=\"tablenote\"><b>Note:</b> This field has a minimum value of <code>2.0</code> and a maximum value of <code>100.0</code>.</span>"
          },
          "dynamicAdRatePreferences": {
            "type": "array",
            "description": "A field that indicates whether a single, user-defined bid percentage (also known as the <i>ad rate</i>) should be used, or whether eBay should automatically adjust listings to maintain the daily suggested bid percentage.<br /><br /><span class=\"tablenote\"><span style=\"color:#004680\"><strong>Note:</strong></span> Dynamic adjustment is only applicable when the <b>adRateStrategy</b> is set to <code>DYNAMIC</code>.</span><br /><b>Default:</b> <code>FIXED</code>",
            "items": {
              "$ref": "#/components/schemas/DynamicAdRatePreference"
            }
          }
        },
        "description": "A type that defines the request fields used to update the ad rate strategy for a Promoted Listings ad campaign."
      },
      "UpdateAdsByInventoryReferenceResponse": {
        "type": "object",
        "required": [
          "statusCode"
        ],
        "properties": {
          "ads": {
            "type": "array",
            "description": "A list of ad IDs and links to retrieve them.",
            "items": {
              "$ref": "#/components/schemas/AdReference"
            }
          },
          "errors": {
            "type": "array",
            "description": "A container for all of the errors associated with the specified inventory reference ID.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          },
          "inventoryReferenceId": {
            "type": "string",
            "description": "The reference ID associated with the ad. The reference ID could be a SKU number or Inventory Item Group, depending on value of <code>inventoryReferenceType</code>."
          },
          "inventoryReferenceType": {
            "description": "The inventory reference type associated with the ad. The inventory reference type could be a SKU number or Inventory Item Group.",
            "$ref": "#/components/schemas/InventoryReferenceTypeEnum"
          },
          "statusCode": {
            "type": "integer",
            "description": "An HTTP status code that indicates whether or not the CPS ad was successfully updated.",
            "format": "int32"
          }
        },
        "description": "A type that contains the response fields used by the <b>UpdateAdsByInventoryReference</b> method."
      },
      "UpdateBidPercentageRequest": {
        "type": "object",
        "required": [
          "bidPercentage"
        ],
        "properties": {
          "bidPercentage": {
            "type": "string",
            "description": "The updated <b>bid percentage</b> value for the specified ad in the specified campaign. The bid percentage (also known as the <i>ad rate</i>) is a user-defined value which sets the level that eBay increases the visibility in search results for the associated listing. The higher the <b>bidPercentage</b> value, the more eBay promotes the listing.  <br><br>The value specified here is also used to calculate the Promoted Listings fee. This percentage value is multiplied by the final sales price to determine the fee. <br><br>The Promoted Listings fee is determined at the time the transaction completes and the seller is assessed the fee only when an item sells through a Promoted Listings ad campaign. <br><br>The <b>bidPercentage</b> is a single precision value that is guided by the following rules: <ul><li>These values are <b>valid</b>:<br>&nbsp;&nbsp;&nbsp;<code>4.1</code>, &nbsp;&nbsp;&nbsp;<code>5.0</code>, &nbsp;&nbsp;&nbsp;<code>5.5</code>, ...</li>  <li>These values are <b>not valid</b>:<br /> &nbsp;&nbsp;&nbsp;<code>0.01</code>, &nbsp;&nbsp;&nbsp;<code>10.75</code>, &nbsp;&nbsp;&nbsp;<code>99.99</code>,<br /> &nbsp;&nbsp;&nbsp;and so on.</li></ul><br><span class=\"tablenote\"><b>Note:</b> This field has a minimum value of <code>2.0</code> and a maximum value of <code>100.0</code>.</span>"
          }
        },
        "description": "This type specifies the bid percentage for an ad campaign."
      },
      "UpdateBiddingStrategyRequest": {
        "type": "object",
        "required": [
          "biddingStrategy"
        ],
        "properties": {
          "biddingStrategy": {
            "description": "The new bidding strategy for the specified Cost Per Click (CPC) campaign.",
            "$ref": "#/components/schemas/BiddingStrategyEnum"
          },
          "bidPreferences": {
            "type": "array",
            "description": "This container indicates the bidding preferences of the campaign, such as the maximum CPC amount.<br><br><span class=\"tablenote\"><b>Note:</b> This container is only applicable for smart targeting campaigns.</span><br>This container is required if the user wants to create a Smart Targeting campaign.",
            "items": {
              "$ref": "#/components/schemas/BidPreference"
            }
          }
        },
        "description": "This type defines the fields used in the <b>updatedBiddingStrategy</b> request."
      },
      "UpdateCampaignBudgetRequest": {
        "type": "object",
        "required": [
          "daily"
        ],
        "properties": {
          "daily": {
            "description": "The daily budget limit for the Cost Per Click (CPC) Promoted Listings campaign. This will be a dollar value. All clicks using the keywords defined for the campaign will go towards expending the daily budget. Once the daily budget is exceeded for the campaign, all Promoted Listings under the campaign will be turned off until the next day.<br /><br /><b>Valid Values</b>:<ul><li><code>50.00</code></li><li><code>100.00</code></li></ul>",
            "$ref": "#/components/schemas/BudgetRequest"
          }
        },
        "description": "A type that contains the fields for the <b>UpdateCampaignBudget</b> request."
      },
      "UpdateCampaignIdentificationRequest": {
        "type": "object",
        "required": [
          "campaignName",
          "startDate"
        ],
        "properties": {
          "campaignName": {
            "type": "string",
            "description": "The new seller-defined name for the campaign. This value must be unique for the seller. <p>If you don't want to change the name of the campaign, specify the current campaign name in this field.<p>You can use any alphanumeric characters in the name, except the less than (&lt;) or greater than (&gt;) characters.</p><b>Max length: </b>80 characters."
          },
          "endDate": {
            "type": "string",
            "description": "The date and time the campaign ends, in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). If this field is omitted, the campaign will have no defined end date, and will not end until the seller makes a decision to end the campaign with an <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-endcampaign\">endCampaign</a> call, or if they update the campaign at a later time with an end date.<p>If you want to change only the end date of the campaign, you must specify the current campaign name, set the <b>endDate</b> as desired, and set the <b>startDate</b> to the actual start date of the campaign. This applies if the campaign status is <code>RUNNING</code> or <code>PAUSED</code>. You can retrieve the <b>startDate</b> using the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaign.campaign.startdate\">getCampaign</a> method.</p> <p>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.</p>"
          },
          "startDate": {
            "type": "string",
            "description": "The new start date for the campaign, in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>).<p>If the campaign status is <code>RUNNING</code> or <code>PAUSED</code>, the <b>startDate</b> must be specified and must be the actual start date of the campaign, even if you are only changing the <b>endDate</b>. You can retrieve the campaign's <b>startDate</b> using the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaign.campaign.startdate\">getCampaign</a> method.</p><p>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.</p>  <p>Call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-campaign-getcampaigns\">getCampaigns</a> to retrieve the <b>campaign_id</b> and the campaign status (<code>RUNNING</code>, <code>PAUSED</code>, <code>ENDED</code>, and so on) for all the seller's campaigns.</p>"
          }
        },
        "description": "This type specifies the updated name, and start and end dates for an update-campaign request."
      },
      "UpdateCampaignRequest": {
        "type": "object",
        "required": [
          "audienceCodes",
          "itemSelectMode",
          "personalizedMessage",
          "subject"
        ],
        "properties": {
          "audienceCodes": {
            "type": "array",
            "description": "An array of audience codes for the audiences of the email campaign. At least one audience code is required. There is no limit to the number of audience codes that may be entered.<br><br><b>Example: </b> if the current email campaign contains <code>\"audienceCodes\": \"code1\", \"code2\"</code> and the user wishes to add an audience code <code>code3</code>, set the <code>audienceCodes</code> value to <code>\"audienceCodes\": \"code1\", \"code2\", \"code3\"</code>.<br><br>To retrieve seller audiences, call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getaudiences\">getAudiences</a>. Use the code values in the response to populate audienceCodes.",
            "items": {
              "type": "string"
            }
          },
          "categoryId": {
            "type": "string",
            "description": "The unique identifier of either an eBay category or a store category.<br><br>This field is used if a seller wants to apply an email campaign to a specific eBay category or store category. The <b>categoryType</b> determines whether the <b>categoryId</b> value is an eBay category or store category.<br><br>Use the <a href=\"/api-docs/commerce/taxonomy/overview.html\"  target=\"_blank\">Taxonomy API</a> to retrieve eBay categories. To retrieve seller store categories, use the <a href=\"/devzone/xml/docs/reference/ebay/GetStore.html\" target=\"_blank\">getStore</a> call. Use the <b>categoryId</b> value of the desired category from the results as the value in the request.<br><br><b>itemSelectMode</b> must be set to <code>AUTO</code> in order to use a category ID."
          },
          "categoryType": {
            "description": "This field must be set when applying an email campaign to a specific eBay category or store category. The enumeration value used indicates which type of category the <b>categoryId</b> belongs to.",
            "$ref": "#/components/schemas/CategoryTypeEnum"
          },
          "itemIds": {
            "type": "array",
            "description": "An array of unique identifiers for the listings displayed in an email campaign. Used if the seller wishes to select the eBay listings in the email campaign rather than have eBay automatically select them.<br><br>Call <a href=\"/DevZone/XML/docs/Reference/eBay/GetSellerList.html#GetSellerList\" target=\"_blank\">getSellerList</a> to retrieve all seller listings. Each <b>Item</b> result contains an <b>ItemID</b> value. Use this value in <b>itemIds</b> to feature that listing.<br><br>The maximum number of <b>itemIds</b> for the <code>COUPON</code> campaign type is 4, and for every other campaign type is 10.<br><br><b>itemSelectMode</b> must be set to <code>MANUAL</code> in order to use this field.",
            "items": {
              "type": "string"
            }
          },
          "itemSelectMode": {
            "description": "Determines whether listings featured in an email campaign are selected by the seller or by eBay.<br><br>If <b>itemSelectMode</b> is set to <code>AUTO</code>, eBay automatically choses listings based on values set for <b>sort</b>, <b>categoryType</b>, <b>categoryId</b>, and <b>priceRange</b>.<br><br>If <b>itemSelectMode</b> is set to <code>MANUAL</code>, listings are set by the seller by populating the <code>itemIds</code> array.<br><br><span class=\"tablenote\"><b>Note: </b><b>itemSelectMode</b> is always set to <code>AUTO</code> for <code>WELCOME</code> email campaigns.</span>",
            "$ref": "#/components/schemas/ItemSelectModeEnum"
          },
          "personalizedMessage": {
            "type": "string",
            "description": "The body of the email campaign. Accepts HTML and CSS. The maximum length is 1000 characters"
          },
          "priceRange": {
            "description": "This container is used if the seller wants to apply the email campaign to listings based on a price range.<br><br>The <b>priceRange</b> container consists of the <b>currency</b>, <b>gte</b>, and <b>lte</b> fields.<br><br>\"gte\" stands for \"greater than or equal to\" and \"lte\" stands for \"less than or equal to\". Either <b>gte</b>, <b>lte</b>, or both must be used if the seller wishes to include a price range.<br><br><span class=\"tablenote\"><b>Note: </b>Use this object when the <b>itemSelectMode</b> is set to <code>AUTO</code>.</span>",
            "$ref": "#/components/schemas/PriceRange"
          },
          "promotionId": {
            "type": "string",
            "description": "The ID of the discount used for an email campaign if the <b>emailCampaignType</b> is set to <code>COUPON</code>, <code>SALE_EVENT</code>, or <code>ORDER_DISCOUNT</code>, and <b>promotionSelectModeEnum</b> is set to <code>MANUAL</code>.<br><br>To find a discount, call <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-promotion-getpromotions\" target=\"_blank\">getPromotions</a> to retrieve a list of the seller's discounts. Use the <b>promotionId</b> from an individual <b>PromotionDetail</b> result for the request."
          },
          "promotionSelectModeEnum": {
            "description": "The selection mode for the discount used. If set to <code>AUTO</code>, eBay will choose the discount to include in the email campaign. If set to <code>MANUAL</code>, the seller must specify the discount in the <b>promotionId</b> field.<br><br>This field is required if the <b>emailCampaignType</b> is set to <code>COUPON</code>, <code>SALE_EVENT</code>, or <code>ORDER_DISCOUNT</code>.",
            "$ref": "#/components/schemas/PromotionSelectModeEnum"
          },
          "scheduleDate": {
            "type": "string",
            "description": "The date and time that the email campaign newsletter will be sent, given in UTC format. Example: 2023-05-20T03:13:35Z<br><br>This field should be used if the seller wishes to send the email campaign on a future date. If no <b>scheduleDate</b> is set, the email campaign will send once it is created or updated."
          },
          "sort": {
            "description": "The sort rule is used to display the listings featured in the email campaign.<br><br>Sort rules are only used if <b>itemSelectMode</b> is set to <code>AUTO</code>. If <b>itemSelectMode</b> is <code>MANUAL</code>, listings are displayed in the order in which they are listed in the <b>itemIds</b> array.<br><br>The following sort rules are available:<ul><li><code>ENDING_FIRST</code> displays listings by ending date, from soonest to latest.</li><li><code>LOWEST_PRICED</code> displays listings by price, from lowest to highest.</li><li><code>HIGHEST_PRICED</code> displays listings by price, from highest to lowest.</li><li><code>NEWLY_LISTED</code> displays listings by date listed, with the newest first.</li></ul><br><br>The default sort rule is <code>NEWLY_LISTED</code>.",
            "$ref": "#/components/schemas/ItemSortEnum"
          },
          "subject": {
            "type": "string",
            "description": "The email campaign subject. The maximum length is 70 characters."
          }
        },
        "description": "This type defines the update email campaign request payload."
      },
      "UpdateEmailCampaignResponse": {
        "type": "object",
        "description": "This type defines the response payload for the <b>updateEmailCampaign</b> method.",
        "required": [
          "emailCampaignId",
          "emailCampaignStatus"
        ],
        "properties": {
          "emailCampaignId": {
            "type": "string",
            "description": "The unique eBay-assigned ID to the email campaign that is generated when the email campaign is created."
          },
          "emailCampaignStatus": {
            "description": "The email campaign status. See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-email_campaign-getemailcampaigns.emailcampaignstatusenum\">EmailCampaignStatusEnum</a> for a list of email campaign statuses and their descriptions.",
            "$ref": "#/components/schemas/EmailCampaignStatusEnum"
          }
        }
      },
      "UpdateKeywordByKeywordIdRequest": {
        "type": "object",
        "required": [
          "keywordId"
        ],
        "properties": {
          "bid": {
            "description": "This container is used to set or change the bid percentage for the keyword. Each time a listing is retrieved in search results using this keyword and clicked on, the seller will be charged this amount. Each click goes toward the daily budget set up for the Cost Per Click (CPC) campaign.",
            "$ref": "#/components/schemas/Amount"
          },
          "keywordId": {
            "type": "string",
            "description": "This field is used to identify the keyword to be updated. The <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-keyword-getkeyword\">getKeyword</a> method can be used to retrieve keywordId values."
          },
          "keywordStatus": {
            "description": "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 <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-keyword-getkeyword\">getKeyword</a> method.</p><p>If the status of the ad is currently <code>ACTIVE</code>, you can change status to <code>PAUSED</code> or <code>ARCHIVED</code>. If ad group is currently in <code>PAUSED</code> status, you can change the status back to <code>ACTIVE</code>. Ads that are currently in <code>ARCHIVED</code> status cannot be made <code>ACTIVE</code> again.",
            "$ref": "#/components/schemas/KeywordStatusEnum"
          }
        },
        "description": "A type that contains the fields for the <b>UpdateKeywordByKeywordId</b> request."
      },
      "UpdateKeywordRequest": {
        "type": "object",
        "properties": {
          "bid": {
            "description": "This container is used to set or change the bid for the keyword. Each time a listing is retrieved in search results using this keyword and clicked on, the seller will be charged this amount. Each click goes toward the daily budget set up for the CPC campaign. If the bid is not provided, then the default bid associated with the ad group is used.",
            "$ref": "#/components/schemas/Amount"
          },
          "keywordStatus": {
            "description": "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 <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-keyword-getkeyword\">getKeyword</a> method.</p><p>If the status of the ad is currently <code>ACTIVE</code>, you can change status to <code>PAUSED</code> or <code>ARCHIVED</code>. If ad group is currently in <code>PAUSED</code> status, you can change the status back to <code>ACTIVE</code>. Ads that are currently in <code>ARCHIVED</code> status cannot be made <code>ACTIVE</code> again.",
            "$ref": "#/components/schemas/KeywordStatusEnum"
          }
        },
        "description": "A type that contains the fields for the <b>UpdateKeyword</b> request."
      },
      "UpdateKeywordResponse": {
        "type": "object",
        "required": [
          "keywordId",
          "statusCode"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "description": "This container will be returned if there are one or more issues associated with modifying the corresponding keyword.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          },
          "keywordId": {
            "type": "string",
            "description": "This field identifies the keyword that the seller updated, or attempted to update."
          },
          "statusCode": {
            "type": "integer",
            "description": "An HTTP status code is returned for each keyword to indicate the success or failure of updating that keyword.",
            "format": "int32"
          },
          "warnings": {
            "type": "array",
            "description": "A list of warnings associated with this operation.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          }
        },
        "description": "A type that contains the fields for the <b>UpdateKeyword</b> response."
      },
      "UpdateNegativeKeywordIdRequest": {
        "type": "object",
        "required": [
          "negativeKeywordId",
          "negativeKeywordStatus"
        ],
        "properties": {
          "negativeKeywordId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for a negative keyword. This keyword ID will be generated for each successfully created negative keyword.<br><br>Use the <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-negative_keyword-getnegativekeywords\">getNegativeKeywords</a> method to retrieve negative keyword IDs."
          },
          "negativeKeywordStatus": {
            "description": "A field that defines the status of the negative keyword.<br><br>See <a href=\"/develop/api/sell/marketing_api#sell-marketing_api-negative_keyword-getnegativekeyword.negativekeywordstatusenum\">NegativeKeywordStatusEnum</a> for supported values.",
            "$ref": "#/components/schemas/NegativeKeywordStatusEnum"
          }
        },
        "description": "A type that defines the fields used to update a negative keyword."
      },
      "UpdateNegativeKeywordRequest": {
        "type": "object",
        "required": [
          "negativeKeywordStatus"
        ],
        "properties": {
          "negativeKeywordStatus": {
            "description": "A field that defines the status of the negative keyword.",
            "$ref": "#/components/schemas/NegativeKeywordStatusEnum"
          }
        },
        "description": "A type that contains the fields for the <b>UpdateNegativeKeyword</b> request."
      },
      "UpdateNegativeKeywordResponse": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "description": "A container that will be returned if there are one or more issues associated with modifying the corresponding negative keyword.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          },
          "negativeKeywordId": {
            "type": "string",
            "description": "A unique eBay-assigned ID for a negative keyword. This keyword ID will be generated for each successfully created negative keyword."
          },
          "statusCode": {
            "type": "integer",
            "description": "An HTTP status code that indicates the success or failure of updating that negative keyword.",
            "format": "int32"
          }
        },
        "description": "A type that contains the fields for the <b>UpdateNegativeKeyword</b> response."
      },
      "BulkUpsertVideoAdsPreferencesRequest": {
        "type": "object",
        "description": "This request type defines the listing-level video ads preference create or update operations to perform in a single request across multiple Promoted Listings ads within a CPC campaign.",
        "properties": {
          "requests": {
            "type": "array",
            "description": "An array of listing-level video ads preference updates. Include one object for each listing you want to create or update. You can specify up to 500 listing IDs in a single call, and the array must contain at least one item. <br><br><b>Maximum:</b> 500 IDs per call",
            "items": {
              "$ref": "#/components/schemas/UpsertVideoAdsPreferencesRequest"
            },
            "minItems": 1
          }
        },
        "required": [
          "requests"
        ]
      },
      "BulkUpsertVideoAdsPreferencesResponse": {
        "type": "object",
        "description": "The base response container returned by the <b>bulkUpsertVideoAdsPreferences</b> operation. It contains the per-listing results for each attempted video ads preference update in the bulk request.",
        "properties": {
          "responses": {
            "type": "array",
            "description": "An array of per-listing results for the bulk request. Each element contains the outcome of the attempted video ads preference update for one listing.",
            "items": {
              "$ref": "#/components/schemas/UpsertVideoAdsPreferencesResponse"
            }
          }
        }
      },
      "VideoAdsPreferences": {
        "type": "object",
        "description": "This request type defines the video ads preference settings to apply to a single listing in a Promoted Listings campaign that uses the CPC funding model. It is used as the <b>videoAdsPreferences</b> field value in both <b>bulkUpsertVideoAdsPreferences</b> and <b>upsertVideoAdsPreferences</b>.",
        "properties": {
          "videoAdsEnabled": {
            "type": "boolean",
            "description": "When <code>true</code>, video ads are enabled for the specified listing in the campaign, and any ads associated with that listing ID within the campaign are opted into video ads. When <code>false</code>, any ads associated with the specified listing ID within the campaign are opted out of video ads."
          }
        },
        "required": [
          "videoAdsEnabled"
        ]
      },
      "UpsertVideoAdsPreferencesRequest": {
        "type": "object",
        "description": "This request type defines the video ads preference create or update settings for a single listing in a campaign that uses the CPC funding model. It is used both for each listing item in the <b>bulkUpsertVideoAdsPreferences</b> request and as the request body for <b>upsertVideoAdsPreferences</b>.",
        "properties": {
          "listingId": {
            "type": "string",
            "description": "The unique eBay listing ID of the listing whose video ads preferences you want to create or update. This value is generated when a listing is created with the <b>Trading API</b> or the <b>Inventory API</b>."
          },
          "videoAdsPreferences": {
            "$ref": "#/components/schemas/VideoAdsPreferences",
            "description": "The video ads preference settings to apply to the specified listing in a campaign that uses the CPC funding model."
          }
        },
        "required": [
          "listingId",
          "videoAdsPreferences"
        ]
      },
      "UpsertVideoAdsPreferencesResponse": {
        "type": "object",
        "description": "This response type contains the result of a video ads preference create or update operation for a single listing. It is returned as the response body for <b>upsertVideoAdsPreferences</b> and as the per-listing result type in <b>bulkUpsertVideoAdsPreferences</b>. It contains the outcome of the attempted video ads preference create or update operation for a single listing, including the listing ID, status code, and any errors associated with that listing.",
        "properties": {
          "errors": {
            "type": "array",
            "description": "A list of errors associated with the specified listing ID for the attempted video ads preference update. In a bulk response, this value applies to the individual listing result item.",
            "items": {
              "$ref": "#/components/schemas/ErrorDetailV3"
            }
          },
          "listingId": {
            "type": "string",
            "description": "The unique eBay listing ID for the listing that was updated or attempted (this ID was generated when the listing was created)."
          },
          "statusCode": {
            "type": "integer",
            "format": "int32",
            "description": "The HTTP status code returned for each listing that the seller attempted to update, whether for a single listing or for an individual listing within a bulk response."
          }
        }
      }
    },
    "securitySchemes": {
      "api_auth": {
        "type": "oauth2",
        "description": "The security definitions for this API. Please check individual operations for applicable scopes.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token",
            "scopes": {
              "https://api.ebay.com/oauth/api_scope": "View public data from eBay"
            }
          },
          "authorizationCode": {
            "authorizationUrl": "https://auth.ebay.com/oauth2/authorize",
            "tokenUrl": "https://api.ebay.com/identity/v1/oauth2/token",
            "scopes": {
              "https://api.ebay.com/oauth/api_scope/sell.marketing.readonly": "View your eBay marketing activities, such as ad campaigns and listing promotions",
              "https://api.ebay.com/oauth/api_scope/sell.marketing": "View and manage your eBay marketing activities, such as ad campaigns and listing promotions"
            }
          }
        }
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Unauthorized",
        "x-response-codes": {
          "errors": {
            "1001": {
              "domain": "API_MARKETING",
              "category": "APPLICATION",
              "description": "Invalid access token. Check the value of the Authorization HTTP request header."
            }
          }
        }
      }
    }
  }
}