ebay-api 8.4.1 → 8.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/README.md +1 -1
  2. package/dist/api/apiFactory.d.ts +27 -27
  3. package/dist/api/apiFactory.js +94 -94
  4. package/dist/api/base.d.ts +10 -10
  5. package/dist/api/base.js +10 -10
  6. package/dist/api/digitalSignature.d.ts +43 -43
  7. package/dist/api/digitalSignature.js +105 -105
  8. package/dist/api/index.d.ts +13 -13
  9. package/dist/api/index.js +29 -29
  10. package/dist/api/restful/buy/browse/index.d.ts +84 -84
  11. package/dist/api/restful/buy/browse/index.js +132 -135
  12. package/dist/api/restful/buy/deal/index.d.ts +56 -55
  13. package/dist/api/restful/buy/deal/index.js +74 -73
  14. package/dist/api/restful/buy/feed/index.d.ts +44 -43
  15. package/dist/api/restful/buy/feed/index.js +79 -78
  16. package/dist/api/restful/buy/index.d.ts +17 -17
  17. package/dist/api/restful/buy/index.js +8 -8
  18. package/dist/api/restful/buy/marketing/index.d.ts +28 -27
  19. package/dist/api/restful/buy/marketing/index.js +45 -44
  20. package/dist/api/restful/buy/marketplaceInsights/index.d.ts +29 -28
  21. package/dist/api/restful/buy/marketplaceInsights/index.js +45 -44
  22. package/dist/api/restful/buy/offer/index.d.ts +24 -23
  23. package/dist/api/restful/buy/offer/index.js +31 -30
  24. package/dist/api/restful/buy/order/index.d.ts +265 -264
  25. package/dist/api/restful/buy/order/index.js +363 -362
  26. package/dist/api/restful/commerce/catalog/index.d.ts +74 -73
  27. package/dist/api/restful/commerce/catalog/index.js +100 -101
  28. package/dist/api/restful/commerce/charity/index.d.ts +35 -34
  29. package/dist/api/restful/commerce/charity/index.js +50 -49
  30. package/dist/api/restful/commerce/identity/index.d.ts +15 -14
  31. package/dist/api/restful/commerce/identity/index.js +21 -20
  32. package/dist/api/restful/commerce/index.d.ts +15 -15
  33. package/dist/api/restful/commerce/index.js +7 -7
  34. package/dist/api/restful/commerce/notification/index.d.ts +118 -117
  35. package/dist/api/restful/commerce/notification/index.js +181 -180
  36. package/dist/api/restful/commerce/taxonomy/index.d.ts +79 -78
  37. package/dist/api/restful/commerce/taxonomy/index.js +129 -128
  38. package/dist/api/restful/commerce/translation/index.d.ts +16 -15
  39. package/dist/api/restful/commerce/translation/index.js +19 -18
  40. package/dist/api/restful/developer/analytics/index.d.ts +23 -22
  41. package/dist/api/restful/developer/analytics/index.js +39 -38
  42. package/dist/api/restful/developer/index.d.ts +7 -7
  43. package/dist/api/restful/developer/index.js +3 -3
  44. package/dist/api/restful/developer/keyManagement/index.d.ts +25 -24
  45. package/dist/api/restful/developer/keyManagement/index.js +37 -36
  46. package/dist/api/restful/index.d.ts +70 -67
  47. package/dist/api/restful/index.js +180 -180
  48. package/dist/api/restful/postOrder/cancellation/index.d.ts +57 -57
  49. package/dist/api/restful/postOrder/cancellation/index.js +89 -88
  50. package/dist/api/restful/postOrder/case/index.d.ts +63 -63
  51. package/dist/api/restful/postOrder/case/index.js +89 -88
  52. package/dist/api/restful/postOrder/index.d.ts +11 -11
  53. package/dist/api/restful/postOrder/index.js +5 -5
  54. package/dist/api/restful/postOrder/inquiry/index.d.ts +82 -82
  55. package/dist/api/restful/postOrder/inquiry/index.js +125 -124
  56. package/dist/api/restful/postOrder/return/index.d.ts +231 -231
  57. package/dist/api/restful/postOrder/return/index.js +355 -354
  58. package/dist/api/restful/sell/account/index.d.ts +299 -298
  59. package/dist/api/restful/sell/account/index.js +461 -460
  60. package/dist/api/restful/sell/analytics/index.d.ts +42 -41
  61. package/dist/api/restful/sell/analytics/index.js +55 -54
  62. package/dist/api/restful/sell/compliance/index.d.ts +38 -37
  63. package/dist/api/restful/sell/compliance/index.js +51 -50
  64. package/dist/api/restful/sell/feed/index.d.ts +172 -171
  65. package/dist/api/restful/sell/feed/index.js +278 -277
  66. package/dist/api/restful/sell/finances/index.d.ts +79 -78
  67. package/dist/api/restful/sell/finances/index.js +103 -102
  68. package/dist/api/restful/sell/fulfillment/index.d.ts +138 -137
  69. package/dist/api/restful/sell/fulfillment/index.js +193 -192
  70. package/dist/api/restful/sell/index.d.ts +29 -29
  71. package/dist/api/restful/sell/index.js +14 -14
  72. package/dist/api/restful/sell/inventory/index.d.ts +249 -248
  73. package/dist/api/restful/sell/inventory/index.js +340 -339
  74. package/dist/api/restful/sell/listing/index.d.ts +15 -14
  75. package/dist/api/restful/sell/listing/index.js +19 -18
  76. package/dist/api/restful/sell/logistics/index.d.ts +45 -44
  77. package/dist/api/restful/sell/logistics/index.js +60 -59
  78. package/dist/api/restful/sell/marketing/index.d.ts +627 -626
  79. package/dist/api/restful/sell/marketing/index.js +863 -862
  80. package/dist/api/restful/sell/metadata/index.d.ts +78 -77
  81. package/dist/api/restful/sell/metadata/index.js +125 -124
  82. package/dist/api/restful/sell/negotiation/index.d.ts +25 -24
  83. package/dist/api/restful/sell/negotiation/index.js +33 -32
  84. package/dist/api/restful/sell/recommendation/index.d.ts +27 -26
  85. package/dist/api/restful/sell/recommendation/index.js +33 -32
  86. package/dist/api/traditional/XMLRequest.d.ts +109 -109
  87. package/dist/api/traditional/XMLRequest.js +176 -175
  88. package/dist/api/traditional/clientAlerts/index.d.ts +9 -9
  89. package/dist/api/traditional/clientAlerts/index.js +11 -11
  90. package/dist/api/traditional/clientAlerts/types.d.ts +31 -31
  91. package/dist/api/traditional/clientAlerts/types.js +32 -32
  92. package/dist/api/traditional/fields.d.ts +1948 -1948
  93. package/dist/api/traditional/fields.js +1946 -1946
  94. package/dist/api/traditional/finding/index.d.ts +12 -12
  95. package/dist/api/traditional/finding/index.js +13 -13
  96. package/dist/api/traditional/index.d.ts +17 -17
  97. package/dist/api/traditional/index.js +191 -191
  98. package/dist/api/traditional/merchandising/index.d.ts +7 -7
  99. package/dist/api/traditional/merchandising/index.js +8 -8
  100. package/dist/api/traditional/shopping/index.d.ts +11 -11
  101. package/dist/api/traditional/shopping/index.js +13 -13
  102. package/dist/api/traditional/trading/index.d.ts +142 -142
  103. package/dist/api/traditional/trading/index.js +143 -143
  104. package/dist/auth/authNAuth.d.ts +49 -49
  105. package/dist/auth/authNAuth.js +117 -116
  106. package/dist/auth/index.d.ts +17 -17
  107. package/dist/auth/index.js +25 -25
  108. package/dist/auth/oAuth2.d.ts +95 -95
  109. package/dist/auth/oAuth2.js +260 -259
  110. package/dist/eBayApi.d.ts +59 -59
  111. package/dist/eBayApi.js +105 -104
  112. package/dist/ebay-api.min.mjs +1 -1
  113. package/dist/enums/apiEnums.d.ts +49 -49
  114. package/dist/enums/apiEnums.js +51 -51
  115. package/dist/enums/index.d.ts +2 -2
  116. package/dist/enums/index.js +2 -2
  117. package/dist/enums/restfulEnums.d.ts +970 -970
  118. package/dist/enums/restfulEnums.js +1013 -1013
  119. package/dist/errors/index.d.ts +66 -66
  120. package/dist/errors/index.js +189 -189
  121. package/dist/nanoevents.d.ts +6 -6
  122. package/dist/nanoevents.js +20 -20
  123. package/dist/request.d.ts +26 -26
  124. package/dist/request.js +43 -43
  125. package/dist/types/apiTypes.d.ts +40 -40
  126. package/dist/types/apiTypes.js +1 -1
  127. package/dist/types/index.d.ts +3 -3
  128. package/dist/types/index.js +3 -3
  129. package/dist/types/restful/specs/buy_browse_v1_oas3.d.ts +1531 -0
  130. package/dist/types/restful/specs/buy_browse_v1_oas3.js +5 -0
  131. package/dist/types/restful/specs/buy_deal_v1_oas3.d.ts +434 -0
  132. package/dist/types/restful/specs/buy_deal_v1_oas3.js +5 -0
  133. package/dist/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +561 -0
  134. package/dist/types/restful/specs/buy_feed_v1_beta_oas3.js +5 -0
  135. package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +288 -0
  136. package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.js +5 -0
  137. package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +304 -0
  138. package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +5 -0
  139. package/dist/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +173 -0
  140. package/dist/types/restful/specs/buy_offer_v1_beta_oas3.js +5 -0
  141. package/dist/types/restful/specs/buy_order_v1_beta_oas3.d.ts +1701 -0
  142. package/dist/types/restful/specs/buy_order_v1_beta_oas3.js +5 -0
  143. package/dist/types/restful/specs/cancellation_oas3.d.ts +112 -0
  144. package/dist/types/restful/specs/cancellation_oas3.js +5 -0
  145. package/dist/types/restful/specs/case_oas3.d.ts +124 -0
  146. package/dist/types/restful/specs/case_oas3.js +5 -0
  147. package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +758 -0
  148. package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.js +5 -0
  149. package/dist/types/restful/specs/commerce_charity_v1_oas3.d.ts +224 -0
  150. package/dist/types/restful/specs/commerce_charity_v1_oas3.js +5 -0
  151. package/dist/types/restful/specs/commerce_identity_v1_oas3.d.ts +152 -0
  152. package/dist/types/restful/specs/commerce_identity_v1_oas3.js +5 -0
  153. package/dist/types/restful/specs/commerce_notification_v1_oas3.d.ts +677 -0
  154. package/dist/types/restful/specs/commerce_notification_v1_oas3.js +5 -0
  155. package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +530 -0
  156. package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.js +5 -0
  157. package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +100 -0
  158. package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.js +5 -0
  159. package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +158 -0
  160. package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.js +5 -0
  161. package/dist/types/restful/specs/developer_key_management_v1_oas3.d.ts +162 -0
  162. package/dist/types/restful/specs/developer_key_management_v1_oas3.js +5 -0
  163. package/dist/types/restful/specs/inquiry_oas3.d.ts +180 -0
  164. package/dist/types/restful/specs/inquiry_oas3.js +5 -0
  165. package/dist/types/restful/specs/return_oas3.d.ts +528 -0
  166. package/dist/types/restful/specs/return_oas3.js +5 -0
  167. package/dist/types/restful/specs/sell_account_v1_oas3.d.ts +2061 -0
  168. package/dist/types/restful/specs/sell_account_v1_oas3.js +5 -0
  169. package/dist/types/restful/specs/sell_analytics_v1_oas3.d.ts +340 -0
  170. package/dist/types/restful/specs/sell_analytics_v1_oas3.js +5 -0
  171. package/dist/types/restful/specs/sell_compliance_v1_oas3.d.ts +253 -0
  172. package/dist/types/restful/specs/sell_compliance_v1_oas3.js +5 -0
  173. package/dist/types/restful/specs/sell_feed_v1_oas3.d.ts +1191 -0
  174. package/dist/types/restful/specs/sell_feed_v1_oas3.js +5 -0
  175. package/dist/types/restful/specs/sell_finances_v1_oas3.d.ts +572 -0
  176. package/dist/types/restful/specs/sell_finances_v1_oas3.js +5 -0
  177. package/dist/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +1386 -0
  178. package/dist/types/restful/specs/sell_fulfillment_v1_oas3.js +5 -0
  179. package/dist/types/restful/specs/sell_inventory_v1_oas3.d.ts +2175 -0
  180. package/dist/types/restful/specs/sell_inventory_v1_oas3.js +5 -0
  181. package/dist/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +150 -0
  182. package/dist/types/restful/specs/sell_listing_v1_beta_oas3.js +5 -0
  183. package/dist/types/restful/specs/sell_logistics_v1_oas3.d.ts +451 -0
  184. package/dist/types/restful/specs/sell_logistics_v1_oas3.js +5 -0
  185. package/dist/types/restful/specs/sell_marketing_v1_oas3.d.ts +3728 -0
  186. package/dist/types/restful/specs/sell_marketing_v1_oas3.js +5 -0
  187. package/dist/types/restful/specs/sell_metadata_v1_oas3.d.ts +429 -0
  188. package/dist/types/restful/specs/sell_metadata_v1_oas3.js +5 -0
  189. package/dist/types/restful/specs/sell_negotiation_v1_oas3.d.ts +225 -0
  190. package/dist/types/restful/specs/sell_negotiation_v1_oas3.js +5 -0
  191. package/dist/types/restful/specs/sell_recommendation_v1_oas3.d.ts +148 -0
  192. package/dist/types/restful/specs/sell_recommendation_v1_oas3.js +5 -0
  193. package/dist/types/restfulTypes.d.ts +439 -1179
  194. package/dist/types/restfulTypes.js +1 -1
  195. package/dist/types/traditonalTypes.d.ts +35 -35
  196. package/dist/types/traditonalTypes.js +1 -1
  197. package/lib/api/apiFactory.d.ts +27 -27
  198. package/lib/api/apiFactory.js +100 -100
  199. package/lib/api/base.d.ts +10 -10
  200. package/lib/api/base.js +13 -13
  201. package/lib/api/digitalSignature.d.ts +43 -43
  202. package/lib/api/digitalSignature.js +112 -112
  203. package/lib/api/index.d.ts +13 -13
  204. package/lib/api/index.js +35 -35
  205. package/lib/api/restful/buy/browse/index.d.ts +84 -84
  206. package/lib/api/restful/buy/browse/index.js +137 -141
  207. package/lib/api/restful/buy/deal/index.d.ts +56 -55
  208. package/lib/api/restful/buy/deal/index.js +79 -79
  209. package/lib/api/restful/buy/feed/index.d.ts +44 -43
  210. package/lib/api/restful/buy/feed/index.js +84 -84
  211. package/lib/api/restful/buy/index.d.ts +17 -17
  212. package/lib/api/restful/buy/index.js +20 -20
  213. package/lib/api/restful/buy/marketing/index.d.ts +28 -27
  214. package/lib/api/restful/buy/marketing/index.js +50 -50
  215. package/lib/api/restful/buy/marketplaceInsights/index.d.ts +29 -28
  216. package/lib/api/restful/buy/marketplaceInsights/index.js +50 -50
  217. package/lib/api/restful/buy/offer/index.d.ts +24 -23
  218. package/lib/api/restful/buy/offer/index.js +36 -36
  219. package/lib/api/restful/buy/order/index.d.ts +265 -264
  220. package/lib/api/restful/buy/order/index.js +368 -368
  221. package/lib/api/restful/commerce/catalog/index.d.ts +74 -73
  222. package/lib/api/restful/commerce/catalog/index.js +105 -107
  223. package/lib/api/restful/commerce/charity/index.d.ts +35 -34
  224. package/lib/api/restful/commerce/charity/index.js +55 -55
  225. package/lib/api/restful/commerce/identity/index.d.ts +15 -14
  226. package/lib/api/restful/commerce/identity/index.js +26 -26
  227. package/lib/api/restful/commerce/index.d.ts +15 -15
  228. package/lib/api/restful/commerce/index.js +18 -18
  229. package/lib/api/restful/commerce/notification/index.d.ts +118 -117
  230. package/lib/api/restful/commerce/notification/index.js +186 -186
  231. package/lib/api/restful/commerce/taxonomy/index.d.ts +79 -78
  232. package/lib/api/restful/commerce/taxonomy/index.js +134 -134
  233. package/lib/api/restful/commerce/translation/index.d.ts +16 -15
  234. package/lib/api/restful/commerce/translation/index.js +24 -24
  235. package/lib/api/restful/developer/analytics/index.d.ts +23 -22
  236. package/lib/api/restful/developer/analytics/index.js +44 -44
  237. package/lib/api/restful/developer/index.d.ts +7 -7
  238. package/lib/api/restful/developer/index.js +10 -10
  239. package/lib/api/restful/developer/keyManagement/index.d.ts +25 -24
  240. package/lib/api/restful/developer/keyManagement/index.js +42 -42
  241. package/lib/api/restful/index.d.ts +70 -67
  242. package/lib/api/restful/index.js +187 -187
  243. package/lib/api/restful/postOrder/cancellation/index.d.ts +57 -57
  244. package/lib/api/restful/postOrder/cancellation/index.js +94 -94
  245. package/lib/api/restful/postOrder/case/index.d.ts +63 -63
  246. package/lib/api/restful/postOrder/case/index.js +94 -94
  247. package/lib/api/restful/postOrder/index.d.ts +11 -11
  248. package/lib/api/restful/postOrder/index.js +14 -14
  249. package/lib/api/restful/postOrder/inquiry/index.d.ts +82 -82
  250. package/lib/api/restful/postOrder/inquiry/index.js +130 -130
  251. package/lib/api/restful/postOrder/return/index.d.ts +231 -231
  252. package/lib/api/restful/postOrder/return/index.js +360 -360
  253. package/lib/api/restful/sell/account/index.d.ts +299 -298
  254. package/lib/api/restful/sell/account/index.js +466 -466
  255. package/lib/api/restful/sell/analytics/index.d.ts +42 -41
  256. package/lib/api/restful/sell/analytics/index.js +60 -60
  257. package/lib/api/restful/sell/compliance/index.d.ts +38 -37
  258. package/lib/api/restful/sell/compliance/index.js +56 -56
  259. package/lib/api/restful/sell/feed/index.d.ts +172 -171
  260. package/lib/api/restful/sell/feed/index.js +283 -283
  261. package/lib/api/restful/sell/finances/index.d.ts +79 -78
  262. package/lib/api/restful/sell/finances/index.js +108 -108
  263. package/lib/api/restful/sell/fulfillment/index.d.ts +138 -137
  264. package/lib/api/restful/sell/fulfillment/index.js +198 -198
  265. package/lib/api/restful/sell/index.d.ts +29 -29
  266. package/lib/api/restful/sell/index.js +32 -32
  267. package/lib/api/restful/sell/inventory/index.d.ts +249 -248
  268. package/lib/api/restful/sell/inventory/index.js +345 -345
  269. package/lib/api/restful/sell/listing/index.d.ts +15 -14
  270. package/lib/api/restful/sell/listing/index.js +24 -24
  271. package/lib/api/restful/sell/logistics/index.d.ts +45 -44
  272. package/lib/api/restful/sell/logistics/index.js +65 -65
  273. package/lib/api/restful/sell/marketing/index.d.ts +627 -626
  274. package/lib/api/restful/sell/marketing/index.js +868 -868
  275. package/lib/api/restful/sell/metadata/index.d.ts +78 -77
  276. package/lib/api/restful/sell/metadata/index.js +130 -130
  277. package/lib/api/restful/sell/negotiation/index.d.ts +25 -24
  278. package/lib/api/restful/sell/negotiation/index.js +38 -38
  279. package/lib/api/restful/sell/recommendation/index.d.ts +27 -26
  280. package/lib/api/restful/sell/recommendation/index.js +38 -38
  281. package/lib/api/traditional/XMLRequest.d.ts +109 -109
  282. package/lib/api/traditional/XMLRequest.js +182 -182
  283. package/lib/api/traditional/clientAlerts/index.d.ts +9 -9
  284. package/lib/api/traditional/clientAlerts/index.js +14 -14
  285. package/lib/api/traditional/clientAlerts/types.d.ts +31 -31
  286. package/lib/api/traditional/clientAlerts/types.js +34 -35
  287. package/lib/api/traditional/fields.d.ts +1948 -1948
  288. package/lib/api/traditional/fields.js +1948 -1948
  289. package/lib/api/traditional/finding/index.d.ts +12 -12
  290. package/lib/api/traditional/finding/index.js +15 -15
  291. package/lib/api/traditional/index.d.ts +17 -17
  292. package/lib/api/traditional/index.js +220 -220
  293. package/lib/api/traditional/merchandising/index.d.ts +7 -7
  294. package/lib/api/traditional/merchandising/index.js +10 -10
  295. package/lib/api/traditional/shopping/index.d.ts +11 -11
  296. package/lib/api/traditional/shopping/index.js +15 -15
  297. package/lib/api/traditional/trading/index.d.ts +142 -142
  298. package/lib/api/traditional/trading/index.js +145 -145
  299. package/lib/auth/authNAuth.d.ts +49 -49
  300. package/lib/auth/authNAuth.js +122 -122
  301. package/lib/auth/index.d.ts +17 -17
  302. package/lib/auth/index.js +31 -31
  303. package/lib/auth/oAuth2.d.ts +95 -95
  304. package/lib/auth/oAuth2.js +265 -265
  305. package/lib/eBayApi.d.ts +59 -59
  306. package/lib/eBayApi.js +141 -141
  307. package/lib/ebay-api.min.js +1 -1
  308. package/lib/enums/apiEnums.d.ts +49 -49
  309. package/lib/enums/apiEnums.js +54 -54
  310. package/lib/enums/index.d.ts +2 -2
  311. package/lib/enums/index.js +18 -18
  312. package/lib/enums/restfulEnums.d.ts +970 -970
  313. package/lib/enums/restfulEnums.js +1016 -1016
  314. package/lib/errors/index.d.ts +66 -66
  315. package/lib/errors/index.js +212 -212
  316. package/lib/index.d.ts +2 -2
  317. package/lib/index.js +6 -6
  318. package/lib/nanoevents.d.ts +6 -6
  319. package/lib/nanoevents.js +24 -24
  320. package/lib/request.d.ts +26 -26
  321. package/lib/request.js +50 -50
  322. package/lib/types/apiTypes.d.ts +40 -40
  323. package/lib/types/apiTypes.js +2 -2
  324. package/lib/types/index.d.ts +3 -3
  325. package/lib/types/index.js +19 -19
  326. package/lib/types/restful/specs/buy_browse_v1_oas3.d.ts +1531 -0
  327. package/lib/types/restful/specs/buy_browse_v1_oas3.js +6 -0
  328. package/lib/types/restful/specs/buy_deal_v1_oas3.d.ts +434 -0
  329. package/lib/types/restful/specs/buy_deal_v1_oas3.js +6 -0
  330. package/lib/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +561 -0
  331. package/lib/types/restful/specs/buy_feed_v1_beta_oas3.js +6 -0
  332. package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +288 -0
  333. package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.js +6 -0
  334. package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +304 -0
  335. package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +6 -0
  336. package/lib/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +173 -0
  337. package/lib/types/restful/specs/buy_offer_v1_beta_oas3.js +6 -0
  338. package/lib/types/restful/specs/buy_order_v1_beta_oas3.d.ts +1701 -0
  339. package/lib/types/restful/specs/buy_order_v1_beta_oas3.js +6 -0
  340. package/lib/types/restful/specs/cancellation_oas3.d.ts +112 -0
  341. package/lib/types/restful/specs/cancellation_oas3.js +6 -0
  342. package/lib/types/restful/specs/case_oas3.d.ts +124 -0
  343. package/lib/types/restful/specs/case_oas3.js +6 -0
  344. package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +758 -0
  345. package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.js +6 -0
  346. package/lib/types/restful/specs/commerce_charity_v1_oas3.d.ts +224 -0
  347. package/lib/types/restful/specs/commerce_charity_v1_oas3.js +6 -0
  348. package/lib/types/restful/specs/commerce_identity_v1_oas3.d.ts +152 -0
  349. package/lib/types/restful/specs/commerce_identity_v1_oas3.js +6 -0
  350. package/lib/types/restful/specs/commerce_notification_v1_oas3.d.ts +677 -0
  351. package/lib/types/restful/specs/commerce_notification_v1_oas3.js +6 -0
  352. package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +530 -0
  353. package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.js +6 -0
  354. package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +100 -0
  355. package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.js +6 -0
  356. package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +158 -0
  357. package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.js +6 -0
  358. package/lib/types/restful/specs/developer_key_management_v1_oas3.d.ts +162 -0
  359. package/lib/types/restful/specs/developer_key_management_v1_oas3.js +6 -0
  360. package/lib/types/restful/specs/inquiry_oas3.d.ts +180 -0
  361. package/lib/types/restful/specs/inquiry_oas3.js +6 -0
  362. package/lib/types/restful/specs/return_oas3.d.ts +528 -0
  363. package/lib/types/restful/specs/return_oas3.js +6 -0
  364. package/lib/types/restful/specs/sell_account_v1_oas3.d.ts +2061 -0
  365. package/lib/types/restful/specs/sell_account_v1_oas3.js +6 -0
  366. package/lib/types/restful/specs/sell_analytics_v1_oas3.d.ts +340 -0
  367. package/lib/types/restful/specs/sell_analytics_v1_oas3.js +6 -0
  368. package/lib/types/restful/specs/sell_compliance_v1_oas3.d.ts +253 -0
  369. package/lib/types/restful/specs/sell_compliance_v1_oas3.js +6 -0
  370. package/lib/types/restful/specs/sell_feed_v1_oas3.d.ts +1191 -0
  371. package/lib/types/restful/specs/sell_feed_v1_oas3.js +6 -0
  372. package/lib/types/restful/specs/sell_finances_v1_oas3.d.ts +572 -0
  373. package/lib/types/restful/specs/sell_finances_v1_oas3.js +6 -0
  374. package/lib/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +1386 -0
  375. package/lib/types/restful/specs/sell_fulfillment_v1_oas3.js +6 -0
  376. package/lib/types/restful/specs/sell_inventory_v1_oas3.d.ts +2175 -0
  377. package/lib/types/restful/specs/sell_inventory_v1_oas3.js +6 -0
  378. package/lib/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +150 -0
  379. package/lib/types/restful/specs/sell_listing_v1_beta_oas3.js +6 -0
  380. package/lib/types/restful/specs/sell_logistics_v1_oas3.d.ts +451 -0
  381. package/lib/types/restful/specs/sell_logistics_v1_oas3.js +6 -0
  382. package/lib/types/restful/specs/sell_marketing_v1_oas3.d.ts +3728 -0
  383. package/lib/types/restful/specs/sell_marketing_v1_oas3.js +6 -0
  384. package/lib/types/restful/specs/sell_metadata_v1_oas3.d.ts +429 -0
  385. package/lib/types/restful/specs/sell_metadata_v1_oas3.js +6 -0
  386. package/lib/types/restful/specs/sell_negotiation_v1_oas3.d.ts +225 -0
  387. package/lib/types/restful/specs/sell_negotiation_v1_oas3.js +6 -0
  388. package/lib/types/restful/specs/sell_recommendation_v1_oas3.d.ts +148 -0
  389. package/lib/types/restful/specs/sell_recommendation_v1_oas3.js +6 -0
  390. package/lib/types/restfulTypes.d.ts +439 -1179
  391. package/lib/types/restfulTypes.js +2 -2
  392. package/lib/types/traditonalTypes.d.ts +35 -35
  393. package/lib/types/traditonalTypes.js +2 -2
  394. package/package.json +6 -4
@@ -0,0 +1,3728 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/ad_campaign/{campaign_id}/bulk_create_ads_by_inventory_reference": {
7
+ /** @description This method adds multiple listings that are managed with the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">Inventory API</a> to an existing Promoted Listings campaign.<br /><br />For Promoted Listings Standard (PLS) 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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br /><br />Use <a href="/api-docs/sell/marketing/resources/campaign/methods/createCampaign">createCampaign</a> to create a new campaign and use <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to get a list of existing campaigns. */
8
+ post: operations["bulkCreateAdsByInventoryReference"];
9
+ };
10
+ "/ad_campaign/{campaign_id}/bulk_create_ads_by_listing_id": {
11
+ /** @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">Trading API</a> or <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">Inventory API</a>, or using values generated by an ad group ID.<p>For Promoted Listings Standard (PLS) 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 Promoted Listings Advanced (PLA) campaigns using the Cost Per Click (CPC) funding model, an ad group must be created first. If no ad group has been created for the campaign, ads cannot be created.</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="/api-docs/sell/marketing/resources/adgroup/methods/createAdGroup">createAdGroup</a> method.</p> <p>You can specify one or more ad groups per campaign.</p><p>Use <a href="/api-docs/sell/marketing/resources/campaign/methods/createCampaign">createCampaign</a> to create a new campaign and use <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to get a list of existing campaigns.</p> */
12
+ post: operations["bulkCreateAdsByListingId"];
13
+ };
14
+ "/ad_campaign/{campaign_id}/bulk_delete_ads_by_inventory_reference": {
15
+ /** @description This method works with listings created with the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> and call <a href="/api-docs/sell/marketing/resources/ad/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
16
+ post: operations["bulkDeleteAdsByInventoryReference"];
17
+ };
18
+ "/ad_campaign/{campaign_id}/bulk_delete_ads_by_listing_id": {
19
+ /** @description This method works with listing IDs created with either the <a href="/Devzone/XML/docs/Reference/eBay/index.html" title="Trading API Reference">Trading API</a> or the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> and call <a href="/api-docs/sell/marketing/resources/ad/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br /><br />When using the CPC funding model, use the <a href="/api-docs/sell/marketing/resources/ad/methods/bulkUpdateAdsStatusByListingId">bulkUpdateAdsStatusByListingId</a> method to change the status of ads to ARCHIVED. */
20
+ post: operations["bulkDeleteAdsByListingId"];
21
+ };
22
+ "/ad_campaign/{campaign_id}/bulk_update_ads_bid_by_inventory_reference": {
23
+ /** @description This method works with listings created with either the <a href="/Devzone/XML/docs/Reference/eBay/index.html" title="Trading API Reference">Trading API</a> or the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> and call <a href="/api-docs/sell/marketing/resources/ad/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
24
+ post: operations["bulkUpdateAdsBidByInventoryReference"];
25
+ };
26
+ "/ad_campaign/{campaign_id}/bulk_update_ads_bid_by_listing_id": {
27
+ /** @description This method works with listings created with either the <a href="/Devzone/XML/docs/Reference/eBay/index.html" title="Trading API Reference">Trading API</a> or the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> and call <a href="/api-docs/sell/marketing/resources/ad/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
28
+ post: operations["bulkUpdateAdsBidByListingId"];
29
+ };
30
+ "/ad_campaign/{campaign_id}/bulk_update_ads_status": {
31
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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">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. */
32
+ post: operations["bulkUpdateAdsStatus"];
33
+ };
34
+ "/ad_campaign/{campaign_id}/bulk_update_ads_status_by_listing_id": {
35
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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">Inventory API</a>.<br /><br />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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> and call <a href="/api-docs/sell/marketing/resources/ad/methods/getAds">getAds</a> to retrieve a list of seller inventory reference IDs. */
36
+ post: operations["bulkUpdateAdsStatusByListingId"];
37
+ };
38
+ "/ad_campaign/{campaign_id}/ad": {
39
+ /** @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">Trading API</a> or the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">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>Call <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve the current campaign IDs for the seller.</p> */
40
+ get: operations["getAds"];
41
+ /** @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">Trading API</a> or <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">Inventory API</a>, or using a value generated by an ad group ID. <p>For Promoted Listings Standard (PLS) 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 Promoted Listings Advanced (PLA) campaigns using the Cost Per Click (CPC) funding model, an ad group must be created first. If no ad group has been created for the campaign, an ad cannot be created.</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="/api-docs/sell/marketing/resources/adgroup/methods/createAdGroup">createAdGroup</a> method.</p> <p>You can specify one or more ad groups per campaign.</p><p>Use <a href="/api-docs/sell/marketing/resources/campaign/methods/createCampaign">createCampaign</a> to create a new campaign and use <a href="/api-docs/sell/marketing/resources/campaign/methods/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="/api-docs/sell/marketing/resources/ad/methods/getAd">getAd</a> URI of the ad are returned in the location header.</p> */
42
+ post: operations["createAdByListingId"];
43
+ };
44
+ "/ad_campaign/{campaign_id}/create_ads_by_inventory_reference": {
45
+ /** @description This method adds a listing that is managed with the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">Inventory API</a> to an existing Promoted Listings campaign.<br /><br />For Promoted Listings Standard (PLS) 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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br /><br />Use <a href="/api-docs/sell/marketing/resources/campaign/methods/createCampaign">createCampaign</a> to create a new campaign and use <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to get a list of existing campaigns. */
46
+ post: operations["createAdsByInventoryReference"];
47
+ };
48
+ "/ad_campaign/{campaign_id}/ad/{ad_id}": {
49
+ /** @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>Call <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve a list of the seller's current campaign IDs and call <a href="/api-docs/sell/marketing/resources/ad/methods/getAds">getAds</a> to retrieve their current ad IDs.</p> */
50
+ get: operations["getAd"];
51
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br /><br />When using the CPC funding model, use the <b>bulkUpdateAdsStatusByListingId</b> method to change the status of ads to ARCHIVED. */
52
+ delete: operations["deleteAd"];
53
+ };
54
+ "/ad_campaign/{campaign_id}/delete_ads_by_inventory_reference": {
55
+ /** @description This method works with listings that are managed with the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">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="/api-docs/sell/marketing/resources/campaign/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br /><br />When using the CPC funding model, use the bulkUpdateAdsStatusByInventoryReference method to change the status of ads to ARCHIVED. */
56
+ post: operations["deleteAdsByInventoryReference"];
57
+ };
58
+ "/ad_campaign/{campaign_id}/get_ads_by_inventory_reference": {
59
+ /** @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">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="/api-docs/sell/marketing/resources/campaign/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
60
+ get: operations["getAdsByInventoryReference"];
61
+ };
62
+ "/ad_campaign/{campaign_id}/ad/{ad_id}/update_bid": {
63
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve a seller's current campaign IDs and call <a href="/api-docs/sell/marketing/resources/ad/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
64
+ post: operations["updateBid"];
65
+ };
66
+ "/ad_campaign/{campaign_id}/ad_group": {
67
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method retrieves ad groups for the specified campaigns.<br /><br />Each campaign can only have <b>one</b> ad group.<br /><br />In the request, supply the <b>campaign_ids</b> as path parameters.<br /><br />Call <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve a list of the current campaign IDs for a seller. */
68
+ get: operations["getAdGroups"];
69
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method adds an ad group to an existing PLA campaign that uses the Cost Per Click (CPC) funding model.<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. */
70
+ post: operations["createAdGroup"];
71
+ };
72
+ "/ad_campaign/{campaign_id}/ad_group/{ad_group_id}": {
73
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve a list of the current campaign IDs for a seller and call <a href="/api-docs/sell/marketing/resources/adgroup/methods/getAdGroups">getAdGroups</a> for the ad group ID of the ad group you wish to retrieve. */
74
+ get: operations["getAdGroup"];
75
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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="/api-docs/sell/marketing/resources/adgroup/methods/getAdGroup">getAdGroup</a> to retrieve the current default bid and status of the ad group that you would like to update. */
76
+ put: operations["updateAdGroup"];
77
+ };
78
+ "/ad_campaign/{campaign_id}/ad_group/{ad_group_id}/suggest_bids": {
79
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method allows sellers to retrieve the suggested bids for input keywords and match type. */
80
+ post: operations["suggestBids"];
81
+ };
82
+ "/ad_campaign/{campaign_id}/ad_group/{ad_group_id}/suggest_keywords": {
83
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method allows sellers to retrieve a list of keyword ideas to be targeted for Promoted Listings campaigns. */
84
+ post: operations["suggestKeywords"];
85
+ };
86
+ "/ad_campaign/{campaign_id}/clone": {
87
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
88
+ post: operations["cloneCampaign"];
89
+ };
90
+ "/ad_campaign": {
91
+ /** @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 status, and the funding model (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, 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> */
92
+ get: operations["getCampaigns"];
93
+ /** @description This method creates a Promoted Listings ad campaign. <p>A Promoted Listings <i>campaign</i> is the structure into which you place the ads or ad group for the listings you want to promote.</p> <p>Identify the items you want to place into a campaign either by "key" or by "rule" as follows:</p> <ul><li><b>Rules-based campaigns</b> &ndash; A rules-based campaign adds items to the campaign according to the <i>criteria</i> you specify in your call to <b>createCampaign</b>. You can set the <b>autoSelectFutureInventory</b> request field to <code>true</code> so that after your campaign launches, eBay will regularly assess your new, revised, or newly-eligible listings to determine whether any should be added or removed from your campaign according to the rules you set. If there are, eBay will add or remove them automatically on a daily basis.</li> <li><b>Key-based campaigns</b> &ndash; Add items to an existing campaign using either listing ID values or Inventory Reference values: <ul><li>Add <b>listingId</b> values to an existing campaign by calling either <b>createAdByListingID</b> or <b>bulkCreateAdsByListingId</b>.</li> <li>Add <b>inventoryReference</b> values to an existing campaign by calling either <b>createAdByInventoryReference</b> or <b>bulkCreateAdsByInventoryReference</b>.</li><li>Add an <b>ad group</b> to an existing campaign by calling <b>createAdGroup</b>.</li></ul><p class="tablenote"><b>Note:</b> No matter how you add items to a Promoted Listings campaign, each campaign can contain ads for a maximum of 50,000 items. <br><br>If a rules-based campaign identifies more than 50,000 items, ads are created for only the first 50,000 items identified by the specified criteria, and ads are not created for the remaining items.</p> <p><b>Creating a campaign</b></p> <p>To create a basic campaign, supply:</p> <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> <p>The campaign funding model specifies how the Promoted Listings fee is calculated. Currently, the supported funding models are <code>COST_PER_SALE</code> and <code>COST_PER_CLICK</code>. For complete information on how the fee is calculated and when it applies, see <a href="/api-docs/sell/static/marketing/pl-overview.html#pl-fees">Promoted Listings fees</a>.</p> <p>If you populate the <b>campaignCriterion</b> object in your <b>createCampaign</b> request, campaign "ads" are created by "rule" for the listings that meet the criteria you specify, and these ads are associated with the newly created campaign.</p> <p>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">Promoted Listings campaign creation</a>.</p> <p>For recommendations on which listings are prime for a Promoted Listings ad campaign and to get guidance on how to set the <b>bidPercentage</b> field, see <a href="/api-docs/sell/static/marketing/pl-reco-api.html">Using the Recommendation API to help configure campaigns</a>.</p> <p class="tablenote"><b>Tip:</b> See <a href="/api-docs/sell/marketing/static/overview.html#PL-requirements">Promoted Listings requirements and restrictions</a> for the details on the marketplaces that support Promoted Listings via the API. See <a href="/api-docs/sell/static/marketing/pl-restrictions">Promoted Listings restrictions</a> for details about campaign limitations and restrictions.</p> */
94
+ post: operations["createCampaign"];
95
+ };
96
+ "/ad_campaign/{campaign_id}": {
97
+ /** @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="/api-docs/sell/marketing/resources/ad/methods/getAds">getAds</a>.</p> <p>Call <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve a list of the seller's campaign IDs.</p> */
98
+ get: operations["getCampaign"];
99
+ /** @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 /><br />Call <a href="/api-docs/sell/marketing/resources/campaign/methods/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. */
100
+ delete: operations["deleteCampaign"];
101
+ };
102
+ "/ad_campaign/{campaign_id}/end": {
103
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/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> */
104
+ post: operations["endCampaign"];
105
+ };
106
+ "/ad_campaign/find_campaign_by_ad_reference": {
107
+ /** @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">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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
108
+ get: operations["findCampaignByAdReference"];
109
+ };
110
+ "/ad_campaign/get_campaign_by_name": {
111
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve a list of the seller's campaign names.</p> */
112
+ get: operations["getCampaignByName"];
113
+ };
114
+ "/ad_campaign/{campaign_id}/pause": {
115
+ /** @description This method pauses an active (RUNNING) campaign. <p>You can restart the campaign by calling <a href="/api-docs/sell/marketing/resources/campaign/methods/resumeCampaign">resumeCampaign</a>, as long as the campaign's end date is in the future.</p> <p><b>Note: </b> The listings associated with a paused campaign cannot be added into another campaign.</p> <p>Call <a href="/api-docs/sell/marketing/resources/campaign/methods/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> */
116
+ post: operations["pauseCampaign"];
117
+ };
118
+ "/ad_campaign/{campaign_id}/resume": {
119
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/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> */
120
+ post: operations["resumeCampaign"];
121
+ };
122
+ "/ad_campaign/{campaign_id}/suggest_items": {
123
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method allows sellers to obtain ideas for listings, which can be targeted for Promoted Listings campaigns. */
124
+ get: operations["suggestItems"];
125
+ };
126
+ "/ad_campaign/{campaign_id}/update_ad_rate_strategy": {
127
+ /** @description This method updates the ad rate strategy for an existing Promoted Listings Standard (PLS) rules-based ad campaign that uses the Cost Per Sale (CPS) funding model.<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="/api-docs/sell/marketing/resources/campaign/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
128
+ post: operations["updateAdRateStrategy"];
129
+ };
130
+ "/ad_campaign/{campaign_id}/update_campaign_budget": {
131
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method updates the daily budget for a PLA 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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method. */
132
+ post: operations["updateCampaignBudget"];
133
+ };
134
+ "/ad_campaign/{campaign_id}/update_campaign_identification": {
135
+ /** @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 and set <b>startDate</b> to the current date (you cannot use a start date that is in the past), and set the <b>endDate</b> as desired. 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="/api-docs/sell/marketing/resources/campaign/methods/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. */
136
+ post: operations["updateCampaignIdentification"];
137
+ };
138
+ "/ad_campaign/{campaign_id}/bulk_create_keyword": {
139
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method adds keywords, in bulk, to an existing PLA ad group in a campaign that uses the Cost Per Click (CPC) funding model.<br /><br />This method also sets the CPC rate for each keyword.<br /><br />In the request, supply the <b>campaign_id</b> as a path parameter.<br /><br />Call the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a specified seller. */
140
+ post: operations["bulkCreateKeyword"];
141
+ };
142
+ "/ad_campaign/{campaign_id}/bulk_update_keyword": {
143
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method updates the bids and statuses of keywords, in bulk, for an existing PLA campaign.<br /><br />In the request, supply the <b>campaign_id</b> as a path parameter.<br /><br />Call the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a specified seller. */
144
+ post: operations["bulkUpdateKeyword"];
145
+ };
146
+ "/ad_campaign/{campaign_id}/keyword": {
147
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method can be used to retrieve all of the keywords for ad groups in PLA campaigns that use the Cost Per Click (CPC) funding model.<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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller. */
148
+ get: operations["getKeywords"];
149
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method creates keywords using a specified campaign ID for an existing PLA campaign.<br /><br />In the request, supply the <b>campaign_id</b> as a path parameter.<br /><br />Call the <a href="/api-docs/sell/marketing/resources/campaign/methods/suggestKeywords">suggestKeywords</a> method to retrieve a list of keyword ideas to be targeted for PLA campaigns, and call the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller. */
150
+ post: operations["createKeyword"];
151
+ };
152
+ "/ad_campaign/{campaign_id}/keyword/{keyword_id}": {
153
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method retrieves details on a specific keyword from an ad group within a PLA campaign that uses the Cost Per Click (CPC) funding model.<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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller and call the <a href="/api-docs/sell/marketing/resources/keyword/methods/getKeywords">getKeywords</a> method to retrieve their keyword IDs. */
154
+ get: operations["getKeyword"];
155
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method updates keywords using a campaign ID and keyword ID for an existing PLA 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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller and call the <a href="/api-docs/sell/marketing/resources/keyword/methods/getKeywords">getKeywords</a> method to retrieve their keyword IDs. */
156
+ put: operations["updateKeyword"];
157
+ };
158
+ "/bulk_create_negative_keyword": {
159
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method adds negative keywords, in bulk, to an existing ad group in a PLA campaign that uses the Cost Per Click (CPC) funding model.<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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a specified seller. */
160
+ post: operations["bulkCreateNegativeKeyword"];
161
+ };
162
+ "/bulk_update_negative_keyword": {
163
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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. */
164
+ post: operations["bulkUpdateNegativeKeyword"];
165
+ };
166
+ "/negative_keyword": {
167
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method can be used to retrieve all of the negative keywords for ad groups in PLA campaigns that use the Cost Per Click (CPC) funding model.<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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller. */
168
+ get: operations["getNegativeKeywords"];
169
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method adds a negative keyword to an existing ad group in a PLA campaign that uses the Cost Per Click (CPC) funding model.<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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a specified seller. */
170
+ post: operations["createNegativeKeyword"];
171
+ };
172
+ "/negative_keyword/{negative_keyword_id}": {
173
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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. */
174
+ get: operations["getNegativeKeyword"];
175
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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. */
176
+ put: operations["updateNegativeKeyword"];
177
+ };
178
+ "/ad_report/{report_id}": {
179
+ /** @description This call downloads the report as specified by the <b>report_id</b> path parameter. <br><br>Call <a href="/api-docs/sell/marketing/resources/ad_report_task/methods/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> */
180
+ get: operations["getReport"];
181
+ };
182
+ "/ad_report_metadata": {
183
+ /** @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>The request for this method does not use a payload or any URI parameters.<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> */
184
+ get: operations["getReportMetadata"];
185
+ };
186
+ "/ad_report_metadata/{report_type}": {
187
+ /** @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> */
188
+ get: operations["getReportMetadataForReportType"];
189
+ };
190
+ "/ad_report_task": {
191
+ /** @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> */
192
+ get: operations["getReportTasks"];
193
+ /** @description <span class="tablenote"><b>Note:</b> Using multiple funding models in one report is deprecated. If multiple funding models are used, a Warning will be returned in a header. This functionality will be decommissioned on April 3, 2023. See <a href="/develop/apis/api-deprecation-status">API Deprecation Status</a> for details.</span><br /><br />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">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="/api-docs/sell/marketing/resources/ad_report_task/methods/getReportTasks">getReportTasks</a> (or <a href="/api-docs/sell/marketing/resources/ad_report_task/methods/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 /><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="/api-docs/sell/marketing/resources/ad_report_metadata/methods/getReportMetadata">getReportMetadata</a> to retrieve a list of the fields you need to configure for each Promoted Listings report type.</span> */
194
+ post: operations["createReportTask"];
195
+ };
196
+ "/ad_report_task/{report_task_id}": {
197
+ /** @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="/api-docs/sell/marketing/resources/ad_report_task/methods/createReportTask">createReportTask</a>. Get a complete list of a seller's report-task IDs by calling <a href="/api-docs/sell/marketing/resources/ad_report_task/methods/getReportTasks">getReportTasks</a>.</p> */
198
+ get: operations["getReportTask"];
199
+ /** @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="/api-docs/sell/marketing/resources/ad_report_task/methods/createReportTask">createReportTask</a>. Get a complete list of a seller's report-task IDs by calling <a href="/api-docs/sell/marketing/resources/ad_report_task/methods/getReportTasks">getReportTasks</a>.</p> */
200
+ delete: operations["deleteReportTask"];
201
+ };
202
+ "/item_price_markdown": {
203
+ /** @description This method creates an <b>item price markdown promotion</b> (know simply as a "markdown promotion") where a discount amount is applied directly to the items included the promotion. Discounts can be specified as either a monetary amount or a percentage off the standard sales price. eBay highlights promoted items by placing teasers for the items throughout the online sales flows. <p>Unlike an <a href="/api-docs/sell/marketing/resources/item_promotion/methods/createItemPromotion">item promotion</a>, a markdown promotion does not require the buyer meet a "threshold" before the offer takes effect. With markdown promotions, all the buyer needs to do is purchase the item to receive the promotion benefit.</p> <p class="tablenote"><b>Important:</b> There are some restrictions for which listings are available for price markdown promotions. For details, see <a href="/api-docs/sell/marketing/static/overview.html#PM-requirements">Promotions Manager requirements and restrictions</a>. <br><br>In addition, we recommend you list items at competitive prices before including them in your markdown promotions. For an extensive list of pricing recommendations, see the <b>Growth</b> tab in Seller Hub.</p> <p>There are two ways to add items to markdown promotions:</p> <ul><li><b>Key-based promotions</b> select items using either the listing IDs or inventory reference IDs of the items you want to promote. 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 the promotion.</li> <li><b>Rule-based promotions</b> select items using a list of eBay category IDs or seller Store category IDs. Rules can further constrain items in a promotion by minimum and maximum prices, brands, and item conditions.</li></ul> <p>New promotions 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 promotion and you want to be sure it's correctly configured before scheduling it to run. When you create a promotion, the promotion ID is returned in the <b>Location</b> response header. Use this ID to reference the promotion in subsequent requests (such as to schedule a promotion 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">Promotions Manager</a> in the <i>Selling Integration Guide</i> for details and examples showing how to create and manage seller promotions.</p> <p>Markdown promotions are available on all eBay marketplaces. For more information, see <a href="/api-docs/sell/marketing/static/overview.html#PM-requirements">Promotions Manager requirements and restrictions</a>.</p> */
204
+ post: operations["createItemPriceMarkdownPromotion"];
205
+ };
206
+ "/item_price_markdown/{promotion_id}": {
207
+ /** @description This method returns the complete details of the item price markdown promotion that's indicated by the <b>promotion_id</b> path parameter. <br><br>Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions. */
208
+ get: operations["getItemPriceMarkdownPromotion"];
209
+ /** @description This method updates the specified item price markdown promotion with the new configuration that you supply in the payload of the request. Specify the promotion you want to update using the <b>promotion_id</b> path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions. <br><br>When updating a promotion, supply all the fields that you used to configure the original promotion (and not just the fields you are updating). eBay replaces the specified promotion with the values you supply in the update request and if you don't pass a field that currently has a value, the update request fails. <br><br>The parameters you are allowed to update with this request depend on the status of the promotion you're updating: <ul><li>DRAFT or SCHEDULED promotions: You can update any of the parameters in these promotions that have not yet started to run, including the <b>discountRules</b>.</li> <li>RUNNING promotions: You can change the <b>endDate</b> and the item's inventory but you cannot change the promotional discount or the promotion's start date.</li> <li>ENDED promotions: Nothing can be changed.</li></ul> */
210
+ put: operations["updateItemPriceMarkdownPromotion"];
211
+ /** @description This method deletes the item price markdown promotion specified by the <b>promotion_id</b> path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions. <br><br>You can delete any promotion with the exception of those that are currently active (RUNNING). To end a running promotion, call <a href="/api-docs/sell/marketing/resources/item_price_markdown/methods/updateItemPriceMarkdownPromotion">updateItemPriceMarkdownPromotion</a> and adjust the <b>endDate</b> field as appropriate. */
212
+ delete: operations["deleteItemPriceMarkdownPromotion"];
213
+ };
214
+ "/item_promotion": {
215
+ /** @description This method creates an <b>item promotion</b>, where the buyer receives a discount when they meet the buying criteria that's set for the promotion. Known here as "threshold promotions", these promotions trigger when a threshold is met. <p>eBay highlights promoted items by placing teasers for the promoted 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> promotions 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 promotion:</p> <ul><li><b>Key-based promotions</b> select items using either the listing IDs or inventory reference IDs of the items you want to promote. 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 the promotion.</li> <li><b>Rule-based promotions</b> select items using a list of eBay category IDs or seller Store category IDs. Rules can further constrain items in a promotion by minimum and maximum prices, brands, and item conditions.</li></ul> <p>You must create a new promotion in either a <code>DRAFT</code> or <code>SCHEDULED</code> state. Use the DRAFT state when you are initially creating a promotion and you want to be sure it's correctly configured before scheduling it to run. When you create a promotion, the promotion ID is returned in the <b>Location</b> response header. Use this ID to reference the promotion in subsequent requests.</p> <p class="tablenote"><b>Tip:</b> Refer to the <a href="/api-docs/sell/static/marketing/promotions-manager.html">Selling Integration Guide</a> for details and examples showing how to create and manage threshold promotions using the Promotions Manager.</p> <p>For information on the eBay marketplaces that support item promotions, see <a href="/api-docs/sell/marketing/static/overview.html#PM-requirements">Promotions Manager requirements and restrictions</a>.</p> */
216
+ post: operations["createItemPromotion"];
217
+ };
218
+ "/item_promotion/{promotion_id}": {
219
+ /** @description This method returns the complete details of the threshold promotion specified by the <b>promotion_id</b> path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions. */
220
+ get: operations["getItemPromotion"];
221
+ /** @description This method updates the specified threshold promotion with the new configuration that you supply in the request. Indicate the promotion you want to update using the <b>promotion_id</b> path parameter. <p>Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions.</p> <p>When updating a promotion, supply all the fields that you used to configure the original promotion (and not just the fields you are updating). eBay replaces the specified promotion with the values you supply in the update request and if you don't pass a field that currently has a value, the update request will fail.</p> <p>The parameters you are allowed to update with this request depend on the status of the promotion you're updating: <ul><li>DRAFT or SCHEDULED promotions: You can update any of the parameters in these promotions that have not yet started to run, including the <b>discountRules</b>.</li> <li>RUNNING or PAUSED promotions: You can change the <b>endDate</b> and the item's inventory but you cannot change the promotional discount or the promotion's start date.</li> <li>ENDED promotions: Nothing can be changed.</li></ul> <p class="tablenote"><b>Tip:</b> When updating a <code>RUNNING</code> or <code>PAUSED</code> promotion, set the <b>status</b> field to <code>SCHEDULED</code> for the update request. When the promotion is updated, the previous status (either <code>RUNNING</code> or <code>PAUSED</code>) is retained.</p> */
222
+ put: operations["updateItemPromotion"];
223
+ /** @description This method deletes the threshold promotion specified by the <b>promotion_id</b> path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions. <br><br>You can delete any promotion with the exception of those that are currently active (RUNNING). To end a running threshold promotion, call <a href="/api-docs/sell/marketing/resources/item_promotion/methods/updateItemPromotion">updateItemPromotion</a> and adjust the <b>endDate</b> field as appropriate. */
224
+ delete: operations["deleteItemPromotion"];
225
+ };
226
+ "/promotion/{promotion_id}/get_listing_set": {
227
+ /** @description This method returns the set of listings associated with the <b>promotion_id</b> specified in the path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions. <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> */
228
+ get: operations["getListingSet"];
229
+ };
230
+ "/promotion": {
231
+ /** @description This method returns a list of a seller's undeleted promotions. <p>The call returns up to 200 currently-available promotions on the specified marketplace. While the response body does not include the promotion'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 promotion).</p> <p>Use query parameters to sort and filter the results by the number of promotions to return, the promotion state or type, and the eBay marketplace. You can also supply keywords to limit the response to the promotions that contain that keywords in the title of the promotion.</p> <p><b>Maximum returned:</b> 200</p> */
232
+ get: operations["getPromotions"];
233
+ };
234
+ "/promotion/{promotion_id}/pause": {
235
+ /** @description This method pauses a currently-active (RUNNING) threshold promotion and changes the state of the promotion from <code>RUNNING</code> to <code>PAUSED</code>. Pausing a promotion makes the promotion temporarily unavailable to buyers and any currently-incomplete transactions will not receive the promotional offer until the promotion is resumed. Also, promotion teasers are not displayed when a promotion is paused. <br><br>Pass the ID of the promotion you want to pause using the <b>promotion_id</b> path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of the seller's promotions. <br><br><b>Note:</b> You can only pause threshold promotions (you cannot pause markdown promotions). */
236
+ post: operations["pausePromotion"];
237
+ };
238
+ "/promotion/{promotion_id}/resume": {
239
+ /** @description This method restarts a threshold promotion that was previously paused and changes the state of the promotion from <code>PAUSED</code> to <code>RUNNING</code>. Only promotions that have been previously paused can be resumed. Resuming a promotion reinstates the promotional teasers and any transactions that were in motion before the promotion was paused will again be eligible for the promotion. <br><br>Pass the ID of the promotion you want to resume using the <b>promotion_id</b> path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of the seller's promotions. */
240
+ post: operations["resumePromotion"];
241
+ };
242
+ "/promotion_report": {
243
+ /** @description This method generates a report that lists the seller's running, paused, and ended promotions for the specified eBay marketplace. The result set can be filtered by the promotion status and the number of results to return. You can also supply <i>keywords</i> to limit the report to promotions 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. */
244
+ get: operations["getPromotionReports"];
245
+ };
246
+ "/promotion_summary_report": {
247
+ /** @description This method generates a report that summarizes the seller's promotions for the specified eBay marketplace. The report returns information on <code>RUNNING</code>, <code>PAUSED</code>, and <code>ENDED</code> promotions (deleted reports are not returned) and summarizes the seller's campaign performance for all promotions on a given site. <br><br>For information about summary reports, see <a href="/api-docs/sell/static/marketing/pm-summary-report.html">Reading the item promotion Summary report</a>. */
248
+ get: operations["getPromotionSummaryReport"];
249
+ };
250
+ }
251
+ export type webhooks = Record<string, never>;
252
+ export interface components {
253
+ schemas: {
254
+ /** @description A type that defines the fields for an ad. */
255
+ Ad: {
256
+ /** @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="/api-docs/sell/marketing/resources/adgroup/methods/createAdGroup">createAdGroup</a> call, and all ad groups must be associated with a CPC campaign. */
257
+ adGroupId?: string;
258
+ /** @description A unique eBay-assigned ID that is generated when the ad is created. */
259
+ adId?: string;
260
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:AdStatusEnum'>eBay API documentation</a> */
261
+ adStatus?: string;
262
+ /** @description An array containing alert messages for the ad. */
263
+ alerts?: (components["schemas"]["Alert"])[];
264
+ /** @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 /><b>Minimum value:</b> 2.0 <br><b>Maximum value:</b> 100.0 */
265
+ bidPercentage?: string;
266
+ /** @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">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> */
267
+ inventoryReferenceId?: string;
268
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:InventoryReferenceTypeEnum'>eBay API documentation</a> */
269
+ inventoryReferenceType?: string;
270
+ /** @description A unique eBay-assigned ID that is generated when a listing is created. */
271
+ listingId?: string;
272
+ };
273
+ /** @description A container for 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> */
274
+ AdGroup: {
275
+ /** @description A unique eBay-assigned ID for an ad group in a campaign that uses the Cost Per Click (CPC) funding model. */
276
+ adGroupId?: string;
277
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:AdGroupStatusEnum'>eBay API documentation</a> */
278
+ adGroupStatus?: string;
279
+ /** @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 */
280
+ defaultBid?: components["schemas"]["Amount"];
281
+ /** @description The seller-defined name of the ad group. */
282
+ name?: string;
283
+ };
284
+ /** @description A container for 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> */
285
+ AdGroupPagedCollectionResponse: {
286
+ /** @description The details of existing ad groups, such as the name, ID, and status of the ad groups. */
287
+ adGroups?: (components["schemas"]["AdGroup"])[];
288
+ /** @description The URI of the current page of results from the result set. */
289
+ href?: string;
290
+ /**
291
+ * Format: int32
292
+ * @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.
293
+ */
294
+ limit?: number;
295
+ /** @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. */
296
+ next?: string;
297
+ /**
298
+ * Format: int32
299
+ * @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>
300
+ */
301
+ offset?: number;
302
+ /** @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. */
303
+ prev?: string;
304
+ /**
305
+ * Format: int32
306
+ * @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>
307
+ */
308
+ total?: number;
309
+ };
310
+ /** @description This type is a container for a list of ad IDs. */
311
+ AdIds: {
312
+ /** @description A list of ad IDs. Only one ad can be deleted per operation and only one adId value will be returned. */
313
+ adIds?: (string)[];
314
+ };
315
+ /** @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. */
316
+ AdPagedCollectionResponse: {
317
+ /** @description The list of ads that matched the request criteria. */
318
+ ads?: (components["schemas"]["Ad"])[];
319
+ /** @description The URI of the current page of results from the result set. */
320
+ href?: string;
321
+ /**
322
+ * Format: int32
323
+ * @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>
324
+ */
325
+ limit?: number;
326
+ /** @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 */
327
+ next?: string;
328
+ /**
329
+ * Format: int32
330
+ * @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>
331
+ */
332
+ offset?: number;
333
+ /** @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 */
334
+ prev?: string;
335
+ /**
336
+ * Format: int32
337
+ * @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>.
338
+ */
339
+ total?: number;
340
+ };
341
+ /** @description This type defines the fields for an ad ID and its associated URL. */
342
+ AdReference: {
343
+ /** @description A unique eBay-assigned ID for an ad. This ID is generated when an ad is created. */
344
+ adId?: string;
345
+ /** @description The getAd URI of an ad. You can use this URI to retrieve the ad. */
346
+ href?: string;
347
+ };
348
+ /** @description This type is a container for a list of ad IDs and their associated URIs. */
349
+ AdReferences: {
350
+ /** @description A list of ad IDs. An ad ID is generated for each successfully created ad. Only one ad can be created per operation. */
351
+ ads?: (components["schemas"]["AdReference"])[];
352
+ };
353
+ /** @description This type defines the fields returned in an ad response. */
354
+ AdResponse: {
355
+ /** @description A unique eBay-assigned ID for an ad group in a Promoted Listings Advanced (PLA) 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> */
356
+ adGroupId?: string;
357
+ /** @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> */
358
+ adId?: string;
359
+ /** @description An array of errors associated with the request. */
360
+ errors?: (components["schemas"]["Error"])[];
361
+ /** @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> */
362
+ href?: string;
363
+ /** @description A unique eBay-assigned ID for a listing that is generated when the listing is created. */
364
+ listingId?: string;
365
+ /**
366
+ * Format: int32
367
+ * @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>
368
+ */
369
+ statusCode?: number;
370
+ };
371
+ /** @description A type that contains the fields for the ad update response. */
372
+ AdUpdateResponse: {
373
+ /** @description A unique eBay-assigned ID that is generated when the ad is created. */
374
+ adId?: string;
375
+ /** @description A list of errors associated with the specified listing ID. */
376
+ errors?: (components["schemas"]["Error"])[];
377
+ /** @description The URI for the ad, which can be used to retrieve the ad. */
378
+ href?: string;
379
+ /** @description A unique eBay-assigned ID that is generated when the listing is created. */
380
+ listingId?: string;
381
+ /**
382
+ * Format: int32
383
+ * @description An HTTP status code that indicates the response-status of the request.
384
+ */
385
+ statusCode?: number;
386
+ };
387
+ /** @description A type that contains the fields for the ad update status by listing ID response. */
388
+ AdUpdateStatusByListingIdResponse: {
389
+ /** @description A unique eBay-assigned ID for an ad group in a campaign that uses the Cost Per Click (CPC) funding model. */
390
+ adGroupId?: string;
391
+ /** @description A list of errors associated with the specified listing ID. */
392
+ errors?: (components["schemas"]["Error"])[];
393
+ /** @description The URI for the ad, which can be used to retrieve the ad. */
394
+ href?: string;
395
+ /** @description A unique eBay-assigned ID that is generated when the listing is created. */
396
+ listingId?: string;
397
+ /**
398
+ * Format: int32
399
+ * @description An HTTP status code that indicates the response-status of the request.
400
+ */
401
+ statusCode?: number;
402
+ };
403
+ /** @description A type that contains the fields for the ad update status response. */
404
+ AdUpdateStatusResponse: {
405
+ /** @description A unique eBay-assigned ID that is generated when the ad is created. */
406
+ adId?: string;
407
+ /** @description A list of errors associated with the specified listing ID. */
408
+ errors?: (components["schemas"]["Error"])[];
409
+ /** @description The URI for the ad, which can be used to retrieve the ad. */
410
+ href?: string;
411
+ /**
412
+ * Format: int32
413
+ * @description An HTTP status code that indicates the response-status of the request.
414
+ */
415
+ statusCode?: number;
416
+ };
417
+ /** @description A type that provides additional information for suggested keywords. */
418
+ AdditionalInfo: {
419
+ /** @description The type of additional information provided for the suggested keyword.<br /><br /><strong>Valid Value:</strong> <code>KEYWORD_INSIGHTS</code> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:AdditionalInfoEnum'>eBay API documentation</a> */
420
+ infoType?: string;
421
+ /** @description A list of additional data provided for the suggested keyword. */
422
+ metrics?: (components["schemas"]["AdditionalInfoData"])[];
423
+ };
424
+ /** @description A type that defines the data produced for additional information about suggested keywords. */
425
+ AdditionalInfoData: {
426
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:MetricEnum'>eBay API documentation</a> */
427
+ metricKey?: string;
428
+ /** @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> */
429
+ value?: string;
430
+ };
431
+ /** @description This type defines the container for an array of ads. */
432
+ Ads: {
433
+ /** @description A list of ad IDs. An ad ID is generated for each successfully created ad. */
434
+ ads?: (components["schemas"]["Ad"])[];
435
+ };
436
+ /** @description A type that contains the alert message fields for the ad. */
437
+ Alert: {
438
+ /** @description The type of alert message. For example, an invalid bid percentage. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:AlertTypeEnum'>eBay API documentation</a> */
439
+ alertType?: string;
440
+ /** @description A description of the alert including dimensions and aspects. */
441
+ details?: (components["schemas"]["AlertDetails"])[];
442
+ };
443
+ /** @description A type that contains the alert detail fields. */
444
+ AlertDetails: {
445
+ /** @description The dimension information of the alert including keys and values. */
446
+ dimension?: components["schemas"]["AlertDimension"];
447
+ /** @description The aspect information of the alert including keys and values. */
448
+ aspect?: components["schemas"]["Aspect"];
449
+ };
450
+ /** @description A type that contains the dimension fields. */
451
+ AlertDimension: {
452
+ /** @description The key field of the applied dimension. For example, the marketplace Id. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:DimensionKeyEnum'>eBay API documentation</a> */
453
+ key?: string;
454
+ /** @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='/api-docs/sell/marketing/types/ba:MarketplaceIdEnum'>MarketplaceIdEnum</a>. */
455
+ value?: string;
456
+ };
457
+ /** @description A complex type that describes the value of a monetary amount as represented by a global currency. */
458
+ Amount: {
459
+ /** @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. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/ba:CurrencyCodeEnum'>eBay API documentation</a> */
460
+ currency?: string;
461
+ /** @description The monetary amount in the specified <b>currency</b>. <br><br><i>Required in</i> the <b>amount</b> type. */
462
+ value?: string;
463
+ };
464
+ /** @description A type that contains the aspect fields. */
465
+ Aspect: {
466
+ /** @description The type of the aspect. For example, <code>MINIMUM_REQUIRED</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:AspectKeyEnum'>eBay API documentation</a> */
467
+ key?: string;
468
+ /** @description The value of the aspect. For example, if the aspect is a percentage, a value of '2.0' would equal 2%. */
469
+ value?: string;
470
+ };
471
+ /** @description This type defines the fields for any warning error messages. */
472
+ BaseResponse: {
473
+ /** @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. */
474
+ warnings?: (components["schemas"]["Error"])[];
475
+ };
476
+ /** @description A container for 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> */
477
+ Budget: {
478
+ /** @description The allocated budget amount for a CPC Promoted Listings campaign. */
479
+ amount?: components["schemas"]["Amount"];
480
+ /** @description The budget status for a CPC Promoted Listings campaign. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:BudgetStatusEnum'>eBay API documentation</a> */
481
+ budgetStatus?: string;
482
+ };
483
+ /** @description A container for 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> */
484
+ BudgetRequest: {
485
+ /** @description The allocated budget amount for a CPC Promoted Listings campaign. */
486
+ amount?: components["schemas"]["Amount"];
487
+ };
488
+ /** @description This type defines the fields for the create ads in bulk response. */
489
+ BulkAdResponse: {
490
+ /** @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. */
491
+ responses?: (components["schemas"]["AdResponse"])[];
492
+ };
493
+ /** @description A type that defines the fields for updated ads in the bulk response. */
494
+ BulkAdUpdateResponse: {
495
+ /** @description A set of ad listings processed by the call. */
496
+ responses?: (components["schemas"]["AdUpdateResponse"])[];
497
+ };
498
+ /** @description A type that defines the fields for the updated ad status in the bulk response. */
499
+ BulkAdUpdateStatusByListingIdResponse: {
500
+ /** @description An array of processed ad listings in bulk. */
501
+ responses?: (components["schemas"]["AdUpdateStatusByListingIdResponse"])[];
502
+ };
503
+ /** @description A type that defines the fields for the updated ad status in the bulk response. */
504
+ BulkAdUpdateStatusResponse: {
505
+ /** @description An array of processed ad listings in bulk. */
506
+ responses?: (components["schemas"]["AdUpdateStatusResponse"])[];
507
+ };
508
+ /** @description This type defines the fields for the create ads in bulk by listing IDs. */
509
+ BulkCreateAdRequest: {
510
+ /** @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 */
511
+ requests?: (components["schemas"]["CreateAdRequest"])[];
512
+ };
513
+ /** @description This type defines the fields used to create ads in bulk by inventory reference IDs. */
514
+ BulkCreateAdsByInventoryReferenceRequest: {
515
+ /** @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. */
516
+ requests?: (components["schemas"]["CreateAdsByInventoryReferenceRequest"])[];
517
+ };
518
+ /** @description This type defines the response fields used by the <b>bulkCreateAdsByInventoryReference</b> method. */
519
+ BulkCreateAdsByInventoryReferenceResponse: {
520
+ /** @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. */
521
+ responses?: (components["schemas"]["CreateAdsByInventoryReferenceResponse"])[];
522
+ };
523
+ /** @description A type that contains the fields for the bulk request to create keywords. */
524
+ BulkCreateKeywordRequest: {
525
+ /** @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. */
526
+ requests?: (components["schemas"]["CreateKeywordRequest"])[];
527
+ };
528
+ /** @description A type that contains the response fields for the bulk request to create keywords. */
529
+ BulkCreateKeywordResponse: {
530
+ /** @description A list of keywords that have been processed by the request. */
531
+ responses?: (components["schemas"]["KeywordResponse"])[];
532
+ };
533
+ /** @description A type that contains the fields for the bulk request to create negative keywords. */
534
+ BulkCreateNegativeKeywordRequest: {
535
+ /** @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. */
536
+ requests?: (components["schemas"]["CreateNegativeKeywordRequest"])[];
537
+ };
538
+ /** @description A type that contains the response fields for the bulk request to create negative keywords. */
539
+ BulkCreateNegativeKeywordResponse: {
540
+ /** @description A list of negative keywords that have been processed by the request. */
541
+ responses?: (components["schemas"]["NegativeKeywordResponse"])[];
542
+ };
543
+ /** @description This type defines the fields that the call uses to remove ads in bulk. */
544
+ BulkDeleteAdRequest: {
545
+ /** @description An array of the listing IDs that identify the ads to remove. */
546
+ requests?: (components["schemas"]["DeleteAdRequest"])[];
547
+ };
548
+ /** @description This type defines a container that lists the ads that <b>bulkDeleteAdsByListingId</b> deleted. */
549
+ BulkDeleteAdResponse: {
550
+ /** @description An array of the ads that were deleted by the <b>bulkDeleteAdsByListingId</b> request, including information associated with each individual delete request. */
551
+ responses?: (components["schemas"]["DeleteAdResponse"])[];
552
+ };
553
+ /** @description This type defines the request fields that <b>bulkDeleteAdsByInventoryReference</b> uses to delete ads in bulk. */
554
+ BulkDeleteAdsByInventoryReferenceRequest: {
555
+ /** @description A list of inventory referenceID and inventory reference type pairs that specify the set of ads to remove in bulk. */
556
+ requests?: (components["schemas"]["DeleteAdsByInventoryReferenceRequest"])[];
557
+ };
558
+ /** @description This type defines a container that lists the ads that <b>bulkDeleteAdsByInventoryReference</b> deleted. */
559
+ BulkDeleteAdsByInventoryReferenceResponse: {
560
+ /** @description An array of the ads that were deleted by the <b>bulkDeleteAdsByInventoryReference</b> request, including information associated with each individual delete request. */
561
+ responses?: (components["schemas"]["DeleteAdsByInventoryReferenceResponse"])[];
562
+ };
563
+ /** @description A type that defines the fields for the <b>BulkUpdateAdStatusByListingId</b> request. */
564
+ BulkUpdateAdStatusByListingIdRequest: {
565
+ /** @description An array of listing IDs and bid percentages. */
566
+ requests?: (components["schemas"]["UpdateAdStatusByListingIdRequest"])[];
567
+ };
568
+ /** @description A type that defines the fields for the <b>BulkUpdateAdStatus</b> request. */
569
+ BulkUpdateAdStatusRequest: {
570
+ /** @description An array of listing IDs and bid percentages. */
571
+ requests?: (components["schemas"]["UpdateAdStatusRequest"])[];
572
+ };
573
+ /** @description A type that defines the fields for the <b>BulkUpdateAdStatusByInventoryReference</b> response. */
574
+ BulkUpdateAdsByInventoryReferenceResponse: {
575
+ /** @description A list of inventory references that were processed from the request. */
576
+ responses?: (components["schemas"]["UpdateAdsByInventoryReferenceResponse"])[];
577
+ };
578
+ /** @description A type that defines the fields for the <b>BulkUpdateKeyword</b> request. */
579
+ BulkUpdateKeywordRequest: {
580
+ /** @description Use this array to update the bid values and/or statuses of one or more existing keywords. */
581
+ requests?: (components["schemas"]["UpdateKeywordByKeywordIdRequest"])[];
582
+ };
583
+ /** @description A type that defines the fields for the <b>BulkUpdateKeyword</b> response. */
584
+ BulkUpdateKeywordResponse: {
585
+ /** @description A list of keywords that have been processed from the bulk request. */
586
+ responses?: (components["schemas"]["UpdateKeywordResponse"])[];
587
+ };
588
+ /** @description A type that defines the fields for the <b>BulkUpdateNegativeKeyword</b> request. */
589
+ BulkUpdateNegativeKeywordRequest: {
590
+ /** @description An array to update the statuses of one or more existing negative keywords. */
591
+ requests?: (components["schemas"]["UpdateNegativeKeywordIdRequest"])[];
592
+ };
593
+ /** @description A type that defines the fields for the <b>BulkUpdateNegativeKeyword</b> response. */
594
+ BulkUpdateNegativeKeywordResponse: {
595
+ /** @description A list of negative keywords that have been processed from the bulk request. */
596
+ responses?: (components["schemas"]["UpdateNegativeKeywordResponse"])[];
597
+ };
598
+ /** @description This type defines the fields that describe an ad campaign. */
599
+ Campaign: {
600
+ /** @description This array contains alert messages for the campaign. */
601
+ alerts?: (components["schemas"]["Alert"])[];
602
+ /** @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> */
603
+ budget?: components["schemas"]["CampaignBudget"];
604
+ /** @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> */
605
+ campaignCriterion?: components["schemas"]["CampaignCriterion"];
606
+ /** @description A unique eBay-assigned ID for a campaign. This ID is generated when a campaign is created. */
607
+ campaignId?: string;
608
+ /** @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 */
609
+ campaignName?: string;
610
+ /** @description Indicates the status of the campaign, such as <code>RUNNING</code>, <code>PAUSED</code>, and <code>ENDED</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:CampaignStatusEnum'>eBay API documentation</a> */
611
+ campaignStatus?: string;
612
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/endCampaign">endCampaign</a> call, or if they update the campaign at a later time with an end date. */
613
+ endDate?: string;
614
+ /** @description This container shows the funding model used for the campaign, and the default bid percentage for a campaign that uses the Cost Per Sale (CPS) funding model. <p>Currently, the supported funding models are <code>COST_PER_SALE</code> and <code>COST_PER_CLICK</code>. */
615
+ fundingStrategy?: components["schemas"]["FundingStrategy"];
616
+ /** @description The ID of the eBay marketplace where the campaign is hosted. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
617
+ marketplaceId?: string;
618
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/getCampaign">getCampaign</a> to check the status of the campaign.</p> */
619
+ startDate?: string;
620
+ };
621
+ /** @description A type that defines the budget details for a Cost Per Click (CPC) Promoted Listings campaign. */
622
+ CampaignBudget: {
623
+ /** @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 /><b>Valid Values</b>:<ul><li><code>50.00</code></li><li><code>100.00</code></li></ul> */
624
+ daily?: components["schemas"]["Budget"];
625
+ };
626
+ /** @description A container for the details of a Promoted Listings campaign that uses the Cost Per Click (CPC) funding model. */
627
+ CampaignBudgetRequest: {
628
+ /** @description The daily budget limit for a CPC Promoted Listings campaign. */
629
+ daily?: components["schemas"]["BudgetRequest"];
630
+ };
631
+ /** @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. */
632
+ CampaignCriterion: {
633
+ /** @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> */
634
+ autoSelectFutureInventory?: boolean;
635
+ /** @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. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:CriterionTypeEnum'>eBay API documentation</a> */
636
+ criterionType?: string;
637
+ /** @description This container shows all of the rules/inclusion filters used to add listings to the campaign. */
638
+ selectionRules?: (components["schemas"]["SelectionRule"])[];
639
+ };
640
+ /** @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. */
641
+ CampaignPagedCollectionResponse: {
642
+ /** @description This array contains all of the seller's campaign that match the request criteria. */
643
+ campaigns?: (components["schemas"]["Campaign"])[];
644
+ /** @description The URI of the current page of results from the result set. */
645
+ href?: string;
646
+ /**
647
+ * Format: int32
648
+ * @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.
649
+ */
650
+ limit?: number;
651
+ /** @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 */
652
+ next?: string;
653
+ /**
654
+ * Format: int32
655
+ * @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>
656
+ */
657
+ offset?: number;
658
+ /** @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 */
659
+ prev?: string;
660
+ /**
661
+ * Format: int32
662
+ * @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>.
663
+ */
664
+ total?: number;
665
+ };
666
+ /** @description This type contains a list of campaigns. */
667
+ Campaigns: {
668
+ /** @description This is an array of one or campaigns that match the listing or inventory item group specified in the request. */
669
+ campaigns?: (components["schemas"]["Campaign"])[];
670
+ };
671
+ /** @description This type defines the fields needed for a clone-campaign request. */
672
+ CloneCampaignRequest: {
673
+ /** @description A seller-defined name for the newly-cloned 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 */
674
+ campaignName?: string;
675
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/endCampaign">endCampaign</a> call, or if they update the campaign at a later time with an end date. */
676
+ endDate?: string;
677
+ /** @description This container is used to set the funding model and default bid percentage for the campaign to be cloned. */
678
+ fundingStrategy?: components["schemas"]["FundingStrategy"];
679
+ /** @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> */
680
+ startDate?: string;
681
+ };
682
+ /** @description This container defines a coded coupon promotion. It is required if the promotion type is CODED_COUPON. */
683
+ CouponConfiguration: {
684
+ /** @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 promotion type is CODED_COUPON. */
685
+ couponCode?: string;
686
+ /** @description This indicates the type of Coded Coupon promotion, and is required when the promotion 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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:CouponTypeEnum'>eBay API documentation</a> */
687
+ couponType?: string;
688
+ /**
689
+ * Format: int32
690
+ * @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.
691
+ */
692
+ maxCouponRedemptionPerUser?: number;
693
+ };
694
+ /** @description A type that defines the fields for the <b>CreateAdGroup</b> request. */
695
+ CreateAdGroupRequest: {
696
+ /** @description A bid amount that applies to all of the keywords in an ad group that do not have individual bids. */
697
+ defaultBid?: components["schemas"]["Amount"];
698
+ /** @description The seller-defined name of the ad group. */
699
+ name?: string;
700
+ };
701
+ /** @description This type defines the fields for the create ad request. */
702
+ CreateAdRequest: {
703
+ /** @description A unique eBay-assigned ID for an ad group in a campaign that uses the Cost Per Click (CPC) funding model. <p><i>Required if</i> the campaign's funding model is Cost Per Click (CPC).</p><p>Create an ad group using the <a href="/api-docs/sell/marketing/resources/adgroup/methods/createAdGroup">createAdGroup</a> method.</p><p>Specify the campaign to associate the ad group with using the <b>campaign_id</b> path parameter. </p><span class="tablenote"><b>Note:</b> You can call the <a href="/api-docs/sell/marketing/resources/adgroup/methods/getAdGroups">getAdGroups</a> method to retrieve the ad group IDs for a seller.</span> */
704
+ adGroupId?: string;
705
+ /** @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>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 /><b>Minimum value:</b> 2.0 <br><b>Maximum value:</b> 100.0 */
706
+ bidPercentage?: string;
707
+ /** @description A unique eBay-assigned ID for a listing that is generated when the listing is created. <p class="tablenote"><b>Note:</b> This field accepts listing IDs, as generated by the Inventory API, and item IDs, as used in the eBay Traditional API set (e.g., the Trading and Finding APIs).</p> */
708
+ listingId?: string;
709
+ };
710
+ /** @description This type defines the fields needed to create ads by inventory reference ID request. */
711
+ CreateAdsByInventoryReferenceRequest: {
712
+ /** @description <span class="tablenote"><b>Note:</b> This field is not currently in use. Ad groups are only applicable to Promoted Listings Advanced (PLA) ad campaigns that use the Cost Per Click (CPC) funding model. See <a href="/api-docs/sell/static/marketing/pl-overview.html#funding-model">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
713
+ adGroupId?: string;
714
+ /** @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>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 /><b>Minimum value:</b> 2.0 <br><b>Maximum value:</b> 100.0 */
715
+ bidPercentage?: string;
716
+ /** @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">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>You must always specify both an <b>inventoryReferenceId</b> and an <b>inventoryReferenceType</b> to indicate an item that's managed with the Inventory API.</p> */
717
+ inventoryReferenceId?: string;
718
+ /** @description Indicates the type of item the <b>inventoryReferenceId</b> references. The item can be either an <code>INVENTORY_ITEM</code> or <code>INVENTORY_ITEM_GROUP</code>. <p>You must always pair an <b>inventoryReferenceId</b> with and <b>inventoryReferenceType</b>.</p> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:InventoryReferenceTypeEnum'>eBay API documentation</a> */
719
+ inventoryReferenceType?: string;
720
+ };
721
+ /** @description This type defines the fields returned when you create an ad by inventory reference ID. */
722
+ CreateAdsByInventoryReferenceResponse: {
723
+ /** @description A unique eBay-assigned ID for an ad group in a Promoted Listings Advanced (PLA) 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> */
724
+ adGroupId?: string;
725
+ /** @description A list of ad IDs. An ad ID is generated for each successfully created ad. */
726
+ ads?: (components["schemas"]["AdReference"])[];
727
+ /** @description An array of errors or warnings associated with the create-ads request. */
728
+ errors?: (components["schemas"]["Error"])[];
729
+ /** @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">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> */
730
+ inventoryReferenceId?: string;
731
+ /** @description Indicates the type of item the <b>inventoryReferenceId</b> references. The item can be either an <code>INVENTORY_ITEM</code> or <code>INVENTORY_ITEM_GROUP</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:InventoryReferenceTypeEnum'>eBay API documentation</a> */
732
+ inventoryReferenceType?: string;
733
+ /**
734
+ * Format: int32
735
+ * @description An HTTP status code that indicates the response-status of the request. Check this code to see if the ads were successfuly created.
736
+ */
737
+ statusCode?: number;
738
+ };
739
+ /** @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). */
740
+ CreateCampaignRequest: {
741
+ /** @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. */
742
+ budget?: components["schemas"]["CampaignBudgetRequest"];
743
+ /** @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. */
744
+ campaignCriterion?: components["schemas"]["CampaignCriterion"];
745
+ /** @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 */
746
+ campaignName?: string;
747
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/endCampaign">endCampaign</a> call, or if they update the campaign at a later time with an end date. */
748
+ endDate?: string;
749
+ /** @description This container is used to set the funding model and default bid percentage for a Cost Per Sale (CPS) campaign. */
750
+ fundingStrategy?: components["schemas"]["FundingStrategy"];
751
+ /** @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. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
752
+ marketplaceId?: string;
753
+ /** @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> */
754
+ startDate?: string;
755
+ };
756
+ /** @description A type that defines the fields for the <b>CreateKeyword</b> request. */
757
+ CreateKeywordRequest: {
758
+ /** @description This adGroupId is created when an ad group is first created and associated with a campaign. This is the ad group that the corresponding keyword will be added to. This ad group must be a part of the campaign that is specified in the call URI.<br /><br /><span class="tablenote"><b>Note:</b> You can call the <a href="/api-docs/sell/marketing/resources/adgroup/methods/getAdGroups">getAdGroups</a> method to retrieve the ad group IDs for a seller, and <a href="/api-docs/sell/marketing/resources/keywords/methods/getKeywords">getKeywords</a> to retrieve the keyword IDs for a seller's keywords.</span> */
759
+ adGroupId?: string;
760
+ /** @description This container is used to set 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.<br /><br /><span class="tablenote"><b>Note:</b> You can call the <a href="/api-docs/sell/marketing/resources/adgroup/methods/suggestBids">suggestBids</a> method to retrieve the suggested bids for keywords.</span> */
761
+ bid?: components["schemas"]["Amount"];
762
+ /** @description Input the keyword into this field. */
763
+ keywordText?: string;
764
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:MatchTypeEnum'>eBay API documentation</a> */
765
+ matchType?: string;
766
+ };
767
+ /** @description A type that defines the fields for the <b>CreateNegativeKeyword</b> request. */
768
+ CreateNegativeKeywordRequest: {
769
+ /** @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 /><span class="tablenote"><b>Note:</b> You can call the <a href="/api-docs/sell/marketing/resources/adgroup/methods/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. */
770
+ adGroupId?: string;
771
+ /** @description A unique eBay-assigned ID for a campaign. This ID is generated when a campaign is created.<br /><br /><i>Required if</i> the negative keyword is being created at the ad group level. */
772
+ campaignId?: string;
773
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:NegativeKeywordMatchTypeEnum'>eBay API documentation</a> */
774
+ negativeKeywordMatchType?: string;
775
+ /** @description The negative keyword text. */
776
+ negativeKeywordText?: string;
777
+ };
778
+ /** @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">Promoted Listings reporting</a>. */
779
+ CreateReportTask: {
780
+ /** @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 Advanced (PLA) campaigns that use the Cost Per Click (CPC) funding model.</span><br /><b>Valid Value:</b> <code>NON_PERFORMING_DATA</code> */
781
+ additionalRecords?: (string)[];
782
+ /** @description A list of campaign IDs to be included in the report task. Call <b>getCampaigns</b> to get a list of the current campaign IDs for a seller.<br /><br />For Promoted Listings Standard (PLS) 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 Promoted Listings Advanced (PLA) 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">Promoted Listings reporting</a> in the Selling Integration Guide for details.</span><br /><br /><b>Maximum:</b><ul><li>25 IDs for PLS</li><li>1,000 IDs for PLA</li></ul> */
783
+ campaignIds?: (string)[];
784
+ /** @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> */
785
+ dateFrom?: string;
786
+ /** @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> */
787
+ dateTo?: string;
788
+ /** @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">Promoted Listings reporting</a>.</p> */
789
+ dimensions?: (components["schemas"]["Dimension"])[];
790
+ /** @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 ">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). */
791
+ fundingModels?: (string)[];
792
+ /** @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">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>. */
793
+ inventoryReferences?: (components["schemas"]["InventoryReference"])[];
794
+ /** @description Use this field to supply an array of listing IDs you want to include in the report.<br><br>A listing ID is the eBay listing identifier that is generated when the listing is created. This field accepts listing ID values generated with both the Inventory API and the eBay Traditional APIs, such as the Trading and Finding APIs.<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 /><br />For Promoted Listings Standard (PLS) 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 Promoted Listings Advanced (PLA) 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">Promoted Listings reporting</a> in the Selling Integration Guide for details.</span><br /><br /><b>Maximum:</b> 500 listings */
795
+ listingIds?: (string)[];
796
+ /** @description The ID for the eBay marketplace on which the report is based.<br /><br /><b>Maximum: </b> 1 For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
797
+ marketplaceId?: string;
798
+ /** @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">Promoted Listings reporting</a>.</p><b>Minimum: </b> 1 */
799
+ metricKeys?: (string)[];
800
+ /** @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. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/plr:ReportFormatEnum'>eBay API documentation</a> */
801
+ reportFormat?: string;
802
+ /** @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> INVENTORY_PERFORMANCE_REPORT is not currently available; availability date is pending.</span><br /><br /><b>Maximum:</b> 1 For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/plr:ReportTypeEnum'>eBay API documentation</a> */
803
+ reportType?: string;
804
+ };
805
+ /** @description This type defines the fields used in a delete-ad request. */
806
+ DeleteAdRequest: {
807
+ /** @description A unique eBay-assigned ID 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> */
808
+ listingId?: string;
809
+ };
810
+ /** @description This type defines the fields returned in a delete-ad response. */
811
+ DeleteAdResponse: {
812
+ /** @description The unique identifier of the ad that was deleted, or the ad that the seller attempted to delete. */
813
+ adId?: string;
814
+ /** @description An array of the errors or warnings associated with the request. */
815
+ errors?: (components["schemas"]["Error"])[];
816
+ /** @description A unique eBay-assigned ID for a listing that is generated when the listing is created. */
817
+ listingId?: string;
818
+ /**
819
+ * Format: int32
820
+ * @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>
821
+ */
822
+ statusCode?: number;
823
+ };
824
+ /** @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>. */
825
+ DeleteAdsByInventoryReferenceRequest: {
826
+ /** @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. */
827
+ inventoryReferenceId?: string;
828
+ /** @description The enumeration value passed into this field indicates the type of value used for the corresponding <b>inventoryReferenceId</b> value. The enumeration value used here will either be <code>INVENTORY_ITEM</code> (to delete the ad for a single SKU listing) or <code>INVENTORY_ITEM_GROUP</code> (to delete the ad for a multiple-variation listing). For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:InventoryReferenceTypeEnum'>eBay API documentation</a> */
829
+ inventoryReferenceType?: string;
830
+ };
831
+ /** @description This type defines the fields returned by request to delete a set of ads by inventory reference ID. */
832
+ DeleteAdsByInventoryReferenceResponse: {
833
+ /** @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> */
834
+ adIds?: (string)[];
835
+ /** @description The container for the errors associated with the request. */
836
+ errors?: (components["schemas"]["Error"])[];
837
+ /** @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. */
838
+ inventoryReferenceId?: string;
839
+ /** @description The enumeration value returned here indicates if the ad was for a single-variation listing or a multiple-variation listing. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:InventoryReferenceTypeEnum'>eBay API documentation</a> */
840
+ inventoryReferenceType?: string;
841
+ /**
842
+ * Format: int32
843
+ * @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>
844
+ */
845
+ statusCode?: number;
846
+ };
847
+ /** @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">Promoted Listings reporting</a>. */
848
+ Dimension: {
849
+ /** @description A list of annotations associated with the dimension of the report. */
850
+ annotationKeys?: (string)[];
851
+ /** @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> */
852
+ dimensionKey?: string;
853
+ };
854
+ /** @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>. */
855
+ DimensionKeyAnnotation: {
856
+ /** @description An annotation key associated with the dimension. */
857
+ annotationKey?: string;
858
+ /** @description The data type of the annotation key value. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/plr:DataTypeEnum'>eBay API documentation</a> */
859
+ dataType?: string;
860
+ };
861
+ /** @description This type defines the dimension used to create the report and the annotation keys associated with that dimension. */
862
+ DimensionMetadata: {
863
+ /** @description The data type of the dimension value used to create the report. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/plr:DataTypeEnum'>eBay API documentation</a> */
864
+ dataType?: string;
865
+ /** @description The name of the dimension used to create the report. */
866
+ dimensionKey?: string;
867
+ /** @description An list of annotation keys associated with the specified dimension of the report. */
868
+ dimensionKeyAnnotations?: (components["schemas"]["DimensionKeyAnnotation"])[];
869
+ };
870
+ /** @description This container defines the promotional 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">Configuring discounts for threshold promotions</a> for information and examples on how to combine <b>discountBenefit</b> and <b>discountSpecification</b> values to create different types of promotions.</p> */
871
+ DiscountBenefit: {
872
+ /** @description The monetary amount that is discounted off an item (or items) when the promotion criteria is met. <br><br>For <b>threshold promotions</b>, where the buyer triggers the discount, the valid values for this field are: <br><code> &nbsp; 5, 6, 7, 8, 9, 10, 15, 20, 25, <br> &nbsp; 30, 35, 40, 45, 50, 55, 60, 65, <br> &nbsp; 70, 75, 80, 85, 90, 95, 100, 110, <br> &nbsp; 120, 125, 150, 200, 250</code> <br><br>For <b>markdown</b> promotions, 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> */
873
+ amountOffItem?: components["schemas"]["Amount"];
874
+ /** @description Used for threshold promotions, this is the monetary amount that is discounted off an order when the promotion criteria is met. Because this field is valid only for orders, it's not a valid combination to use with markdown promotions. <br><br><b>Valid values</b> for the associated <code>amountOffOrder.</code><b>value</b> field: <br><code> &nbsp; 5, 6, 7, 8, 9, 10, 15, 20, 25, <br> &nbsp; 30, 35, 40, 45, 50, 55, 60, 65, <br> &nbsp; 70, 75, 80, 85, 90, 95, 100, 110, <br> &nbsp; 120, 125, 150, 200, 250</code> */
875
+ amountOffOrder?: components["schemas"]["Amount"];
876
+ /** @description The percentage applied to the sales price that is discounted off the promoted item (or items) when the promotion 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> */
877
+ percentageOffItem?: string;
878
+ /** @description Used for threshold promotions, this is the percentage of the order price that is discounted off the order when the promotion criteria is met. This field is not value for markdown promotions. <br><br>Valid integer values for ORDER_DISCOUNT promotions: &nbsp;&nbsp;<b>Min:</b> <code>5</code> &nbsp;&nbsp;<b>Max:</b> <code>80</code> <br><br>For VOLUME_DISCOUNT promotions: Must be set to <code>0</code> for the first discount rule. */
879
+ percentageOffOrder?: string;
880
+ };
881
+ /** @description This complex type defines a promotion 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 promotions</b>, you must configure at least two <b>discountRule</b> containers and at most four.</p> */
882
+ DiscountRule: {
883
+ /** @description This container defines the promotional discount as either a monetary amount or a percentage of the sales price. <p><b>Note:</b> When configuring promotion 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">Configuring discounts for threshold promotions</a> for information and examples on how to combine <b>discountBenefit</b> and <b>discountSpecification</b> to create different types of promotions.</p> */
884
+ discountBenefit?: components["schemas"]["DiscountBenefit"];
885
+ /** @description This container defines the criteria for when the discounts of a promotion trigger, such as the minimum quantity that the buyer must purchase before the promotion kicks in. The promotional 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 promotions</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 discounts for threshold promotions</a> for information and examples on how to combine <b>discountBenefit</b> and <b>discountSpecification</b> to create different types of promotions.</p> */
886
+ discountSpecification?: components["schemas"]["DiscountSpecification"];
887
+ /** @description The limit on how much a buyer can save using a <code>CODED_COUPON</code> promotion 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> */
888
+ maxDiscountAmount?: components["schemas"]["Amount"];
889
+ /**
890
+ * Format: int32
891
+ * @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 promotion.
892
+ */
893
+ ruleOrder?: number;
894
+ };
895
+ /** @description This container defines the criteria for when the discounts of a promotion trigger, such as the minimum quantity the buyer must purchase before the promotion kicks in. The promotional 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">Configuring discounts for threshold promotions</a> for information and examples on how to combine <b>discountBenefit</b> and <b>discountSpecification</b> to create different types of promotions.</p> */
896
+ DiscountSpecification: {
897
+ /** @description The monetary amount that must be spent on promoted items before the promotional discount is applied. <br><br><b>Valid values</b> for the associated <code>forEachAmount.</code><b>value</b> field: <br><code> &nbsp; 5, 10, 15, 20, 25, 30, 35, 40, 45, 49, <br> &nbsp; 50, 55, 59, 60, 65, 69, 70, 75, 79, 80, <br> &nbsp; 85, 89, 90, 95, 99, 100, 110, 120, 125, <br> &nbsp; 149, 150, 175, 199, 200, 249, 250, 299, <br> &nbsp; 300, 350, 399, 400, 450, 499, 500</code> */
898
+ forEachAmount?: components["schemas"]["Amount"];
899
+ /**
900
+ * Format: int32
901
+ * @description The number of items that must be purchased in order to qualify for the discount. <br><br><b>Valid values:</b> <br><code> &nbsp; 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, <br> &nbsp; 12, 13, 14, 15, 16, 17, 18, 19 <br> &nbsp; 20, 25, 50, 75, 100</code>
902
+ */
903
+ forEachQuantity?: number;
904
+ /** @description Known as the "threshold amount", the minimum dollar amount that needs to be spent on promoted items in order to qualify for the promotion's discount. <br><br><b>Valid values</b> for the associated <code>minAmount.</code><b>value</b> field: <br><code> &nbsp; 5, 10, 15, 20, 25, 30, 35, 40, 45, 49, <br> &nbsp; 50, 55, 59, 60, 65, 69, 70, 75, 79, 80, <br> &nbsp; 85, 89, 90, 95, 99, 100, 110, 120, <br> &nbsp; 125, 149, 150, 175, 199, 200, 249, 250, 299, <br> &nbsp; 300, 350, 399, 400, 450, 499, 500</code> */
905
+ minAmount?: components["schemas"]["Amount"];
906
+ /**
907
+ * Format: int32
908
+ * @description The minimum quantity of promoted items that needs to be bought in order to qualify for the promotion's discount. <br><br><b>Valid values:</b> <br><code> &nbsp; 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, <br> &nbsp; 12, 13, 14, 15, 16, 17, 18, 19 <br> &nbsp; 20, 25, 50, 75, 100</code>
909
+ */
910
+ minQuantity?: number;
911
+ /**
912
+ * Format: int32
913
+ * @description Use this field to configure "Buy One Get One" (or <b>BOGO</b>) promotions. <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 promotion. This field is not valid with order-based promotions. <br><br>The value of this field represents the number of items to be discounted when other promotion 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><code> &nbsp; 1, 2, 3, 4, 5, 6, 7, 8, 9, 10</code>
914
+ */
915
+ numberOfDiscountedItems?: number;
916
+ };
917
+ /** @description A type that defines the ad rate details for a Promoted Listings Standard (PLS) ad campaign. */
918
+ DynamicAdRatePreference: {
919
+ /** @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. */
920
+ adRateAdjustmentPercent?: string;
921
+ /** @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. */
922
+ adRateCapPercent?: string;
923
+ };
924
+ /** @description A container that defines the elements of error and warning messages. */
925
+ Error: {
926
+ /** @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> */
927
+ category?: string;
928
+ /** @description Name of the domain containing the service or application. */
929
+ domain?: string;
930
+ /**
931
+ * Format: int32
932
+ * @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.
933
+ */
934
+ errorId?: number;
935
+ /** @description Identifies specific request elements associated with the error, if any. inputRefId's response is format specific. For JSON, use <i>JSONPath</i> notation. */
936
+ inputRefIds?: (string)[];
937
+ /** @description An expanded version of message that should be around 100-200 characters long, but is not required to be such. */
938
+ longMessage?: string;
939
+ /** @description An end user and app developer friendly device agnostic message. It explains what the error or warning is, and how to fix it (in a general sense). Its value is at most 50 characters long. If applicable, the value is localized in the end user's requested locale. */
940
+ message?: string;
941
+ /** @description Identifies specific response elements associated with the error, if any. Path format is the same as <code>inputRefId</code>. */
942
+ outputRefIds?: (string)[];
943
+ /** @description This optional complex field type contains a list of one or more context-specific <code>ErrorParameter</code> objects, with each item in the list entry being a parameter (or input field name) that caused an error condition. Each <code>ErrorParameter</code> object consists of two fields, a <code>name</code> and a <code>value</code>. */
944
+ parameters?: (components["schemas"]["ErrorParameter"])[];
945
+ /** @description Name of the domain's subsystem or subdivision. For example, checkout is a subdomain in the buying domain. */
946
+ subdomain?: string;
947
+ };
948
+ /** @description Container for a error parameter. */
949
+ ErrorParameter: {
950
+ /** @description Name of the entity that threw the error. */
951
+ name?: string;
952
+ /** @description A description of the error. */
953
+ value?: string;
954
+ };
955
+ /** @description This type defines how the Promoted Listings fee is calculated for a Promoted Listings ad campaign. */
956
+ FundingStrategy: {
957
+ /** @description The ad rate strategy that shall be applied to the campaign. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:AdRateStrategyEnum'>eBay API documentation</a> */
958
+ adRateStrategy?: string;
959
+ /** @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. It is not used for campaigns that use the Cost Per Click (CPC) funding model.</span><br /><b>Minimum value:</b> 2.0 <br><b>Maximum value:</b> 100.0 */
960
+ bidPercentage?: string;
961
+ /** @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> */
962
+ dynamicAdRatePreferences?: (components["schemas"]["DynamicAdRatePreference"])[];
963
+ /** @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>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:FundingModelEnum'>eBay API documentation</a> */
964
+ fundingModel?: string;
965
+ };
966
+ /** @description This type defines either the selections rules or the list of listing IDs for the promotion. The "listing IDs" are are either the seller's item IDs or the eBay listing IDs. */
967
+ InventoryCriterion: {
968
+ /** @description Indicates how the items to include in the promotion are selected. You can include inventory by ID, using rules, or globally include all your inventory. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:InventoryCriterionEnum'>eBay API documentation</a> */
969
+ inventoryCriterionType?: string;
970
+ /** @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 promotion. <p class="tablenote"><b>Note:</b> The request can have either <b>inventoryItems</b> or <b>listingIds</b>, but not both.</p> <br><br><b>Required:</b> All listings in a promotion must offer an electronic payment method. <br><b>Maximum:</b> 500 parent items <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>. */
971
+ inventoryItems?: (components["schemas"]["InventoryItem"])[];
972
+ /** @description An array of eBay listing IDs to be added to the promotion. <p class="tablenote"><b>Note:</b> The request can have either <b>inventoryItems</b> or <b>listingIds</b>, but not both.</p> <br><br><b>Required:</b> All listings in a promotion must offer an electronic payment method. <br><b>Maximum:</b> 500 parent items <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>. */
973
+ listingIds?: (string)[];
974
+ /** @description This container defines a set of inventory selection rules for a promotion. <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>. */
975
+ ruleCriteria?: components["schemas"]["RuleCriteria"];
976
+ };
977
+ /** @description This type defines the fields for the seller inventory reference IDs (also known as an "SKU" or "custom label"). */
978
+ InventoryItem: {
979
+ /** @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. */
980
+ inventoryReferenceId?: string;
981
+ };
982
+ /** @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. */
983
+ InventoryReference: {
984
+ /** @description The seller's inventory reference ID for an item that is managed with the Inventory API. <br><br>An inventory reference is either the ID of a single listing or the ID of the parent of an item group listing (a multi-variation listing, such as a shirt that is available in multiple sizes and colors). <br><br><i>Required if </i> if you supply an <b>inventoryReferenceType</b>. */
985
+ inventoryReferenceId?: string;
986
+ /** @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> (if the ID points to a multi-variation listing). <br><br><i>Required if </i> if you supply an <b>inventoryReferenceId</b>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:InventoryReferenceTypeEnum'>eBay API documentation</a> */
987
+ inventoryReferenceType?: string;
988
+ };
989
+ /** @description A container for details regarding the basis for an item. */
990
+ ItemBasis: {
991
+ /**
992
+ * Format: int32
993
+ * @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
994
+ */
995
+ estimatedValue?: number;
996
+ /** @description The basis of the statistics. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:TargetingMetricsEnum'>eBay API documentation</a> */
997
+ metric?: string;
998
+ };
999
+ /** @description This type defines the status of a markdown promotion. */
1000
+ ItemMarkdownStatus: {
1001
+ /** @description Indicates the state assigned to the markdown promotion using one of the <b>status</b> values. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:ItemMarkdownStatusEnum'>eBay API documentation</a> */
1002
+ listingMarkdownStatus?: string;
1003
+ /** @description Identifies the date the last time the state of the promotion changed. Both both markdown and markup events can trigger a status change. */
1004
+ statusChangedDate?: string;
1005
+ /** @description An eBay-assigned text string that describes the status of the promotion. */
1006
+ statusMessage?: string;
1007
+ };
1008
+ /** @description This type defines the fields used to describe an item price markdown promotion. */
1009
+ ItemPriceMarkdown: {
1010
+ /** @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 promotional bonus. <br><br><b>Default:</b> <code>false</code> */
1011
+ applyFreeShipping?: boolean;
1012
+ /** @description If set to <code>true</code>, eBay will automatically add inventory items to the markdown promotion if they meet the <b>selectedInventoryDiscounts</b> criteria specified for the markdown promotion. <br><br><b>Default:</b> <code>false</code> */
1013
+ autoSelectFutureInventory?: boolean;
1014
+ /** @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 promotion. If set to <code>false</code>, an item is dropped from the markdown promotion if the seller adjusts the price. <br><br><b>Default:</b> <code>false</code> */
1015
+ blockPriceIncreaseInItemRevision?: boolean;
1016
+ /** @description This field is required if you are configuring an MARKDOWN_SALE promotion. <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 promotion. 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 promotion. <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 */
1017
+ description?: string;
1018
+ /** @description The date and time the promotion 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 promotion.<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> */
1019
+ endDate?: string;
1020
+ /** @description The eBay marketplace ID of the site where the markdown promotion is hosted. Markdown promotions are supported on all eBay marketplaces. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
1021
+ marketplaceId?: string;
1022
+ /** @description The seller-defined name or 'title' of the promotion that the seller can use to identify a promotion. This label is not displayed in end-user flows. <br><br><b>Maximum length:</b> 90 */
1023
+ name?: string;
1024
+ /** @description This field is ignored in markdown promotions. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:PromotionPriorityEnum'>eBay API documentation</a> */
1025
+ priority?: string;
1026
+ /** @description Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT promotions, populate this field with a URL that points to an image to be used with the promotion. This image is displayed on the seller's <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. */
1027
+ promotionImageUrl?: string;
1028
+ /** @description The current status of the promotion. When creating a new promotion, 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> promotion. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:PromotionStatusEnum'>eBay API documentation</a> */
1029
+ promotionStatus?: string;
1030
+ /** @description A list that defines the sets of selected items for the markdown promotion and the discount specified for promotion. */
1031
+ selectedInventoryDiscounts?: (components["schemas"]["SelectedInventoryDiscount"])[];
1032
+ /** @description The date and time the promotion starts in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller. */
1033
+ startDate?: string;
1034
+ };
1035
+ /** @description This type defines the fields that describe a threshold promotion and includes the promotional discount, the items included in the promotion, and the rules that specify when the promotion is applied. */
1036
+ ItemPromotion: {
1037
+ /** @description This flag is relevant in only when <b>promotionType</b> is set to <code>VOLUME_DISCOUNT</code>. For details on volume pricing promotions, see <a href="/api-docs/sell/static/marketing/pm-volume-discounts.html">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 in the promotion. Otherwise, the promotional discount applies to multiple quantities of any items in the promotion. 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 promotion. */
1038
+ applyDiscountToSingleItemOnly?: boolean;
1039
+ /** @description This sets the budget for the <code>CODED_COUPON</code> promotion 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 promotion 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> */
1040
+ budget?: components["schemas"]["Amount"];
1041
+ /** @description The configuration of a coded coupon promotion. */
1042
+ couponConfiguration?: components["schemas"]["CouponConfiguration"];
1043
+ /** @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 promotion 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 promotion. <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 promotions (and not valid for VOLUME_DISCOUNT promotions). */
1044
+ description?: string;
1045
+ /** @description This container defines a promotion 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 promotion 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">Specifying item promotion discounts</a> for information and examples on how to combine <b>discountBenefit</b> and <b>discountSpecification</b> to create different types of promotions.</p> */
1046
+ discountRules?: (components["schemas"]["DiscountRule"])[];
1047
+ /** @description The date and time the promotion ends in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller. */
1048
+ endDate?: string;
1049
+ /** @description A container that defines either the listing IDs or the selection rules that specify the items to include in the promotion. 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 Promotions Manager promotions must support an electronic payment method.</p> */
1050
+ inventoryCriterion?: components["schemas"]["InventoryCriterion"];
1051
+ /** @description The eBay marketplace ID of the site where the threshold promotion is hosted. Threshold promotions are currently supported on a limited number of eBay marketplaces. <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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
1052
+ marketplaceId?: string;
1053
+ /** @description The seller-defined name or "title" of the promotion that the seller can use to identify a promotion. This label is not displayed in end-user flows. <br><br><b>Maximum length:</b> 90 */
1054
+ name?: string;
1055
+ /** @description Applicable for only <b>ORDER_DISCOUNT</b> promotions, this field indicates the precedence of the promotion, which is used to determine the position of a promotion on the seller's <b>All Offers</b> page. If an item is associated with multiple promotions, the promotion with the higher priority takes precedence. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:PromotionPriorityEnum'>eBay API documentation</a> */
1056
+ priority?: string;
1057
+ /** @description Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT promotions, and not valid for VOLUME_DISCOUNT promotions. <br><br>Populate this field with a URL that points to an image to be used with the promotion. This image is displayed on the seller's <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. */
1058
+ promotionImageUrl?: string;
1059
+ /** @description The current status of the promotion. When creating a new promotion, 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> promotion. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:PromotionStatusEnum'>eBay API documentation</a> */
1060
+ promotionStatus?: string;
1061
+ /** @description Use this field to specify the type of the promotion you are creating. <p>The supported types are:</p> <ul><li><code>CODED_COUPON</code> &ndash; A coupon code promotion set with <b>createItemPromotion</b>.</li> <li><code>MARKDOWN_SALE</code> &ndash; A markdown promotion set with <b>createItemPriceMarkdownPromotion</b>.</li> <li><code>ORDER_DISCOUNT</code> &ndash; A threshold promotion set with <b>createItemPromotion</b>.</li> <li><code>VOLUME_DISCOUNT</code> &ndash; A volume pricing promotion set with <b>createItemPromotion</b>.</li></ul> <p>See the <a href="/api-docs/sell/static/marketing/promotions-manager.html" target="_blank">Promotions Manager</a> documentation for details.</p> <p><i>Required if </i> you are creating a volume pricing promotion (<code>VOLUME_DISCOUNT</code>).</p> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:PromotionTypeEnum'>eBay API documentation</a> */
1062
+ promotionType?: string;
1063
+ /** @description The date and time the promotion starts in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller. */
1064
+ startDate?: string;
1065
+ };
1066
+ /** @description This complex type defines the fields returned for an item (threshold) promotion. */
1067
+ ItemPromotionResponse: {
1068
+ /** @description If set to <code>true</code>, the discount is applied only when the buyer purchases multiple quantities of a single item in the promotion. Otherwise, the promotional discount applies to multiple quantities of any items in the promotion. 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 promotion. */
1069
+ applyDiscountToSingleItemOnly?: boolean;
1070
+ /** @description This sets the budget for the <code>CODED_COUPON</code> promotion 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 promotion 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> */
1071
+ budget?: components["schemas"]["Amount"];
1072
+ /** @description The configuration of a coded coupon promotion. */
1073
+ couponConfiguration?: components["schemas"]["CouponConfiguration"];
1074
+ /** @description Required for CODED_COUPON promotions, 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 promotion 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 promotion. This tag line is not used with volume pricing promotions. <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 */
1075
+ description?: string;
1076
+ /** @description A list containing the promotion benefits (<b>discountRule</b>) and the rules that define when the benefit is applied (<b>discountSpecification</b>). */
1077
+ discountRules?: (components["schemas"]["DiscountRule"])[];
1078
+ /** @description The date and time the promotion ends in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller. */
1079
+ endDate?: string;
1080
+ /** @description Returns either an array of listing IDs or the selection rules used to specify the items included in the promotion. 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. */
1081
+ inventoryCriterion?: components["schemas"]["InventoryCriterion"];
1082
+ /** @description The eBay marketplace ID of the site where the threshold promotion is hosted. Threshold promotions are currently supported on a limited number of eBay marketplaces. <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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
1083
+ marketplaceId?: string;
1084
+ /** @description The seller-defined name or "title" of the promotion that the seller can use to identify a promotion. This label is not displayed in end-user flows. <br><br><b>Maximum length:</b> 90 */
1085
+ name?: string;
1086
+ /** @description Applicable for only <b>ORDER_DISCOUNT</b> promotions, this field indicates the precedence of the promotion, which eBay uses to determine the position of a promotion on the seller's <b>All Offers</b> page. If an item is associated with multiple promotions, the promotion with the higher priority takes precedence. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:PromotionPriorityEnum'>eBay API documentation</a> */
1087
+ priority?: string;
1088
+ /** @description A unique eBay-assigned ID for the promotion that's generated when the promotion is created. */
1089
+ promotionId?: string;
1090
+ /** @description Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT promotions, and not applicable for <b>VOLUME_DISCOUNT</b> promotions, this field is a URL that points to an image for the promotion. 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. */
1091
+ promotionImageUrl?: string;
1092
+ /** @description The current status of the promotion. When creating a new promotion, this value must be set to either <code>DRAFT</code> or <code>SCHEDULED</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:PromotionStatusEnum'>eBay API documentation</a> */
1093
+ promotionStatus?: string;
1094
+ /** @description Indicates the type of the promotion, either <code>CODED_COUPON</code>, <code>MARKDOWN_SALE</code>, <code>ORDER_DISCOUNT</code>, or <code>VOLUME_DISCOUNT</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:PromotionTypeEnum'>eBay API documentation</a> */
1095
+ promotionType?: string;
1096
+ /** @description The date and time the promotion starts in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller. */
1097
+ startDate?: string;
1098
+ };
1099
+ /** @description This type defines the fields for a paginated result set of promotions. 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. */
1100
+ ItemsPagedCollection: {
1101
+ /** @description The URI of the current page of results from the result set. */
1102
+ href?: string;
1103
+ /**
1104
+ * Format: int32
1105
+ * @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.
1106
+ */
1107
+ limit?: number;
1108
+ /** @description An array of the listings associated with a promotion. */
1109
+ listings?: (components["schemas"]["ListingDetail"])[];
1110
+ /** @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 */
1111
+ next?: string;
1112
+ /**
1113
+ * Format: int32
1114
+ * @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>
1115
+ */
1116
+ offset?: number;
1117
+ /** @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 */
1118
+ prev?: string;
1119
+ /**
1120
+ * Format: int32
1121
+ * @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>.
1122
+ */
1123
+ total?: number;
1124
+ /** @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. */
1125
+ warnings?: (components["schemas"]["Error"])[];
1126
+ };
1127
+ /** @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> */
1128
+ Keyword: {
1129
+ /** @description This field identifies the ad group that the keyword is associated with. */
1130
+ adGroupId?: string;
1131
+ /** @description The bid associated with the keyword. This container will not be returned if the keyword does not have a defined bid value. */
1132
+ bid?: components["schemas"]["Amount"];
1133
+ /** @description The unique identifier of a keyword. */
1134
+ keywordId?: string;
1135
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:KeywordStatusEnum'>eBay API documentation</a> */
1136
+ keywordStatus?: string;
1137
+ /** @description The text of the keyword. */
1138
+ keywordText?: string;
1139
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:MatchTypeEnum'>eBay API documentation</a> */
1140
+ matchType?: string;
1141
+ };
1142
+ /** @description A type that defines the keywords of the paged collection. */
1143
+ KeywordPagedCollectionResponse: {
1144
+ /** @description The URI of the current page of results from the result set. */
1145
+ href?: string;
1146
+ /** @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. */
1147
+ keywords?: (components["schemas"]["Keyword"])[];
1148
+ /**
1149
+ * Format: int32
1150
+ * @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.
1151
+ */
1152
+ limit?: number;
1153
+ /** @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 */
1154
+ next?: string;
1155
+ /**
1156
+ * Format: int32
1157
+ * @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>
1158
+ */
1159
+ offset?: number;
1160
+ /** @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 */
1161
+ prev?: string;
1162
+ /**
1163
+ * Format: int32
1164
+ * @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>.
1165
+ */
1166
+ total?: number;
1167
+ };
1168
+ /** @description A type that defines the fields used by the <b>Keyword</b> method. */
1169
+ KeywordRequest: {
1170
+ /** @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 */
1171
+ keywordText?: string;
1172
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:MatchTypeEnum'>eBay API documentation</a> */
1173
+ matchType?: string;
1174
+ };
1175
+ /** @description A type that defines the response fields used by the <b>Keyword</b> method. */
1176
+ KeywordResponse: {
1177
+ /** @description The identifier of the ad group that the keyword was added to. */
1178
+ adGroupId?: string;
1179
+ /** @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. */
1180
+ errors?: (components["schemas"]["Error"])[];
1181
+ /** @description The getKeyword URI for the keyword, which is used to retrieve the keyword. This URI will be returned for each successfully created keyword. */
1182
+ href?: string;
1183
+ /** @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. */
1184
+ keywordId?: string;
1185
+ /** @description The text of the keyword. */
1186
+ keywordText?: string;
1187
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:MatchTypeEnum'>eBay API documentation</a> */
1188
+ matchType?: string;
1189
+ /**
1190
+ * Format: int32
1191
+ * @description An HTTP status code is returned for each keyword to indicate the success or failure of adding that keyword to the ad group.
1192
+ */
1193
+ statusCode?: number;
1194
+ };
1195
+ /** @description This type defines the fields that describe a listing that is in a promotion. */
1196
+ ListingDetail: {
1197
+ /** @description The container that returns the current price of the listing. */
1198
+ currentPrice?: components["schemas"]["Amount"];
1199
+ /** @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. */
1200
+ freeShipping?: boolean;
1201
+ /** @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. */
1202
+ inventoryReferenceId?: string;
1203
+ /** @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. */
1204
+ inventoryReferenceType?: string;
1205
+ /** @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. */
1206
+ listingCategoryId?: string;
1207
+ /** @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">Item condition ID and name values</a>. */
1208
+ listingCondition?: string;
1209
+ /** @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">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> */
1210
+ listingConditionId?: string;
1211
+ /** @description A unique eBay-assigned ID that is generated when the item is listed. */
1212
+ listingId?: string;
1213
+ /** @description A list of the status values assigned to the item and the date that each new status was assigned. */
1214
+ listingPromotionStatuses?: (components["schemas"]["ItemMarkdownStatus"])[];
1215
+ /**
1216
+ * Format: int32
1217
+ * @description The number of items being sold in the listing.
1218
+ */
1219
+ quantity?: number;
1220
+ /** @description Store CategoryId (if any) that to which the listing belongs. This field is blank if there is no seller Store category ID. */
1221
+ storeCategoryId?: string;
1222
+ /** @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. */
1223
+ title?: string;
1224
+ };
1225
+ /** @description This type defines the name and data type of a metric. */
1226
+ MetricMetadata: {
1227
+ /** @description The data type of the returned metric value. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/plr:DataTypeEnum'>eBay API documentation</a> */
1228
+ dataType?: string;
1229
+ /** @description The name of the metric. */
1230
+ metricKey?: string;
1231
+ };
1232
+ /** @description A type that defines the fields for a negative keyword. */
1233
+ NegativeKeyword: {
1234
+ /** @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="/api-docs/sell/marketing/resources/adgroup/methods/getAdGroups">getAdGroups</a> method to retrieve the ad group IDs for a seller.</span> */
1235
+ adGroupId?: string;
1236
+ /** @description A unique eBay-assigned ID for a campaign. This ID is generated when a campaign is created. */
1237
+ campaignId?: string;
1238
+ /** @description A unique eBay-assigned ID for a negative keyword. This keyword ID will be generated for each successfully created negative keyword. */
1239
+ negativeKeywordId?: string;
1240
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:NegativeKeywordMatchTypeEnum'>eBay API documentation</a> */
1241
+ negativeKeywordMatchType?: string;
1242
+ /** @description A field that defines the status of the negative keyword. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:NegativeKeywordStatusEnum'>eBay API documentation</a> */
1243
+ negativeKeywordStatus?: string;
1244
+ /** @description The text for the negative keyword. */
1245
+ negativeKeywordText?: string;
1246
+ };
1247
+ /** @description A type that defines the negative keywords, returned in a paged collection. */
1248
+ NegativeKeywordPagedCollectionResponse: {
1249
+ /** @description The URI of the current page of results from the result set. */
1250
+ href?: string;
1251
+ /**
1252
+ * Format: int32
1253
+ * @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.
1254
+ */
1255
+ limit?: number;
1256
+ /** @description A list of negative keywords returned in the paginated collection. */
1257
+ negativeKeywords?: (components["schemas"]["NegativeKeyword"])[];
1258
+ /** @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. */
1259
+ next?: string;
1260
+ /**
1261
+ * Format: int32
1262
+ * @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>
1263
+ */
1264
+ offset?: number;
1265
+ /** @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. */
1266
+ prev?: string;
1267
+ /**
1268
+ * Format: int32
1269
+ * @description The total number of result sets in the paginated collection.
1270
+ */
1271
+ total?: number;
1272
+ };
1273
+ /** @description A type that defines the negative keyword response. */
1274
+ NegativeKeywordResponse: {
1275
+ /** @description A unique identifier for an ad group that is generated when an ad group is first created and associated with a campaign. */
1276
+ adGroupId?: string;
1277
+ /** @description A unique eBay-assigned ID for a campaign. This ID is generated when a campaign is created. */
1278
+ campaignId?: string;
1279
+ /** @description This container will be returned if there is an issue creating the corresponding negative keyword. */
1280
+ errors?: (components["schemas"]["Error"])[];
1281
+ /** @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. */
1282
+ href?: string;
1283
+ /** @description A unique eBay-assigned ID for a negative keyword. This negative keyword ID will be generated for each successfully created negative keyword. */
1284
+ negativeKeywordId?: string;
1285
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:NegativeKeywordMatchTypeEnum'>eBay API documentation</a> */
1286
+ negativeKeywordMatchType?: string;
1287
+ /** @description The text for the negative keyword. */
1288
+ negativeKeywordText?: string;
1289
+ /**
1290
+ * Format: int32
1291
+ * @description The status of the request to create a negative keyword. This field indicates whether the process was successful or not.
1292
+ */
1293
+ statusCode?: number;
1294
+ };
1295
+ /** @description This type defines the fields that describe a promotion. This includes all the information about a promotion except for the listings that are a part of the promotion. */
1296
+ PromotionDetail: {
1297
+ /** @description A unique code that buyers can use during checkout to receive a discount. The code must be unique across eBay. */
1298
+ couponCode?: string;
1299
+ /** @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 promotion and displayed under the offer tile that is shown on the seller's <b>All Offers</b> page and on the promotion'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 promotions (and not valid for VOLUME_DISCOUNT promotions). */
1300
+ description?: string;
1301
+ /** @description The date and time the promotion ends in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller. */
1302
+ endDate?: string;
1303
+ /** @description The eBay marketplace ID of the site where the promotion is hosted. Threshold promotions are supported on a select set of marketplaces while markdown promotions are supported on all eBay marketplaces. <p><b>Valid values for threshold promotions 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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
1304
+ marketplaceId?: string;
1305
+ /** @description The seller-defined name or "title" of the promotion, such as "Buy 1 Get 1", that the seller can use to identify a promotion. This label is not displayed in end-user flows. <br><br><b>Maximum length:</b> 90 */
1306
+ name?: string;
1307
+ /** @description Applicable for only <b>ORDER_DISCOUNT</b> promotions, this field indicates the precedence of the promotion, which is used to determine the position of a promotion on the seller's <b>All Offers</b> page. If an item is associated with multiple promotions, the promotion with the higher priority takes precedence. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:PromotionPriorityEnum'>eBay API documentation</a> */
1308
+ priority?: string;
1309
+ /** @description The URI of the promotion details. */
1310
+ promotionHref?: string;
1311
+ /** @description A unique eBay-assigned ID for the promotion that's generated when the promotion is created. */
1312
+ promotionId?: string;
1313
+ /** @description Required for CODED_COUPON, MARKDOWN_SALE, and ORDER_DISCOUNT promotions, and not applicable for <b>VOLUME_DISCOUNT</b> promotions, this field is a URL that points to an image for the promotion. 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. */
1314
+ promotionImageUrl?: string;
1315
+ /** @description The current status of the promotion. When creating a new promotion, you must set this value to either <code>DRAFT</code> or <code>SCHEDULED</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:PromotionStatusEnum'>eBay API documentation</a> */
1316
+ promotionStatus?: string;
1317
+ /** @description Indicates type of the promotion, either <code>CODED_COUPON</code>, <code>MARKDOWN_SALE</code>, <code>ORDER_DISCOUNT</code>, or <code>VOLUME_DISCOUNT</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:PromotionTypeEnum'>eBay API documentation</a> */
1318
+ promotionType?: string;
1319
+ /** @description The date and time the promotion starts in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). For display purposes, convert this time into the local time of the seller. */
1320
+ startDate?: string;
1321
+ };
1322
+ /** @description This type defines the fields in a promotion-level report. */
1323
+ PromotionReportDetail: {
1324
+ /** @description The <i>average item discount</i> is the average discount that has been applied to each item in a promotion. This value is calculated as follows: <br><br><b>totalDiscount</b> / <b>itemsSoldQuantity</b> = <b>averageItemDiscount</b> */
1325
+ averageItemDiscount?: components["schemas"]["Amount"];
1326
+ /** @description The <i>average item revenue</i> is the average revenue that has been received for each item in a promotion. This value is calculated as follows: <br><br><b>totalSales</b> / <b>itemsSoldQuantity</b> = <b>averageItemRevenue</b> */
1327
+ averageItemRevenue?: components["schemas"]["Amount"];
1328
+ /** @description The <i>average order discount</i> is the average discount that has been applied to each order in a promotion. This value is calculated as follows: <br><br><b>totalDiscount</b> / <b>numberOfOrdersSold</b> = <b>averageOrderDiscount</b> */
1329
+ averageOrderDiscount?: components["schemas"]["Amount"];
1330
+ /** @description The <i>average order revenue</i> is the average revenue that has been received for each order in a promotion. This value is calculated as follows: <br><br><b>totalSales</b> / <b>numberOfOrdersSold</b> = <b>averageOrderRevenue</b> */
1331
+ averageOrderRevenue?: components["schemas"]["Amount"];
1332
+ /** @description The <i>average order size</i> is the average number of items that each order contained in a promotion. This value is calculated as follows: <br><br><b>itemsSoldQuantity</b> / <b>numberOfOrdersSold</b> = <b>averageOrderSize</b> */
1333
+ averageOrderSize?: string;
1334
+ /** @description This is the monetary amount of items purchased in a promotion 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%" promotion 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. */
1335
+ baseSale?: components["schemas"]["Amount"];
1336
+ /**
1337
+ * Format: int32
1338
+ * @description This is the quantity of items purchased in a threshold promotion 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%" promotion 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.
1339
+ */
1340
+ itemsSoldQuantity?: number;
1341
+ /**
1342
+ * Format: int32
1343
+ * @description This is the number of orders sold in a threshold promotion 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%" promotion 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.
1344
+ */
1345
+ numberOfOrdersSold?: number;
1346
+ /** @description The <i>percentage sales lift</i> is the total dollar amount gained due to promotions. This value is calculated as follows: <br><br> <b>promotionSale</b> / <b>totalSale</b> = <b>percentageSalesLift</b> */
1347
+ percentageSalesLift?: string;
1348
+ /** @description The URI of the promotion report. */
1349
+ promotionHref?: string;
1350
+ /** @description A unique eBay-assigned ID for the promotion that's generated when the promotion is created. */
1351
+ promotionId?: string;
1352
+ /** @description The unique eBay-assigned ID of the promotion report that is generated when the report is created. */
1353
+ promotionReportId?: string;
1354
+ /** @description This is the monetary amount of the items sold in a threshold promotion 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%" promotion 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. */
1355
+ promotionSale?: components["schemas"]["Amount"];
1356
+ /** @description Indicates the type of the promotion, either <code>CODED_COUPON</code>, <code>MARKDOWN_SALE</code>, <code>ORDER_DISCOUNT</code>, or <code>VOLUME_DISCOUNT</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/sme:PromotionTypeEnum'>eBay API documentation</a> */
1357
+ promotionType?: string;
1358
+ /** @description This is the monetary discount amount applied to the sale of items in a threshold promotion 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%" promotion 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. */
1359
+ totalDiscount?: components["schemas"]["Amount"];
1360
+ /** @description This is the total monetary sales amount of all items sold in a promotion. <br><br>For example, suppose you're running a "Buy 1, get 1 at 50%" promotion 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> */
1361
+ totalSale?: components["schemas"]["Amount"];
1362
+ };
1363
+ /** @description This type defines the fields in a paginated result set of seller promotions. 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. */
1364
+ PromotionsPagedCollection: {
1365
+ /** @description The URI of the current page of results from the result set. */
1366
+ href?: string;
1367
+ /**
1368
+ * Format: int32
1369
+ * @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.
1370
+ */
1371
+ limit?: number;
1372
+ /** @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 */
1373
+ next?: string;
1374
+ /**
1375
+ * Format: int32
1376
+ * @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>
1377
+ */
1378
+ offset?: number;
1379
+ /** @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 */
1380
+ prev?: string;
1381
+ /** @description A list containing the details of each returned promotion. This includes all the information about the promotions except for the listings that are part of the promotions. */
1382
+ promotions?: (components["schemas"]["PromotionDetail"])[];
1383
+ /**
1384
+ * Format: int32
1385
+ * @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>.
1386
+ */
1387
+ total?: number;
1388
+ };
1389
+ /** @description This type defines the fields in a paginated result set of promotion-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. */
1390
+ PromotionsReportPagedCollection: {
1391
+ /** @description The URI of the current page of results from the result set. */
1392
+ href?: string;
1393
+ /**
1394
+ * Format: int32
1395
+ * @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.
1396
+ */
1397
+ limit?: number;
1398
+ /** @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 */
1399
+ next?: string;
1400
+ /**
1401
+ * Format: int32
1402
+ * @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>
1403
+ */
1404
+ offset?: number;
1405
+ /** @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 */
1406
+ prev?: string;
1407
+ /** @description A list of <b>promotionReports</b> contained in the paginated result set. */
1408
+ promotionReports?: (components["schemas"]["PromotionReportDetail"])[];
1409
+ /**
1410
+ * Format: int32
1411
+ * @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>.
1412
+ */
1413
+ total?: number;
1414
+ };
1415
+ /** @description A type that defines the data for a payment amount, such as the sale price. */
1416
+ ProposedBid: {
1417
+ /** @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. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/ba:CurrencyCodeEnum'>eBay API documentation</a> */
1418
+ currency?: string;
1419
+ /** @description The end of the range specified for the bid. */
1420
+ rangeEnd?: string;
1421
+ /** @description The start of the range specified for the bid. */
1422
+ rangeStart?: string;
1423
+ /** @description The value of the proposed bid. */
1424
+ value?: string;
1425
+ };
1426
+ /** @description This type defines the fields included in the report. */
1427
+ ReportMetadata: {
1428
+ /** @description A list containing the metadata for the dimension used in the report. */
1429
+ dimensionMetadata?: (components["schemas"]["DimensionMetadata"])[];
1430
+ /**
1431
+ * Format: int32
1432
+ * @description The maximum number of dimensions that can be requested for the specified report type.
1433
+ */
1434
+ maxNumberOfDimensionsToRequest?: number;
1435
+ /**
1436
+ * Format: int32
1437
+ * @description The maximum number of metrics that can be requested for the specified report type.
1438
+ */
1439
+ maxNumberOfMetricsToRequest?: number;
1440
+ /** @description A list containing the metadata for the metrics in the report. */
1441
+ metricMetadata?: (components["schemas"]["MetricMetadata"])[];
1442
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/plr:ReportTypeEnum'>eBay API documentation</a> */
1443
+ reportType?: string;
1444
+ };
1445
+ /** @description This type defines the metadata used by the all report types. */
1446
+ ReportMetadatas: {
1447
+ /** @description A list of the metadata for the associated report type. */
1448
+ reportMetadata?: (components["schemas"]["ReportMetadata"])[];
1449
+ };
1450
+ /** @description This type defines the fields in a report task. */
1451
+ ReportTask: {
1452
+ /** @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. */
1453
+ campaignIds?: (string)[];
1454
+ /** @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. */
1455
+ dateFrom?: string;
1456
+ /** @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. */
1457
+ dateTo?: string;
1458
+ /** @description A list containing the dimension in the report. */
1459
+ dimensions?: (components["schemas"]["Dimension"])[];
1460
+ /** @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> */
1461
+ fundingModels?: (string)[];
1462
+ /** @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">Inventory API</a>.</p> */
1463
+ inventoryReferences?: (components["schemas"]["InventoryReference"])[];
1464
+ /** @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. */
1465
+ listingIds?: (string)[];
1466
+ /** @description The ID of the eBay marketplace used by the report task. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
1467
+ marketplaceId?: string;
1468
+ /** @description A list of metrics for the report task. */
1469
+ metricKeys?: (string)[];
1470
+ /** @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 */
1471
+ reportExpirationDate?: string;
1472
+ /** @description Indicates the format of the report. Currently, only <code>TSV_GZIP</code> is supported. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/plr:ReportFormatEnum'>eBay API documentation</a> */
1473
+ reportFormat?: string;
1474
+ /** @description The URL of the generated report, which can be used to download the report once it has been generated. */
1475
+ reportHref?: string;
1476
+ /** @description A unique eBay-assigned ID for the report. */
1477
+ reportId?: string;
1478
+ /** @description An eBay-assigned name for the report that's created by the <b>createReportTask</b> call. This name is unique for the seller. */
1479
+ reportName?: string;
1480
+ /** @description The date the report task completed the report generation. <br><br><b>Format (UTC): </b> yyyy-MM-ddThh:mm:ss.sssZ */
1481
+ reportTaskCompletionDate?: string;
1482
+ /** @description The date the report task was created. <br><br><b>Format (UTC): </b> yyyy-MM-ddThh:mm:ss.sssZ */
1483
+ reportTaskCreationDate?: string;
1484
+ /** @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 */
1485
+ reportTaskExpectedCompletionDate?: string;
1486
+ /** @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>. */
1487
+ reportTaskId?: string;
1488
+ /** @description Indicates the current state of the report task. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/plr:TaskStatusEnum'>eBay API documentation</a> */
1489
+ reportTaskStatus?: string;
1490
+ /** @description A status message with additional information about the report task. */
1491
+ reportTaskStatusMessage?: string;
1492
+ /** @description Indicates type of report associated with the report task.<br/><br/><span class="tablenote"><b>Note:</b> INVENTORY_PERFORMANCE_REPORT is not currently available; availability date is pending.</span> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/plr:ReportTypeEnum'>eBay API documentation</a> */
1493
+ reportType?: string;
1494
+ };
1495
+ /** @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. */
1496
+ ReportTaskPagedCollection: {
1497
+ /** @description The URI of the current page of results from the result set. */
1498
+ href?: string;
1499
+ /**
1500
+ * Format: int32
1501
+ * @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.
1502
+ */
1503
+ limit?: number;
1504
+ /** @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 */
1505
+ next?: string;
1506
+ /**
1507
+ * Format: int32
1508
+ * @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>
1509
+ */
1510
+ offset?: number;
1511
+ /** @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 */
1512
+ prev?: string;
1513
+ /**
1514
+ * Format: int32
1515
+ * @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>.
1516
+ */
1517
+ total?: number;
1518
+ /** @description A list of report tasks contained on this page from the paginated response. */
1519
+ reportTasks?: (components["schemas"]["ReportTask"])[];
1520
+ };
1521
+ /** @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>. */
1522
+ RuleCriteria: {
1523
+ /** @description A list of seller inventory reference IDs to exclude from the promotion. <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 */
1524
+ excludeInventoryItems?: (components["schemas"]["InventoryItem"])[];
1525
+ /** @description A list of eBay listing IDs to exclude from the promotion. <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 */
1526
+ excludeListingIds?: (string)[];
1527
+ /** @description A list of SKUs to remove from a markdown promotion. The listed SKUs are 'marked up' to their standard price after being part of the markdown promotion. */
1528
+ markupInventoryItems?: (components["schemas"]["InventoryItem"])[];
1529
+ /** @description A list of listing IDs to remove from a markdown promotion. The listed items are 'marked up' to their standard price after being part of the markdown promotion. */
1530
+ markupListingIds?: (string)[];
1531
+ /** @description The container for the rules that select the items to include in a promotion. <br><br><i>Required if </i> <b>inventoryCriterionType</b> is set to <code>INVENTORY_BY_RULE</code>. */
1532
+ selectionRules?: (components["schemas"]["SelectionRule"])[];
1533
+ };
1534
+ /** @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. */
1535
+ SelectedInventoryDiscount: {
1536
+ /** @description This container defines the promotional discount as either a monetary amount or a percentage applied to the sales price. */
1537
+ discountBenefit?: components["schemas"]["DiscountBenefit"];
1538
+ /** @description A unique, eBay-generated ID that you can use to identify the discount. This field is ignored in POST and PUT operations. */
1539
+ discountId?: string;
1540
+ /** @description A container that defines either the listing IDs or the selection rules that specify the items to include in the promotion. 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 Promotions Manager promotions must support an electronic payment method.</p> */
1541
+ inventoryCriterion?: components["schemas"]["InventoryCriterion"];
1542
+ /**
1543
+ * Format: int32
1544
+ * @description For markdown promotions, 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 ruleOrder value) takes precedence over criteria with a lower precedence.-->
1545
+ */
1546
+ ruleOrder?: number;
1547
+ };
1548
+ /** @description This type specifies the selection rules used to create a campaign. */
1549
+ SelectionRule: {
1550
+ /** @description An array of product brands used as an inclusion filter. A product's brand is defined in a listing's item specifics. This array will be returned if one or more product brands were used as a filter. */
1551
+ brands?: (string)[];
1552
+ /** @description A list of category IDs associated with the listings to be included in the campaign. Ads are created for all the seller's items listed in the specified categories, up to a maximum of 50,000 items. The IDs can be either a list of eBay category IDs (from the site where the item is hosted), or a list of category IDs defined and used by the seller's store. <p><b>eBay Marketplace category IDs</b> <br>To get a list of marketplace category IDs, do one of the following:</p> <ul><li>Get a list of category IDs for a marketplace by adding <code>/sch/allcategories/all-categories</code> to the marketplace URL when browsing the site. <br>For example: <code> http://www.ebay.com.au/sch/allcategories/all-categories</code> </li><li>Navigate to the desired category on the host site and copy the category ID from the URL.</li> <li>These options are also available for the US marketplace: <ul><li>See <a href="http://pages.ebay.com/sellerinformation/news/categorychanges.html " target="_blank">Category Changes</a> for the latest list of category IDs.</li><li>Retrieve a list of category IDs using the <a href="/api-docs/commerce/taxonomy/resources/methods">Taxonomy API</a>.</li></ul></li></ul><p><b>Seller store category IDs</b> <br>Because store category IDs are uniquely defined and maintained by each seller, this service cannot provide a list of a seller's IDs. However, sellers can retrieve their store category IDs as follows:</p><ol><li>Go to <b>Seller Hub</b> &gt; <b>Marketing</b>.</li> <li>Click <b>Manage store categories</b>. <br> A list of your store categories displays.</li> <li>Click the <b>All categories</b> link displayed at the bottom of the list. <br>A complete list of your store categories and their associated store category IDs displays.</li></ol> */
1553
+ categoryIds?: (string)[];
1554
+ /** @description The enumeration values returned in this field indicate if the category IDs in the corresponding categoryIds array are identifiers for eBay categories or for a seller's eBay store categories. This field is always returned if one or more category IDs are used as a filter. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:CategoryScopeEnum'>eBay API documentation</a> */
1555
+ categoryScope?: string;
1556
+ /** @description A comma-separated list of unique identifiers for the conditions of listings to be included in the campaign. Up to four IDs can be specified.<br /><br />This array is only returned if one or more item condition values are used as a filter.<br /><br /><span class="tablenote"><strong>Note:</strong> Multiple listing condition IDs are mapped to the four valid values listed below. Refer to <a href="/api-docs/sell/static/marketing/pl-campaign-flow-pls.html#add-by-rule" target="_blank">Promoted Listings Standard campaign flow</a> for more details.</span><br /><br /><strong>Valid Values:</strong><ul><li><code>1000</code> = New</li><li><code>2000</code> = Certified Refurbished</li><li><code>2500</code> = Seller Refurbished</li><li><code>3000</code> = Used</li></ul> */
1557
+ listingConditionIds?: (string)[];
1558
+ /** @description Use this container to set a maximum price threshold. Any listings that have a 'Buy it Now' price above this price will not be considered for or added to this campaign. */
1559
+ maxPrice?: components["schemas"]["Amount"];
1560
+ /** @description Use this container to set a minimum price threshold. Any listings that have a 'Buy it Now' price below this price will not be considered for or added to this campaign. */
1561
+ minPrice?: components["schemas"]["Amount"];
1562
+ };
1563
+ /** @description The suggested bid rate for the item. */
1564
+ SuggestedBids: {
1565
+ /** @description The text for the keyword. */
1566
+ keywordText?: string;
1567
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:MatchTypeEnum'>eBay API documentation</a> */
1568
+ matchType?: string;
1569
+ /** @description The suggested bid associated with the keyword. */
1570
+ proposedBid?: components["schemas"]["ProposedBid"];
1571
+ };
1572
+ /** @description The suggested keywords for the item. */
1573
+ SuggestedKeywords: {
1574
+ /** @description A container for the additional information and compiled insight data for suggested keywords. */
1575
+ additionalInfo?: (components["schemas"]["AdditionalInfo"])[];
1576
+ /** @description The text for the keyword. */
1577
+ keywordText?: string;
1578
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:MatchTypeEnum'>eBay API documentation</a> */
1579
+ matchType?: string;
1580
+ };
1581
+ /** @description This type defines the fields in an Promotions Manager Summary report. Reports are formatted in JSON. For more details, see <a href="/api-docs/sell/static/marketing/pm-summary-reports.html">Reading item promotion Summary reports</a>. */
1582
+ SummaryReportResponse: {
1583
+ /** @description The total revenue from all the purchased items that were part of a promotion but <i>did not trigger</i> a discount during the promotion period. */
1584
+ baseSale?: components["schemas"]["Amount"];
1585
+ /** @description The date the report was generated. */
1586
+ lastUpdated?: string;
1587
+ /** @description The percentage of the total dollar amount gained due to promotions. This value is calculated as follows: <br><br><b>precentageSalesLift</b> = <b>promotionSale</b> / (<b>baseSale</b> + <b>promotionSale</b>) */
1588
+ percentageSalesLift?: string;
1589
+ /** @description The total revenue from all the purchased items that were part of a promotion and their purchase <i>did trigger</i> a discount during the promotion period. */
1590
+ promotionSale?: components["schemas"]["Amount"];
1591
+ /** @description Total dollar sales amount of all the seller's listings, current to the date the report was generated. */
1592
+ totalSale?: components["schemas"]["Amount"];
1593
+ };
1594
+ /** @description A type that defines the keywords of the paged collection. */
1595
+ TargetedAdsPagedCollection: {
1596
+ /** @description The URI of the current page of results from the result set. */
1597
+ href?: string;
1598
+ /**
1599
+ * Format: int32
1600
+ * @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.
1601
+ */
1602
+ limit?: number;
1603
+ /** @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. */
1604
+ next?: string;
1605
+ /**
1606
+ * Format: int32
1607
+ * @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>
1608
+ */
1609
+ offset?: number;
1610
+ /** @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. */
1611
+ prev?: string;
1612
+ /** @description A list of suggested items in the paginated collection. */
1613
+ suggestedItems?: (components["schemas"]["TargetingItems"])[];
1614
+ /**
1615
+ * Format: int32
1616
+ * @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>
1617
+ */
1618
+ total?: number;
1619
+ };
1620
+ /** @description A type that defines the targeted bid. */
1621
+ TargetedBidRequest: {
1622
+ /** @description A list of keywords in the paginated collection. <br /><br /><b>Maximum number of keywords: </b>500 */
1623
+ keywords?: (components["schemas"]["KeywordRequest"])[];
1624
+ };
1625
+ /** @description A type that defines the keywords of the paged collection. */
1626
+ TargetedBidsPagedCollection: {
1627
+ /** @description A list of bids in the paginated collection. */
1628
+ suggestedBids?: (components["schemas"]["SuggestedBids"])[];
1629
+ };
1630
+ /** @description A type that provides details for the targeted keywords. */
1631
+ TargetedKeywordRequest: {
1632
+ /** @description A field used to indicate whether additional information and insight data shall be provided for suggested keywords.<br /><br /><strong>Valid Value:</strong> <code>KEYWORD_INSIGHTS</code> */
1633
+ additionalInfo?: (string)[];
1634
+ /** @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> */
1635
+ exclusions?: (string)[];
1636
+ /** @description A set of comma-separated listing IDs in the paginated collection. <br /><br /><b>Maximum number of listings requested: </b>300 */
1637
+ listingIds?: (string)[];
1638
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:MatchTypeEnum'>eBay API documentation</a> */
1639
+ matchType?: string;
1640
+ };
1641
+ /** @description A type that defines the keywords of the paged collection. */
1642
+ TargetedKeywordsPagedCollection: {
1643
+ /** @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> */
1644
+ suggestedKeywords?: (components["schemas"]["SuggestedKeywords"])[];
1645
+ };
1646
+ /** @description A type that defines the targeted items. */
1647
+ TargetingItems: {
1648
+ /** @description The metrics and additional information for the items. */
1649
+ bases?: (components["schemas"]["ItemBasis"])[];
1650
+ /** @description The listing ID of the targeted item. */
1651
+ listingId?: string;
1652
+ };
1653
+ /** @description A type that contains the fields used by the <b>UpdateAdGroup</b> request. */
1654
+ UpdateAdGroupRequest: {
1655
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:AdGroupStatusEnum'>eBay API documentation</a> */
1656
+ adGroupStatus?: string;
1657
+ /** @description A bid amount that applies to all of the keywords in an ad group that do not have individual bids. */
1658
+ defaultBid?: components["schemas"]["Amount"];
1659
+ /** @description The updated name for the specified ad group. */
1660
+ name?: string;
1661
+ };
1662
+ /** @description A type that contains the fields for the <b>UpdateAdStatusByListingId</b> request. */
1663
+ UpdateAdStatusByListingIdRequest: {
1664
+ /** @description A unique eBay-assigned ID for an ad group in a campaign that uses the Cost Per Click (CPC) funding model.<br /><br /><span class="tablenote"><b>Note:</b> You can call the <a href="/api-docs/sell/marketing/resources/adgroup/methods/getAdGroups">getAdGroups</a> method to retrieve the ad group IDs for a seller.</span> */
1665
+ adGroupId?: string;
1666
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:AdStatusEnum'>eBay API documentation</a> */
1667
+ adStatus?: string;
1668
+ /** @description A unique eBay-assigned ID 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> */
1669
+ listingId?: string;
1670
+ };
1671
+ /** @description A type that contains the fields for the <b>UpdateAdStatus</b> request. */
1672
+ UpdateAdStatusRequest: {
1673
+ /** @description A unique eBay-assigned ID that is generated when the ad is created. */
1674
+ adId?: string;
1675
+ /** @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> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:AdStatusEnum'>eBay API documentation</a> */
1676
+ adStatus?: string;
1677
+ };
1678
+ /** @description A type that defines the request fields used to update the ad rate strategy for a Promoted Listings ad campaign. */
1679
+ UpdateAdrateStrategyRequest: {
1680
+ /** @description The ad rate strategy that shall be applied to the campaign. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:AdRateStrategyEnum'>eBay API documentation</a> */
1681
+ adRateStrategy?: string;
1682
+ /** @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 /><b>Minimum value:</b> 2.0 <br><b>Maximum value:</b> 100.0 */
1683
+ bidPercentage?: string;
1684
+ /** @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> */
1685
+ dynamicAdRatePreferences?: (components["schemas"]["DynamicAdRatePreference"])[];
1686
+ };
1687
+ /** @description A type that contains the response fields used by the <b>UpdateAdsByInventoryReference</b> method. */
1688
+ UpdateAdsByInventoryReferenceResponse: {
1689
+ /** @description A list of ad IDs and links to retrieve them. */
1690
+ ads?: (components["schemas"]["AdReference"])[];
1691
+ /** @description A container for all of the errors associated with the specified inventory reference ID. */
1692
+ errors?: (components["schemas"]["Error"])[];
1693
+ /** @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>. */
1694
+ inventoryReferenceId?: string;
1695
+ /** @description The inventory reference type associated with the ad. The inventory reference type could be a SKU number or Inventory Item Group. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:InventoryReferenceTypeEnum'>eBay API documentation</a> */
1696
+ inventoryReferenceType?: string;
1697
+ /**
1698
+ * Format: int32
1699
+ * @description An HTTP status code that indicates whether or not the CPS ad was successfully updated.
1700
+ */
1701
+ statusCode?: number;
1702
+ };
1703
+ /** @description This type specifies the bid percentage for an ad campaign. */
1704
+ UpdateBidPercentageRequest: {
1705
+ /** @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 /><b>Minimum value:</b> 2.0 <br><b>Maximum value:</b> 100.0 */
1706
+ bidPercentage?: string;
1707
+ };
1708
+ /** @description A type that contains the fields for the <b>UpdateCampaignBudget</b> request. */
1709
+ UpdateCampaignBudgetRequest: {
1710
+ /** @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> */
1711
+ daily?: components["schemas"]["BudgetRequest"];
1712
+ };
1713
+ /** @description This type specifies the updated name, and start and end dates for an update-campaign request. */
1714
+ UpdateCampaignIdentificationRequest: {
1715
+ /** @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. */
1716
+ campaignName?: string;
1717
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/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, specify the current campaign name and set <b>startDate</b> to the current date (you cannot use a start date that is in the past), and set the <b>endDate</b> as desired. Note that if you do not set a new end date in this call, any current endDate value will be set to null. To preserve the currently-set end date, you must specify the value again in your request.</p> */
1718
+ endDate?: string;
1719
+ /** @description The new start date for the campaign, in UTC format (<code>yyyy-MM-ddThh:mm:ssZ</code>). <p>If the campaign is currently <code>RUNNING</code> or <code>PAUSED</code>, enter the current date in this field because you cannot submit past or future date for these campaigns.</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="/api-docs/sell/marketing/resources/campaign/methods/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> */
1720
+ startDate?: string;
1721
+ };
1722
+ /** @description A type that contains the fields for the <b>UpdateKeywordByKeywordId</b> request. */
1723
+ UpdateKeywordByKeywordIdRequest: {
1724
+ /** @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. */
1725
+ bid?: components["schemas"]["Amount"];
1726
+ /** @description This field is used to identify the keyword to be updated. The <a href="/api-docs/sell/marketing/resources/keyword/methods/getKeyword">getKeyword</a> method can be used to retrieve keywordId values. */
1727
+ keywordId?: string;
1728
+ /** @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="/api-docs/sell/marketing/resources/keyword/methods/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. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:KeywordStatusEnum'>eBay API documentation</a> */
1729
+ keywordStatus?: string;
1730
+ };
1731
+ /** @description A type that contains the fields for the <b>UpdateKeyword</b> request. */
1732
+ UpdateKeywordRequest: {
1733
+ /** @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. */
1734
+ bid?: components["schemas"]["Amount"];
1735
+ /** @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="/api-docs/sell/marketing/resources/keyword/methods/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. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:KeywordStatusEnum'>eBay API documentation</a> */
1736
+ keywordStatus?: string;
1737
+ };
1738
+ /** @description A type that contains the fields for the <b>UpdateKeyword</b> response. */
1739
+ UpdateKeywordResponse: {
1740
+ /** @description This container will be returned if there are one or more issues associated with modifying the corresponding keyword. */
1741
+ errors?: (components["schemas"]["Error"])[];
1742
+ /** @description This field identifies the keyword that the seller updated, or attempted to update. */
1743
+ keywordId?: string;
1744
+ /**
1745
+ * Format: int32
1746
+ * @description An HTTP status code is returned for each keyword to indicate the success or failure of updating that keyword.
1747
+ */
1748
+ statusCode?: number;
1749
+ };
1750
+ /** @description A type that defines the fields used to update a negative keyword. */
1751
+ UpdateNegativeKeywordIdRequest: {
1752
+ /** @description A unique eBay-assigned ID for a negative keyword. This keyword ID will be generated for each successfully created negative keyword. */
1753
+ negativeKeywordId?: string;
1754
+ /** @description A field that defines the status of the negative keyword. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:NegativeKeywordStatusEnum'>eBay API documentation</a> */
1755
+ negativeKeywordStatus?: string;
1756
+ };
1757
+ /** @description A type that contains the fields for the <b>UpdateNegativeKeyword</b> request. */
1758
+ UpdateNegativeKeywordRequest: {
1759
+ /** @description A field that defines the status of the negative keyword. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/marketing/types/pls:NegativeKeywordStatusEnum'>eBay API documentation</a> */
1760
+ negativeKeywordStatus?: string;
1761
+ };
1762
+ /** @description A type that contains the fields for the <b>UpdateNegativeKeyword</b> response. */
1763
+ UpdateNegativeKeywordResponse: {
1764
+ /** @description A container that will be returned if there are one or more issues associated with modifying the corresponding negative keyword. */
1765
+ errors?: (components["schemas"]["Error"])[];
1766
+ /** @description A unique eBay-assigned ID for a negative keyword. This keyword ID will be generated for each successfully created negative keyword. */
1767
+ negativeKeywordId?: string;
1768
+ /**
1769
+ * Format: int32
1770
+ * @description An HTTP status code that indicates the success or failure of updating that negative keyword.
1771
+ */
1772
+ statusCode?: number;
1773
+ };
1774
+ };
1775
+ responses: never;
1776
+ parameters: never;
1777
+ requestBodies: never;
1778
+ headers: never;
1779
+ pathItems: never;
1780
+ }
1781
+ export type external = Record<string, never>;
1782
+ export interface operations {
1783
+ /** @description This method adds multiple listings that are managed with the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">Inventory API</a> to an existing Promoted Listings campaign.<br /><br />For Promoted Listings Standard (PLS) 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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br /><br />Use <a href="/api-docs/sell/marketing/resources/campaign/methods/createCampaign">createCampaign</a> to create a new campaign and use <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to get a list of existing campaigns. */
1784
+ bulkCreateAdsByInventoryReference: {
1785
+ parameters: {
1786
+ path: {
1787
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. Get a seller's campaign IDs by calling <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a>. */
1788
+ campaign_id: string;
1789
+ };
1790
+ };
1791
+ /** @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. */
1792
+ requestBody: {
1793
+ content: {
1794
+ "application/json": components["schemas"]["BulkCreateAdsByInventoryReferenceRequest"];
1795
+ };
1796
+ };
1797
+ responses: {
1798
+ /** @description Success */
1799
+ 200: {
1800
+ content: {
1801
+ "application/json": components["schemas"]["BulkCreateAdsByInventoryReferenceResponse"];
1802
+ };
1803
+ };
1804
+ /** @description Multi Status */
1805
+ 207: never;
1806
+ /** @description Bad Request */
1807
+ 400: never;
1808
+ /** @description Not Found */
1809
+ 404: never;
1810
+ /** @description Business error */
1811
+ 409: never;
1812
+ /** @description Internal Server Error */
1813
+ 500: never;
1814
+ };
1815
+ };
1816
+ /** @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">Trading API</a> or <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">Inventory API</a>, or using values generated by an ad group ID.<p>For Promoted Listings Standard (PLS) 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 Promoted Listings Advanced (PLA) campaigns using the Cost Per Click (CPC) funding model, an ad group must be created first. If no ad group has been created for the campaign, ads cannot be created.</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="/api-docs/sell/marketing/resources/adgroup/methods/createAdGroup">createAdGroup</a> method.</p> <p>You can specify one or more ad groups per campaign.</p><p>Use <a href="/api-docs/sell/marketing/resources/campaign/methods/createCampaign">createCampaign</a> to create a new campaign and use <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to get a list of existing campaigns.</p> */
1817
+ bulkCreateAdsByListingId: {
1818
+ parameters: {
1819
+ path: {
1820
+ /** @description A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a>. */
1821
+ campaign_id: string;
1822
+ };
1823
+ };
1824
+ /** @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. */
1825
+ requestBody: {
1826
+ content: {
1827
+ "application/json": components["schemas"]["BulkCreateAdRequest"];
1828
+ };
1829
+ };
1830
+ responses: {
1831
+ /** @description Success */
1832
+ 200: {
1833
+ content: {
1834
+ "application/json": components["schemas"]["BulkAdResponse"];
1835
+ };
1836
+ };
1837
+ /** @description Multi Status */
1838
+ 207: never;
1839
+ /** @description Bad Request */
1840
+ 400: never;
1841
+ /** @description Not Found */
1842
+ 404: never;
1843
+ /** @description Business error */
1844
+ 409: never;
1845
+ /** @description Internal Server error */
1846
+ 500: never;
1847
+ };
1848
+ };
1849
+ /** @description This method works with listings created with the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> and call <a href="/api-docs/sell/marketing/resources/ad/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
1850
+ bulkDeleteAdsByInventoryReference: {
1851
+ parameters: {
1852
+ path: {
1853
+ /** @description A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a>. */
1854
+ campaign_id: string;
1855
+ };
1856
+ };
1857
+ /** @description This request works with listings created via the <a href="/api-docs/sell/inventory/resources/methods">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. */
1858
+ requestBody: {
1859
+ content: {
1860
+ "application/json": components["schemas"]["BulkDeleteAdsByInventoryReferenceRequest"];
1861
+ };
1862
+ };
1863
+ responses: {
1864
+ /** @description Success */
1865
+ 200: {
1866
+ content: {
1867
+ "application/json": components["schemas"]["BulkDeleteAdsByInventoryReferenceResponse"];
1868
+ };
1869
+ };
1870
+ /** @description Multi Status */
1871
+ 207: never;
1872
+ /** @description Bad Request */
1873
+ 400: never;
1874
+ /** @description Not Found */
1875
+ 404: never;
1876
+ /** @description Business error */
1877
+ 409: never;
1878
+ /** @description Internal Server Error */
1879
+ 500: never;
1880
+ };
1881
+ };
1882
+ /** @description This method works with listing IDs created with either the <a href="/Devzone/XML/docs/Reference/eBay/index.html" title="Trading API Reference">Trading API</a> or the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> and call <a href="/api-docs/sell/marketing/resources/ad/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br /><br />When using the CPC funding model, use the <a href="/api-docs/sell/marketing/resources/ad/methods/bulkUpdateAdsStatusByListingId">bulkUpdateAdsStatusByListingId</a> method to change the status of ads to ARCHIVED. */
1883
+ bulkDeleteAdsByListingId: {
1884
+ parameters: {
1885
+ path: {
1886
+ /** @description A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a>. */
1887
+ campaign_id: string;
1888
+ };
1889
+ };
1890
+ /** @description This request object defines the fields for the <b>bulkDeleteAdsByListingId</b> request. */
1891
+ requestBody: {
1892
+ content: {
1893
+ "application/json": components["schemas"]["BulkDeleteAdRequest"];
1894
+ };
1895
+ };
1896
+ responses: {
1897
+ /** @description Success */
1898
+ 200: {
1899
+ content: {
1900
+ "application/json": components["schemas"]["BulkDeleteAdResponse"];
1901
+ };
1902
+ };
1903
+ /** @description Multi Status */
1904
+ 207: never;
1905
+ /** @description Bad Request */
1906
+ 400: never;
1907
+ /** @description Not Found */
1908
+ 404: never;
1909
+ /** @description Business error */
1910
+ 409: never;
1911
+ /** @description Internal Server Error */
1912
+ 500: never;
1913
+ };
1914
+ };
1915
+ /** @description This method works with listings created with either the <a href="/Devzone/XML/docs/Reference/eBay/index.html" title="Trading API Reference">Trading API</a> or the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> and call <a href="/api-docs/sell/marketing/resources/ad/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
1916
+ bulkUpdateAdsBidByInventoryReference: {
1917
+ parameters: {
1918
+ path: {
1919
+ /** @description A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a>. */
1920
+ campaign_id: string;
1921
+ };
1922
+ };
1923
+ /** @description This request object defines the fields for the <b>BulkCreateAdsByInventoryReference</b> request. */
1924
+ requestBody: {
1925
+ content: {
1926
+ "application/json": components["schemas"]["BulkCreateAdsByInventoryReferenceRequest"];
1927
+ };
1928
+ };
1929
+ responses: {
1930
+ /** @description Success */
1931
+ 200: {
1932
+ content: {
1933
+ "application/json": components["schemas"]["BulkUpdateAdsByInventoryReferenceResponse"];
1934
+ };
1935
+ };
1936
+ /** @description Multi Status */
1937
+ 207: never;
1938
+ /** @description Bad Request */
1939
+ 400: never;
1940
+ /** @description Not Found */
1941
+ 404: never;
1942
+ /** @description Conflict */
1943
+ 409: never;
1944
+ /** @description Internal Server Error */
1945
+ 500: never;
1946
+ };
1947
+ };
1948
+ /** @description This method works with listings created with either the <a href="/Devzone/XML/docs/Reference/eBay/index.html" title="Trading API Reference">Trading API</a> or the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> and call <a href="/api-docs/sell/marketing/resources/ad/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
1949
+ bulkUpdateAdsBidByListingId: {
1950
+ parameters: {
1951
+ path: {
1952
+ /** @description A unique eBay-assigned ID for an ad campaign that's generated when a campaign is created. Get a seller's campaign IDs by calling <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a>. */
1953
+ campaign_id: string;
1954
+ };
1955
+ };
1956
+ /** @description This request object defines the fields for the <b>BulkCreateAdsByListingId</b> request. */
1957
+ requestBody: {
1958
+ content: {
1959
+ "application/json": components["schemas"]["BulkCreateAdRequest"];
1960
+ };
1961
+ };
1962
+ responses: {
1963
+ /** @description Success */
1964
+ 200: {
1965
+ content: {
1966
+ "application/json": components["schemas"]["BulkAdUpdateResponse"];
1967
+ };
1968
+ };
1969
+ /** @description Multi Status */
1970
+ 207: never;
1971
+ /** @description Bad Request */
1972
+ 400: never;
1973
+ /** @description Not Found */
1974
+ 404: never;
1975
+ /** @description Business error */
1976
+ 409: never;
1977
+ /** @description Internal Server error */
1978
+ 500: never;
1979
+ };
1980
+ };
1981
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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">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. */
1982
+ bulkUpdateAdsStatus: {
1983
+ parameters: {
1984
+ path: {
1985
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
1986
+ campaign_id: string;
1987
+ };
1988
+ };
1989
+ /** @description The bulk request to update the ads. */
1990
+ requestBody: {
1991
+ content: {
1992
+ "application/json": components["schemas"]["BulkUpdateAdStatusRequest"];
1993
+ };
1994
+ };
1995
+ responses: {
1996
+ /** @description Success */
1997
+ 200: {
1998
+ content: {
1999
+ "application/json": components["schemas"]["BulkAdUpdateStatusResponse"];
2000
+ };
2001
+ };
2002
+ /** @description Multi Status */
2003
+ 207: never;
2004
+ /** @description Bad Request */
2005
+ 400: never;
2006
+ /** @description Not Found */
2007
+ 404: never;
2008
+ /** @description Business error */
2009
+ 409: never;
2010
+ /** @description Internal Server Error */
2011
+ 500: never;
2012
+ };
2013
+ };
2014
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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">Inventory API</a>.<br /><br />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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> and call <a href="/api-docs/sell/marketing/resources/ad/methods/getAds">getAds</a> to retrieve a list of seller inventory reference IDs. */
2015
+ bulkUpdateAdsStatusByListingId: {
2016
+ parameters: {
2017
+ path: {
2018
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2019
+ campaign_id: string;
2020
+ };
2021
+ };
2022
+ /** @description The bulk request to update ads. */
2023
+ requestBody: {
2024
+ content: {
2025
+ "application/json": components["schemas"]["BulkUpdateAdStatusByListingIdRequest"];
2026
+ };
2027
+ };
2028
+ responses: {
2029
+ /** @description Success */
2030
+ 200: {
2031
+ content: {
2032
+ "application/json": components["schemas"]["BulkAdUpdateStatusByListingIdResponse"];
2033
+ };
2034
+ };
2035
+ /** @description Multi Status */
2036
+ 207: never;
2037
+ /** @description Bad Request */
2038
+ 400: never;
2039
+ /** @description Not Found */
2040
+ 404: never;
2041
+ /** @description Business error */
2042
+ 409: never;
2043
+ /** @description Internal Server error */
2044
+ 500: never;
2045
+ };
2046
+ };
2047
+ /** @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">Trading API</a> or the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">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>Call <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve the current campaign IDs for the seller.</p> */
2048
+ getAds: {
2049
+ parameters: {
2050
+ query?: {
2051
+ /** @description A comma-separated list of ad group IDs. The results will be filtered to only include active ads for these ad groups. Call <a href="/api-docs/sell/marketing/resources/adgroup/methods/getAdGroups">getAdGroups</a> 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> */
2052
+ ad_group_ids?: string;
2053
+ /** @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. */
2054
+ ad_status?: string;
2055
+ /** @description Specifies the maximum number of ads to return on a page in the paginated response. <p><b>Default: </b>10 <br><b>Maximum:</b> 500</p> */
2056
+ limit?: string;
2057
+ /** @description A comma-separated list of listing IDs. The response includes only active ads (ads associated with a RUNNING campaign). The results do not include listing IDs that are excluded by other conditions. */
2058
+ listing_ids?: string;
2059
+ /** @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> */
2060
+ offset?: string;
2061
+ };
2062
+ path: {
2063
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2064
+ campaign_id: string;
2065
+ };
2066
+ };
2067
+ responses: {
2068
+ /** @description Success */
2069
+ 200: {
2070
+ content: {
2071
+ "application/json": components["schemas"]["AdPagedCollectionResponse"];
2072
+ };
2073
+ };
2074
+ /** @description Bad Request */
2075
+ 400: never;
2076
+ /** @description Not Found */
2077
+ 404: never;
2078
+ /** @description Business error */
2079
+ 409: never;
2080
+ /** @description Internal Server error */
2081
+ 500: never;
2082
+ };
2083
+ };
2084
+ /** @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">Trading API</a> or <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">Inventory API</a>, or using a value generated by an ad group ID. <p>For Promoted Listings Standard (PLS) 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 Promoted Listings Advanced (PLA) campaigns using the Cost Per Click (CPC) funding model, an ad group must be created first. If no ad group has been created for the campaign, an ad cannot be created.</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="/api-docs/sell/marketing/resources/adgroup/methods/createAdGroup">createAdGroup</a> method.</p> <p>You can specify one or more ad groups per campaign.</p><p>Use <a href="/api-docs/sell/marketing/resources/campaign/methods/createCampaign">createCampaign</a> to create a new campaign and use <a href="/api-docs/sell/marketing/resources/campaign/methods/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="/api-docs/sell/marketing/resources/ad/methods/getAd">getAd</a> URI of the ad are returned in the location header.</p> */
2085
+ createAdByListingId: {
2086
+ parameters: {
2087
+ path: {
2088
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2089
+ campaign_id: string;
2090
+ };
2091
+ };
2092
+ /** @description This request object defines the fields used in the <b>createAdByListingId</b> request. */
2093
+ requestBody: {
2094
+ content: {
2095
+ "application/json": components["schemas"]["CreateAdRequest"];
2096
+ };
2097
+ };
2098
+ responses: {
2099
+ /** @description Created */
2100
+ 201: {
2101
+ headers: {
2102
+ Location?: string;
2103
+ };
2104
+ content: {
2105
+ "application/json": Record<string, never>;
2106
+ };
2107
+ };
2108
+ /** @description Bad Request */
2109
+ 400: never;
2110
+ /** @description Not Found */
2111
+ 404: never;
2112
+ /** @description Business error */
2113
+ 409: never;
2114
+ /** @description Internal Server Error */
2115
+ 500: never;
2116
+ };
2117
+ };
2118
+ /** @description This method adds a listing that is managed with the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">Inventory API</a> to an existing Promoted Listings campaign.<br /><br />For Promoted Listings Standard (PLS) 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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br /><br />Use <a href="/api-docs/sell/marketing/resources/campaign/methods/createCampaign">createCampaign</a> to create a new campaign and use <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to get a list of existing campaigns. */
2119
+ createAdsByInventoryReference: {
2120
+ parameters: {
2121
+ path: {
2122
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2123
+ campaign_id: string;
2124
+ };
2125
+ };
2126
+ /** @description This request object defines the fields used in the <b>createAdsByInventoryReference</b> request. */
2127
+ requestBody: {
2128
+ content: {
2129
+ "application/json": components["schemas"]["CreateAdsByInventoryReferenceRequest"];
2130
+ };
2131
+ };
2132
+ responses: {
2133
+ /** @description Created */
2134
+ 201: {
2135
+ content: {
2136
+ "application/json": components["schemas"]["AdReferences"];
2137
+ };
2138
+ };
2139
+ /** @description Bad Request */
2140
+ 400: never;
2141
+ /** @description Not Found */
2142
+ 404: never;
2143
+ /** @description Conflict */
2144
+ 409: never;
2145
+ /** @description Internal Server Error */
2146
+ 500: never;
2147
+ };
2148
+ };
2149
+ /** @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>Call <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve a list of the seller's current campaign IDs and call <a href="/api-docs/sell/marketing/resources/ad/methods/getAds">getAds</a> to retrieve their current ad IDs.</p> */
2150
+ getAd: {
2151
+ parameters: {
2152
+ path: {
2153
+ /** @description A unique identifier for an ad. This ID is generated when the ad is created. */
2154
+ ad_id: string;
2155
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2156
+ campaign_id: string;
2157
+ };
2158
+ };
2159
+ responses: {
2160
+ /** @description Success */
2161
+ 200: {
2162
+ content: {
2163
+ "application/json": components["schemas"]["Ad"];
2164
+ };
2165
+ };
2166
+ /** @description Bad Request */
2167
+ 400: never;
2168
+ /** @description Not Found */
2169
+ 404: never;
2170
+ /** @description Business error */
2171
+ 409: never;
2172
+ /** @description Internal Server error */
2173
+ 500: never;
2174
+ };
2175
+ };
2176
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br /><br />When using the CPC funding model, use the <b>bulkUpdateAdsStatusByListingId</b> method to change the status of ads to ARCHIVED. */
2177
+ deleteAd: {
2178
+ parameters: {
2179
+ path: {
2180
+ /** @description Identifier of an ad. This ID was generated when the ad was created. */
2181
+ ad_id: string;
2182
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2183
+ campaign_id: string;
2184
+ };
2185
+ };
2186
+ responses: {
2187
+ /** @description No Content */
2188
+ 204: never;
2189
+ /** @description Bad Request */
2190
+ 400: never;
2191
+ /** @description Not Found */
2192
+ 404: never;
2193
+ /** @description Business error */
2194
+ 409: never;
2195
+ /** @description Internal Server error */
2196
+ 500: never;
2197
+ };
2198
+ };
2199
+ /** @description This method works with listings that are managed with the <a href="/api-docs/sell/inventory/resources/methods" title="Inventory API Reference">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="/api-docs/sell/marketing/resources/campaign/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span><br /><br />When using the CPC funding model, use the bulkUpdateAdsStatusByInventoryReference method to change the status of ads to ARCHIVED. */
2200
+ deleteAdsByInventoryReference: {
2201
+ parameters: {
2202
+ path: {
2203
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2204
+ campaign_id: string;
2205
+ };
2206
+ };
2207
+ /** @description This request object defines the fields for the <b>deleteAdsByInventoryReference</b> request. */
2208
+ requestBody: {
2209
+ content: {
2210
+ "application/json": components["schemas"]["DeleteAdsByInventoryReferenceRequest"];
2211
+ };
2212
+ };
2213
+ responses: {
2214
+ /** @description Success */
2215
+ 200: {
2216
+ content: {
2217
+ "application/json": components["schemas"]["AdIds"];
2218
+ };
2219
+ };
2220
+ /** @description Bad Request */
2221
+ 400: never;
2222
+ /** @description Not Found */
2223
+ 404: never;
2224
+ /** @description Business error */
2225
+ 409: never;
2226
+ /** @description Internal Server Error */
2227
+ 500: never;
2228
+ };
2229
+ };
2230
+ /** @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">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="/api-docs/sell/marketing/resources/campaign/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
2231
+ getAdsByInventoryReference: {
2232
+ parameters: {
2233
+ query: {
2234
+ /** @description The inventory reference ID associated with the ad you want returned. A seller's inventory reference ID is the ID of either a listing or the ID of an inventory item group (the parent of a multi-variation listing, such as a shirt that is available in multiple sizes and colors). You must always supply in both an <b>inventory_reference_id</b> and an <b>inventory_reference_type</b>. */
2235
+ inventory_reference_id: string;
2236
+ /** @description The type of the inventory reference ID. Set this value to either <code>INVENTORY_ITEM</CODE> (a single listing) or <code>INVENTORY_ITEM_GROUP</CODE> (a multi-variation listing). You must always pass in both an <b>inventory_reference_id</b> and an <b>inventory_reference_type</b>. */
2237
+ inventory_reference_type: string;
2238
+ };
2239
+ path: {
2240
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2241
+ campaign_id: string;
2242
+ };
2243
+ };
2244
+ responses: {
2245
+ /** @description Success */
2246
+ 200: {
2247
+ content: {
2248
+ "application/json": components["schemas"]["Ads"];
2249
+ };
2250
+ };
2251
+ /** @description Bad Request */
2252
+ 400: never;
2253
+ /** @description Not Found */
2254
+ 404: never;
2255
+ /** @description Business error */
2256
+ 409: never;
2257
+ /** @description Internal Server error */
2258
+ 500: never;
2259
+ };
2260
+ };
2261
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve a seller's current campaign IDs and call <a href="/api-docs/sell/marketing/resources/ad/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
2262
+ updateBid: {
2263
+ parameters: {
2264
+ path: {
2265
+ /** @description A unique eBay-assigned ID for an ad that's generated when an ad is created. */
2266
+ ad_id: string;
2267
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2268
+ campaign_id: string;
2269
+ };
2270
+ };
2271
+ /** @description This type defines the fields for the <b>updateBid</b> request. */
2272
+ requestBody: {
2273
+ content: {
2274
+ "application/json": components["schemas"]["UpdateBidPercentageRequest"];
2275
+ };
2276
+ };
2277
+ responses: {
2278
+ /** @description No content */
2279
+ 204: never;
2280
+ /** @description Bad Request */
2281
+ 400: never;
2282
+ /** @description Not Found */
2283
+ 404: never;
2284
+ /** @description Business error */
2285
+ 409: never;
2286
+ /** @description Internal Server error */
2287
+ 500: never;
2288
+ };
2289
+ };
2290
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method retrieves ad groups for the specified campaigns.<br /><br />Each campaign can only have <b>one</b> ad group.<br /><br />In the request, supply the <b>campaign_ids</b> as path parameters.<br /><br />Call <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve a list of the current campaign IDs for a seller. */
2291
+ getAdGroups: {
2292
+ parameters: {
2293
+ query?: {
2294
+ /** @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 />The results might not include these ad groups if other search conditions exclude them. */
2295
+ ad_group_status?: string;
2296
+ /** @description The number of results, from the current result set, to be returned in a single page. */
2297
+ limit?: string;
2298
+ /** @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> */
2299
+ offset?: string;
2300
+ };
2301
+ path: {
2302
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2303
+ campaign_id: string;
2304
+ };
2305
+ };
2306
+ responses: {
2307
+ /** @description Success */
2308
+ 200: {
2309
+ content: {
2310
+ "application/json": components["schemas"]["AdGroupPagedCollectionResponse"];
2311
+ };
2312
+ };
2313
+ /** @description Bad Request */
2314
+ 400: never;
2315
+ /** @description Not Found */
2316
+ 404: never;
2317
+ /** @description Business error */
2318
+ 409: never;
2319
+ /** @description Internal Server error */
2320
+ 500: never;
2321
+ };
2322
+ };
2323
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method adds an ad group to an existing PLA campaign that uses the Cost Per Click (CPC) funding model.<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. */
2324
+ createAdGroup: {
2325
+ parameters: {
2326
+ path: {
2327
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2328
+ campaign_id: string;
2329
+ };
2330
+ };
2331
+ /** @description This type defines the fields for the <b>createAdGroup</b> request. */
2332
+ requestBody: {
2333
+ content: {
2334
+ "application/json": components["schemas"]["CreateAdGroupRequest"];
2335
+ };
2336
+ };
2337
+ responses: {
2338
+ /** @description Created */
2339
+ 201: {
2340
+ headers: {
2341
+ Location?: string;
2342
+ };
2343
+ content: {
2344
+ "application/json": Record<string, never>;
2345
+ };
2346
+ };
2347
+ /** @description Bad Request */
2348
+ 400: never;
2349
+ /** @description Not Found */
2350
+ 404: never;
2351
+ /** @description Conflict */
2352
+ 409: never;
2353
+ /** @description Internal Server error */
2354
+ 500: never;
2355
+ };
2356
+ };
2357
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve a list of the current campaign IDs for a seller and call <a href="/api-docs/sell/marketing/resources/adgroup/methods/getAdGroups">getAdGroups</a> for the ad group ID of the ad group you wish to retrieve. */
2358
+ getAdGroup: {
2359
+ parameters: {
2360
+ path: {
2361
+ /** @description The ID of the ad group that shall be retrieved. */
2362
+ ad_group_id: string;
2363
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2364
+ campaign_id: string;
2365
+ };
2366
+ };
2367
+ responses: {
2368
+ /** @description Success */
2369
+ 200: {
2370
+ content: {
2371
+ "application/json": components["schemas"]["AdGroup"];
2372
+ };
2373
+ };
2374
+ /** @description Bad Request */
2375
+ 400: never;
2376
+ /** @description Not Found */
2377
+ 404: never;
2378
+ /** @description Business error */
2379
+ 409: never;
2380
+ /** @description Internal Server Error */
2381
+ 500: never;
2382
+ };
2383
+ };
2384
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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="/api-docs/sell/marketing/resources/adgroup/methods/getAdGroup">getAdGroup</a> to retrieve the current default bid and status of the ad group that you would like to update. */
2385
+ updateAdGroup: {
2386
+ parameters: {
2387
+ path: {
2388
+ /** @description The ID of the ad group that shall be updated. */
2389
+ ad_group_id: string;
2390
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2391
+ campaign_id: string;
2392
+ };
2393
+ };
2394
+ /** @description This type defines the fields for the <b>UpdateAdGroup</b> request. */
2395
+ requestBody: {
2396
+ content: {
2397
+ "application/json": components["schemas"]["UpdateAdGroupRequest"];
2398
+ };
2399
+ };
2400
+ responses: {
2401
+ /** @description No Content */
2402
+ 204: never;
2403
+ /** @description Bad Request */
2404
+ 400: never;
2405
+ /** @description Not Found */
2406
+ 404: never;
2407
+ /** @description Business error */
2408
+ 409: never;
2409
+ /** @description Internal Server error */
2410
+ 500: never;
2411
+ };
2412
+ };
2413
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method allows sellers to retrieve the suggested bids for input keywords and match type. */
2414
+ suggestBids: {
2415
+ parameters: {
2416
+ path: {
2417
+ /** @description The ID of the ad group containing the keywords for which the bid suggestions will be provided. */
2418
+ ad_group_id: string;
2419
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2420
+ campaign_id: string;
2421
+ };
2422
+ };
2423
+ /** @description The data requested to retrieve the suggested bids. */
2424
+ requestBody: {
2425
+ content: {
2426
+ "application/json": components["schemas"]["TargetedBidRequest"];
2427
+ };
2428
+ };
2429
+ responses: {
2430
+ /** @description Success */
2431
+ 200: {
2432
+ content: {
2433
+ "application/json": components["schemas"]["TargetedBidsPagedCollection"];
2434
+ };
2435
+ };
2436
+ /** @description Bad Request */
2437
+ 400: never;
2438
+ /** @description Not Found */
2439
+ 404: never;
2440
+ /** @description Business error */
2441
+ 409: never;
2442
+ /** @description Internal Server error */
2443
+ 500: never;
2444
+ };
2445
+ };
2446
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method allows sellers to retrieve a list of keyword ideas to be targeted for Promoted Listings campaigns. */
2447
+ suggestKeywords: {
2448
+ parameters: {
2449
+ path: {
2450
+ /** @description The ID of the ad group for which the keyword suggestions will be provided. */
2451
+ ad_group_id: string;
2452
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2453
+ campaign_id: string;
2454
+ };
2455
+ };
2456
+ /** @description The required data to retrieve suggested keywords. */
2457
+ requestBody?: {
2458
+ content: {
2459
+ "application/json": components["schemas"]["TargetedKeywordRequest"];
2460
+ };
2461
+ };
2462
+ responses: {
2463
+ /** @description Success */
2464
+ 200: {
2465
+ content: {
2466
+ "application/json": components["schemas"]["TargetedKeywordsPagedCollection"];
2467
+ };
2468
+ };
2469
+ /** @description Bad Request */
2470
+ 400: never;
2471
+ /** @description Not Found */
2472
+ 404: never;
2473
+ /** @description Business error */
2474
+ 409: never;
2475
+ /** @description Internal Server error */
2476
+ 500: never;
2477
+ };
2478
+ };
2479
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
2480
+ cloneCampaign: {
2481
+ parameters: {
2482
+ path: {
2483
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created. This ID is the campaign ID of the campaign being cloned.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2484
+ campaign_id: string;
2485
+ };
2486
+ };
2487
+ /** @description This type defines the fields for a clone campaign request. */
2488
+ requestBody: {
2489
+ content: {
2490
+ "application/json": components["schemas"]["CloneCampaignRequest"];
2491
+ };
2492
+ };
2493
+ responses: {
2494
+ /** @description Success */
2495
+ 201: {
2496
+ headers: {
2497
+ Location?: string;
2498
+ };
2499
+ content: {
2500
+ "application/json": Record<string, never>;
2501
+ };
2502
+ };
2503
+ /** @description Bad Request */
2504
+ 400: never;
2505
+ /** @description Not Found */
2506
+ 404: never;
2507
+ /** @description Business error */
2508
+ 409: never;
2509
+ /** @description Internal Server Error */
2510
+ 500: never;
2511
+ };
2512
+ };
2513
+ /** @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 status, and the funding model (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, 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> */
2514
+ getCampaigns: {
2515
+ parameters: {
2516
+ query?: {
2517
+ /** @description Specifies the campaign name. The results are filtered to include only the campaign by the specified name.<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 */
2518
+ campaign_name?: string;
2519
+ /** @description Include this filter and input a specific campaign status to retrieve campaigns currently in that state. <br /><br /><b>Note: </b>The results might not include all the campaigns with this status if other filters exclude them. <br /><br /><b>Valid values:</b> See <a href="/api-docs/sell/marketing/types/pls:CampaignStatusEnum">CampaignStatusEnum</a> <br /><br /><b>Maximum: </b> 1 status */
2520
+ campaign_status?: string;
2521
+ /** @description 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 /><br /><b>Note: </b>The results might not include all the campaigns ending on this date if other filters exclude them. */
2522
+ end_date_range?: string;
2523
+ /** @description Specifies the funding strategy for the campaign.<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><ul><li><code>COST_PER_SALE</code></li><li><code>COST_PER_CLICK</code></li></ul> */
2524
+ funding_strategy?: string;
2525
+ /** @description <p>Specifies the maximum number of campaigns to return on a page in the paginated response.</p> <b>Default: </b>10 <br><b>Maximum: </b> 500 */
2526
+ limit?: string;
2527
+ /** @description Specifies the number of campaigns 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> */
2528
+ offset?: string;
2529
+ /** @description 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 /><br /><b>Note: </b>The results might not include all the campaigns with this start date if other filters exclude them. */
2530
+ start_date_range?: string;
2531
+ };
2532
+ };
2533
+ responses: {
2534
+ /** @description Success */
2535
+ 200: {
2536
+ content: {
2537
+ "application/json": components["schemas"]["CampaignPagedCollectionResponse"];
2538
+ };
2539
+ };
2540
+ /** @description Bad Request */
2541
+ 400: never;
2542
+ /** @description Business error */
2543
+ 409: never;
2544
+ /** @description Internal Server Error */
2545
+ 500: never;
2546
+ };
2547
+ };
2548
+ /** @description This method creates a Promoted Listings ad campaign. <p>A Promoted Listings <i>campaign</i> is the structure into which you place the ads or ad group for the listings you want to promote.</p> <p>Identify the items you want to place into a campaign either by "key" or by "rule" as follows:</p> <ul><li><b>Rules-based campaigns</b> &ndash; A rules-based campaign adds items to the campaign according to the <i>criteria</i> you specify in your call to <b>createCampaign</b>. You can set the <b>autoSelectFutureInventory</b> request field to <code>true</code> so that after your campaign launches, eBay will regularly assess your new, revised, or newly-eligible listings to determine whether any should be added or removed from your campaign according to the rules you set. If there are, eBay will add or remove them automatically on a daily basis.</li> <li><b>Key-based campaigns</b> &ndash; Add items to an existing campaign using either listing ID values or Inventory Reference values: <ul><li>Add <b>listingId</b> values to an existing campaign by calling either <b>createAdByListingID</b> or <b>bulkCreateAdsByListingId</b>.</li> <li>Add <b>inventoryReference</b> values to an existing campaign by calling either <b>createAdByInventoryReference</b> or <b>bulkCreateAdsByInventoryReference</b>.</li><li>Add an <b>ad group</b> to an existing campaign by calling <b>createAdGroup</b>.</li></ul><p class="tablenote"><b>Note:</b> No matter how you add items to a Promoted Listings campaign, each campaign can contain ads for a maximum of 50,000 items. <br><br>If a rules-based campaign identifies more than 50,000 items, ads are created for only the first 50,000 items identified by the specified criteria, and ads are not created for the remaining items.</p> <p><b>Creating a campaign</b></p> <p>To create a basic campaign, supply:</p> <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> <p>The campaign funding model specifies how the Promoted Listings fee is calculated. Currently, the supported funding models are <code>COST_PER_SALE</code> and <code>COST_PER_CLICK</code>. For complete information on how the fee is calculated and when it applies, see <a href="/api-docs/sell/static/marketing/pl-overview.html#pl-fees">Promoted Listings fees</a>.</p> <p>If you populate the <b>campaignCriterion</b> object in your <b>createCampaign</b> request, campaign "ads" are created by "rule" for the listings that meet the criteria you specify, and these ads are associated with the newly created campaign.</p> <p>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">Promoted Listings campaign creation</a>.</p> <p>For recommendations on which listings are prime for a Promoted Listings ad campaign and to get guidance on how to set the <b>bidPercentage</b> field, see <a href="/api-docs/sell/static/marketing/pl-reco-api.html">Using the Recommendation API to help configure campaigns</a>.</p> <p class="tablenote"><b>Tip:</b> See <a href="/api-docs/sell/marketing/static/overview.html#PL-requirements">Promoted Listings requirements and restrictions</a> for the details on the marketplaces that support Promoted Listings via the API. See <a href="/api-docs/sell/static/marketing/pl-restrictions">Promoted Listings restrictions</a> for details about campaign limitations and restrictions.</p> */
2549
+ createCampaign: {
2550
+ /** @description This type defines the fields for the create campaign request. */
2551
+ requestBody: {
2552
+ content: {
2553
+ "application/json": components["schemas"]["CreateCampaignRequest"];
2554
+ };
2555
+ };
2556
+ responses: {
2557
+ /** @description Created */
2558
+ 201: {
2559
+ headers: {
2560
+ Location?: string;
2561
+ };
2562
+ content: {
2563
+ "application/json": Record<string, never>;
2564
+ };
2565
+ };
2566
+ /** @description Bad Request */
2567
+ 400: never;
2568
+ /** @description Business error */
2569
+ 409: never;
2570
+ /** @description Internal Server error */
2571
+ 500: never;
2572
+ };
2573
+ };
2574
+ /** @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="/api-docs/sell/marketing/resources/ad/methods/getAds">getAds</a>.</p> <p>Call <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve a list of the seller's campaign IDs.</p> */
2575
+ getCampaign: {
2576
+ parameters: {
2577
+ path: {
2578
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2579
+ campaign_id: string;
2580
+ };
2581
+ };
2582
+ responses: {
2583
+ /** @description Success */
2584
+ 200: {
2585
+ content: {
2586
+ "application/json": components["schemas"]["Campaign"];
2587
+ };
2588
+ };
2589
+ /** @description Bad Request */
2590
+ 400: never;
2591
+ /** @description Not Found */
2592
+ 404: never;
2593
+ /** @description Business error */
2594
+ 409: never;
2595
+ /** @description Internal Server Error */
2596
+ 500: never;
2597
+ };
2598
+ };
2599
+ /** @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 /><br />Call <a href="/api-docs/sell/marketing/resources/campaign/methods/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. */
2600
+ deleteCampaign: {
2601
+ parameters: {
2602
+ path: {
2603
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2604
+ campaign_id: string;
2605
+ };
2606
+ };
2607
+ responses: {
2608
+ /** @description No Content */
2609
+ 204: never;
2610
+ /** @description Bad Request */
2611
+ 400: never;
2612
+ /** @description Not Found */
2613
+ 404: never;
2614
+ /** @description Business error */
2615
+ 409: never;
2616
+ /** @description Internal Server error */
2617
+ 500: never;
2618
+ };
2619
+ };
2620
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/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> */
2621
+ endCampaign: {
2622
+ parameters: {
2623
+ path: {
2624
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2625
+ campaign_id: string;
2626
+ };
2627
+ };
2628
+ responses: {
2629
+ /** @description No Content */
2630
+ 204: never;
2631
+ /** @description Bad Request */
2632
+ 400: never;
2633
+ /** @description Not Found */
2634
+ 404: never;
2635
+ /** @description Business error */
2636
+ 409: never;
2637
+ /** @description Internal Server Error */
2638
+ 500: never;
2639
+ };
2640
+ };
2641
+ /** @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">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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
2642
+ findCampaignByAdReference: {
2643
+ parameters: {
2644
+ query?: {
2645
+ /** @description The seller's inventory reference ID of the listing to be used to find the campaign in which it is associated. This will either be a seller-defined <b>SKU</b> value or inventory item group ID, depending on the reference type specified. You must always pass in both <b>inventory_reference_id</b> and <b>inventory_reference_type</b>. */
2646
+ inventory_reference_id?: string;
2647
+ /** @description The type of the seller's inventory reference ID, which is a listing or group of items. You must always pass in both <b>inventory_reference_id</b> and <b>inventory_reference_type</b>. */
2648
+ inventory_reference_type?: string;
2649
+ /** @description Identifier of the eBay listing associated with the ad. */
2650
+ listing_id?: string;
2651
+ };
2652
+ };
2653
+ responses: {
2654
+ /** @description Success */
2655
+ 200: {
2656
+ content: {
2657
+ "application/json": components["schemas"]["Campaigns"];
2658
+ };
2659
+ };
2660
+ /** @description Bad Request */
2661
+ 400: never;
2662
+ /** @description Not Found */
2663
+ 404: never;
2664
+ /** @description Business error */
2665
+ 409: never;
2666
+ /** @description Internal Server Error */
2667
+ 500: never;
2668
+ };
2669
+ };
2670
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> to retrieve a list of the seller's campaign names.</p> */
2671
+ getCampaignByName: {
2672
+ parameters: {
2673
+ query: {
2674
+ /** @description The name of the campaign. */
2675
+ campaign_name: string;
2676
+ };
2677
+ };
2678
+ responses: {
2679
+ /** @description Success */
2680
+ 200: {
2681
+ content: {
2682
+ "application/json": components["schemas"]["Campaign"];
2683
+ };
2684
+ };
2685
+ /** @description Bad Request */
2686
+ 400: never;
2687
+ /** @description Not Found */
2688
+ 404: never;
2689
+ /** @description Business error */
2690
+ 409: never;
2691
+ /** @description Internal Server error */
2692
+ 500: never;
2693
+ };
2694
+ };
2695
+ /** @description This method pauses an active (RUNNING) campaign. <p>You can restart the campaign by calling <a href="/api-docs/sell/marketing/resources/campaign/methods/resumeCampaign">resumeCampaign</a>, as long as the campaign's end date is in the future.</p> <p><b>Note: </b> The listings associated with a paused campaign cannot be added into another campaign.</p> <p>Call <a href="/api-docs/sell/marketing/resources/campaign/methods/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> */
2696
+ pauseCampaign: {
2697
+ parameters: {
2698
+ path: {
2699
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2700
+ campaign_id: string;
2701
+ };
2702
+ };
2703
+ responses: {
2704
+ /** @description No Content */
2705
+ 204: never;
2706
+ /** @description Bad Request */
2707
+ 400: never;
2708
+ /** @description Not Found */
2709
+ 404: never;
2710
+ /** @description Business error */
2711
+ 409: never;
2712
+ /** @description Internal Server error */
2713
+ 500: never;
2714
+ };
2715
+ };
2716
+ /** @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="/api-docs/sell/marketing/resources/campaign/methods/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> */
2717
+ resumeCampaign: {
2718
+ parameters: {
2719
+ path: {
2720
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2721
+ campaign_id: string;
2722
+ };
2723
+ };
2724
+ responses: {
2725
+ /** @description No content */
2726
+ 204: never;
2727
+ /** @description Bad Request */
2728
+ 400: never;
2729
+ /** @description Not Found */
2730
+ 404: never;
2731
+ /** @description Business error */
2732
+ 409: never;
2733
+ /** @description Internal Server error */
2734
+ 500: never;
2735
+ };
2736
+ };
2737
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method allows sellers to obtain ideas for listings, which can be targeted for Promoted Listings campaigns. */
2738
+ suggestItems: {
2739
+ parameters: {
2740
+ query?: {
2741
+ /** @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 /><b>Maximum: </b> 10 */
2742
+ category_ids?: string;
2743
+ /** @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 */
2744
+ limit?: string;
2745
+ /** @description Specifies the number of campaigns 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> */
2746
+ offset?: string;
2747
+ };
2748
+ path: {
2749
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2750
+ campaign_id: string;
2751
+ };
2752
+ };
2753
+ responses: {
2754
+ /** @description Success */
2755
+ 200: {
2756
+ content: {
2757
+ "application/json": components["schemas"]["TargetedAdsPagedCollection"];
2758
+ };
2759
+ };
2760
+ /** @description Bad Request */
2761
+ 400: never;
2762
+ /** @description Not Found */
2763
+ 404: never;
2764
+ /** @description Business error */
2765
+ 409: never;
2766
+ /** @description Internal Server Error */
2767
+ 500: never;
2768
+ };
2769
+ };
2770
+ /** @description This method updates the ad rate strategy for an existing Promoted Listings Standard (PLS) rules-based ad campaign that uses the Cost Per Sale (CPS) funding model.<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="/api-docs/sell/marketing/resources/campaign/methods/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">Funding Models</a> in the <i>Promoted Listings Playbook</i> for more information.</span> */
2771
+ updateAdRateStrategy: {
2772
+ parameters: {
2773
+ path: {
2774
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2775
+ campaign_id: string;
2776
+ };
2777
+ };
2778
+ /** @description This type defines the request fields for the ad rate strategy that shall be updated. */
2779
+ requestBody: {
2780
+ content: {
2781
+ "application/json": components["schemas"]["UpdateAdrateStrategyRequest"];
2782
+ };
2783
+ };
2784
+ responses: {
2785
+ /** @description No content */
2786
+ 204: never;
2787
+ /** @description Bad Request */
2788
+ 400: never;
2789
+ /** @description Not Found */
2790
+ 404: never;
2791
+ /** @description Business error */
2792
+ 409: never;
2793
+ /** @description Internal Server Error */
2794
+ 500: never;
2795
+ };
2796
+ };
2797
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method updates the daily budget for a PLA 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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method. */
2798
+ updateCampaignBudget: {
2799
+ parameters: {
2800
+ path: {
2801
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2802
+ campaign_id: string;
2803
+ };
2804
+ };
2805
+ /** @description This type defines the request fields for the budget details that shall be updated. */
2806
+ requestBody: {
2807
+ content: {
2808
+ "application/json": components["schemas"]["UpdateCampaignBudgetRequest"];
2809
+ };
2810
+ };
2811
+ responses: {
2812
+ /** @description No content */
2813
+ 204: never;
2814
+ /** @description Bad Request */
2815
+ 400: never;
2816
+ /** @description Not Found */
2817
+ 404: never;
2818
+ /** @description Business error */
2819
+ 409: never;
2820
+ /** @description Internal Server error */
2821
+ 500: never;
2822
+ };
2823
+ };
2824
+ /** @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 and set <b>startDate</b> to the current date (you cannot use a start date that is in the past), and set the <b>endDate</b> as desired. 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="/api-docs/sell/marketing/resources/campaign/methods/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. */
2825
+ updateCampaignIdentification: {
2826
+ parameters: {
2827
+ path: {
2828
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2829
+ campaign_id: string;
2830
+ };
2831
+ };
2832
+ /** @description This type defines the fields to update the campaign name and start and end dates. */
2833
+ requestBody: {
2834
+ content: {
2835
+ "application/json": components["schemas"]["UpdateCampaignIdentificationRequest"];
2836
+ };
2837
+ };
2838
+ responses: {
2839
+ /** @description No content */
2840
+ 204: never;
2841
+ /** @description Bad Request */
2842
+ 400: never;
2843
+ /** @description Not Found */
2844
+ 404: never;
2845
+ /** @description Conflict */
2846
+ 409: never;
2847
+ /** @description Internal Server error */
2848
+ 500: never;
2849
+ };
2850
+ };
2851
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method adds keywords, in bulk, to an existing PLA ad group in a campaign that uses the Cost Per Click (CPC) funding model.<br /><br />This method also sets the CPC rate for each keyword.<br /><br />In the request, supply the <b>campaign_id</b> as a path parameter.<br /><br />Call the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a specified seller. */
2852
+ bulkCreateKeyword: {
2853
+ parameters: {
2854
+ path: {
2855
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2856
+ campaign_id: string;
2857
+ };
2858
+ };
2859
+ /** @description A type that defines the fields for the bulk request to create keywords. */
2860
+ requestBody: {
2861
+ content: {
2862
+ "application/json": components["schemas"]["BulkCreateKeywordRequest"];
2863
+ };
2864
+ };
2865
+ responses: {
2866
+ /** @description Success */
2867
+ 200: {
2868
+ content: {
2869
+ "application/json": components["schemas"]["BulkCreateKeywordResponse"];
2870
+ };
2871
+ };
2872
+ /** @description Multi Status */
2873
+ 207: never;
2874
+ /** @description Bad Request */
2875
+ 400: never;
2876
+ /** @description Not Found */
2877
+ 404: never;
2878
+ /** @description Business error */
2879
+ 409: never;
2880
+ /** @description Internal Server error */
2881
+ 500: never;
2882
+ };
2883
+ };
2884
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method updates the bids and statuses of keywords, in bulk, for an existing PLA campaign.<br /><br />In the request, supply the <b>campaign_id</b> as a path parameter.<br /><br />Call the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a specified seller. */
2885
+ bulkUpdateKeyword: {
2886
+ parameters: {
2887
+ path: {
2888
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2889
+ campaign_id: string;
2890
+ };
2891
+ };
2892
+ /** @description A type that defines the fields for the bulk request to update keywords. */
2893
+ requestBody: {
2894
+ content: {
2895
+ "application/json": components["schemas"]["BulkUpdateKeywordRequest"];
2896
+ };
2897
+ };
2898
+ responses: {
2899
+ /** @description Success */
2900
+ 200: {
2901
+ content: {
2902
+ "application/json": components["schemas"]["BulkUpdateKeywordResponse"];
2903
+ };
2904
+ };
2905
+ /** @description Multi Status */
2906
+ 207: never;
2907
+ /** @description Bad Request */
2908
+ 400: never;
2909
+ /** @description Not Found */
2910
+ 404: never;
2911
+ /** @description Business error */
2912
+ 409: never;
2913
+ /** @description Internal Server error */
2914
+ 500: never;
2915
+ };
2916
+ };
2917
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method can be used to retrieve all of the keywords for ad groups in PLA campaigns that use the Cost Per Click (CPC) funding model.<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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller. */
2918
+ getKeywords: {
2919
+ parameters: {
2920
+ query?: {
2921
+ /** @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.<span class="tablenote"><b>Note:</b>You can call the <a href="/api-docs/sell/marketing/resources/adgroup/methods/getAdGroups">getAdGroups</a> method to retrieve the ad group IDs for a seller.</span> */
2922
+ ad_group_ids?: string;
2923
+ /** @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. */
2924
+ keyword_status?: string;
2925
+ /** @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 */
2926
+ limit?: string;
2927
+ /** @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> */
2928
+ offset?: string;
2929
+ };
2930
+ path: {
2931
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2932
+ campaign_id: string;
2933
+ };
2934
+ };
2935
+ responses: {
2936
+ /** @description Success */
2937
+ 200: {
2938
+ content: {
2939
+ "application/json": components["schemas"]["KeywordPagedCollectionResponse"];
2940
+ };
2941
+ };
2942
+ /** @description Bad Request */
2943
+ 400: never;
2944
+ /** @description Not Found */
2945
+ 404: never;
2946
+ /** @description Business error */
2947
+ 409: never;
2948
+ /** @description Internal Server error */
2949
+ 500: never;
2950
+ };
2951
+ };
2952
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method creates keywords using a specified campaign ID for an existing PLA campaign.<br /><br />In the request, supply the <b>campaign_id</b> as a path parameter.<br /><br />Call the <a href="/api-docs/sell/marketing/resources/campaign/methods/suggestKeywords">suggestKeywords</a> method to retrieve a list of keyword ideas to be targeted for PLA campaigns, and call the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller. */
2953
+ createKeyword: {
2954
+ parameters: {
2955
+ path: {
2956
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2957
+ campaign_id: string;
2958
+ };
2959
+ };
2960
+ /** @description A type that defines the fields for the request to create a keyword. */
2961
+ requestBody: {
2962
+ content: {
2963
+ "application/json": components["schemas"]["CreateKeywordRequest"];
2964
+ };
2965
+ };
2966
+ responses: {
2967
+ /** @description Created */
2968
+ 201: {
2969
+ headers: {
2970
+ Location?: string;
2971
+ };
2972
+ content: {
2973
+ "application/json": Record<string, never>;
2974
+ };
2975
+ };
2976
+ /** @description Bad Request */
2977
+ 400: never;
2978
+ /** @description Not Found */
2979
+ 404: never;
2980
+ /** @description Conflict */
2981
+ 409: never;
2982
+ /** @description Internal Server error */
2983
+ 500: never;
2984
+ };
2985
+ };
2986
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method retrieves details on a specific keyword from an ad group within a PLA campaign that uses the Cost Per Click (CPC) funding model.<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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller and call the <a href="/api-docs/sell/marketing/resources/keyword/methods/getKeywords">getKeywords</a> method to retrieve their keyword IDs. */
2987
+ getKeyword: {
2988
+ parameters: {
2989
+ path: {
2990
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
2991
+ campaign_id: string;
2992
+ /** @description This path parameter is used to identify the keyword to retrieve. */
2993
+ keyword_id: string;
2994
+ };
2995
+ };
2996
+ responses: {
2997
+ /** @description Success */
2998
+ 200: {
2999
+ content: {
3000
+ "application/json": components["schemas"]["Keyword"];
3001
+ };
3002
+ };
3003
+ /** @description Bad Request */
3004
+ 400: never;
3005
+ /** @description Not Found */
3006
+ 404: never;
3007
+ /** @description Business error */
3008
+ 409: never;
3009
+ /** @description Internal Server Error */
3010
+ 500: never;
3011
+ };
3012
+ };
3013
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method updates keywords using a campaign ID and keyword ID for an existing PLA 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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller and call the <a href="/api-docs/sell/marketing/resources/keyword/methods/getKeywords">getKeywords</a> method to retrieve their keyword IDs. */
3014
+ updateKeyword: {
3015
+ parameters: {
3016
+ path: {
3017
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<br /><br /><span class="tablenote"><b>Note:</b> You can retrieve the campaign IDs for a specified seller using the <a href="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method.</span> */
3018
+ campaign_id: string;
3019
+ /** @description A unique eBay-assigned ID that is generated when a keyword is created. */
3020
+ keyword_id: string;
3021
+ };
3022
+ };
3023
+ /** @description A type that defines the fields for the request to update a keyword. */
3024
+ requestBody: {
3025
+ content: {
3026
+ "application/json": components["schemas"]["UpdateKeywordRequest"];
3027
+ };
3028
+ };
3029
+ responses: {
3030
+ /** @description Success */
3031
+ 204: never;
3032
+ /** @description Bad Request */
3033
+ 400: never;
3034
+ /** @description Not Found */
3035
+ 404: never;
3036
+ /** @description Business error */
3037
+ 409: never;
3038
+ /** @description Internal Server Error */
3039
+ 500: never;
3040
+ };
3041
+ };
3042
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method adds negative keywords, in bulk, to an existing ad group in a PLA campaign that uses the Cost Per Click (CPC) funding model.<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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a specified seller. */
3043
+ bulkCreateNegativeKeyword: {
3044
+ /** @description A type that defines the fields for the bulk request to create negative keywords. */
3045
+ requestBody: {
3046
+ content: {
3047
+ "application/json": components["schemas"]["BulkCreateNegativeKeywordRequest"];
3048
+ };
3049
+ };
3050
+ responses: {
3051
+ /** @description Success */
3052
+ 200: {
3053
+ content: {
3054
+ "application/json": components["schemas"]["BulkCreateNegativeKeywordResponse"];
3055
+ };
3056
+ };
3057
+ /** @description Multi Status */
3058
+ 207: never;
3059
+ /** @description Bad Request */
3060
+ 400: never;
3061
+ /** @description Forbidden */
3062
+ 403: never;
3063
+ /** @description Business error */
3064
+ 409: never;
3065
+ /** @description Internal Server error */
3066
+ 500: never;
3067
+ };
3068
+ };
3069
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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. */
3070
+ bulkUpdateNegativeKeyword: {
3071
+ /** @description A type that defines the fields for the bulk request to update negative keyword statuses. */
3072
+ requestBody: {
3073
+ content: {
3074
+ "application/json": components["schemas"]["BulkUpdateNegativeKeywordRequest"];
3075
+ };
3076
+ };
3077
+ responses: {
3078
+ /** @description Success */
3079
+ 200: {
3080
+ content: {
3081
+ "application/json": components["schemas"]["BulkUpdateNegativeKeywordResponse"];
3082
+ };
3083
+ };
3084
+ /** @description Multi Status */
3085
+ 207: never;
3086
+ /** @description Bad Request */
3087
+ 400: never;
3088
+ /** @description Forbidden */
3089
+ 403: never;
3090
+ /** @description Business error */
3091
+ 409: never;
3092
+ /** @description Internal Server error */
3093
+ 500: never;
3094
+ };
3095
+ };
3096
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method can be used to retrieve all of the negative keywords for ad groups in PLA campaigns that use the Cost Per Click (CPC) funding model.<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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a seller. */
3097
+ getNegativeKeywords: {
3098
+ parameters: {
3099
+ query?: {
3100
+ /** @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 /><span class="tablenote"><b>Note:</b>You can call the <a href="/api-docs/sell/marketing/resources/adgroup/methods/getAdGroups">getAdGroups</a> method to retrieve the ad group IDs for a seller.</span><br /><br /><i>Required if</i> the search results must be filtered to include negative keywords created at the ad group level. */
3101
+ ad_group_ids?: string;
3102
+ /** @description A unique eBay-assigned ID for an ad campaign that is generated when a campaign is created.<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> */
3103
+ campaign_ids?: string;
3104
+ /** @description The number of results, from the current result set, to be returned in a single page. */
3105
+ limit?: string;
3106
+ /** @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. */
3107
+ negative_keyword_status?: string;
3108
+ /** @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. */
3109
+ offset?: string;
3110
+ };
3111
+ };
3112
+ responses: {
3113
+ /** @description Success */
3114
+ 200: {
3115
+ content: {
3116
+ "application/json": components["schemas"]["NegativeKeywordPagedCollectionResponse"];
3117
+ };
3118
+ };
3119
+ /** @description Bad Request */
3120
+ 400: never;
3121
+ /** @description Forbidden */
3122
+ 403: never;
3123
+ /** @description Not Found */
3124
+ 404: never;
3125
+ /** @description Business error */
3126
+ 409: never;
3127
+ /** @description Internal Server error */
3128
+ 500: never;
3129
+ };
3130
+ };
3131
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />This method adds a negative keyword to an existing ad group in a PLA campaign that uses the Cost Per Click (CPC) funding model.<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="/api-docs/sell/marketing/resources/campaign/methods/getCampaigns">getCampaigns</a> method to retrieve a list of current campaign IDs for a specified seller. */
3132
+ createNegativeKeyword: {
3133
+ /** @description A type that defines the fields for the request to create a negative keyword. */
3134
+ requestBody: {
3135
+ content: {
3136
+ "application/json": components["schemas"]["CreateNegativeKeywordRequest"];
3137
+ };
3138
+ };
3139
+ responses: {
3140
+ /** @description Created */
3141
+ 201: {
3142
+ headers: {
3143
+ Location?: string;
3144
+ };
3145
+ content: {
3146
+ "application/json": Record<string, never>;
3147
+ };
3148
+ };
3149
+ /** @description Bad Request */
3150
+ 400: never;
3151
+ /** @description Forbidden */
3152
+ 403: never;
3153
+ /** @description Business error */
3154
+ 409: never;
3155
+ /** @description Internal Server Error */
3156
+ 500: never;
3157
+ };
3158
+ };
3159
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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. */
3160
+ getNegativeKeyword: {
3161
+ parameters: {
3162
+ path: {
3163
+ /** @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="/api-docs/sell/marketing/resources/negative_keyword/methods/createNegativeKeyword">createNegativeKeyword</a> method. */
3164
+ negative_keyword_id: string;
3165
+ };
3166
+ };
3167
+ responses: {
3168
+ /** @description Success */
3169
+ 200: {
3170
+ content: {
3171
+ "application/json": components["schemas"]["NegativeKeyword"];
3172
+ };
3173
+ };
3174
+ /** @description Bad Request */
3175
+ 400: never;
3176
+ /** @description Forbidden */
3177
+ 403: never;
3178
+ /** @description Not Found */
3179
+ 404: never;
3180
+ /** @description Conflict */
3181
+ 409: never;
3182
+ /** @description Internal Server error */
3183
+ 500: never;
3184
+ };
3185
+ };
3186
+ /** @description <span class="tablenote"><b>Note:</b> This method is only available for select partners who have been approved for the eBay Promoted Listings Advanced (PLA) program. For information about how to request access to this program, refer to <a href="/api-docs/sell/static/marketing/pl-verify-eligibility.html#access-requests " target="_blank "> Promoted Listings Advanced Access Requests</a> in the Promoted Listings Playbook. To determine if a seller qualifies for PLA, use the <a href="/api-docs/sell/account/resources/advertising_eligibility/methods/getAdvertisingEligibility " target="_blank ">getAdvertisingEligibility</a> method in Account API.</span><br />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. */
3187
+ updateNegativeKeyword: {
3188
+ parameters: {
3189
+ path: {
3190
+ /** @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="/api-docs/sell/marketing/resources/negative_keyword/methods/createNegativeKeyword">createNegativeKeyword</a> method. */
3191
+ negative_keyword_id: string;
3192
+ };
3193
+ };
3194
+ /** @description A type that defines the fields for the request to update a negative keyword. */
3195
+ requestBody: {
3196
+ content: {
3197
+ "application/json": components["schemas"]["UpdateNegativeKeywordRequest"];
3198
+ };
3199
+ };
3200
+ responses: {
3201
+ /** @description Success */
3202
+ 204: never;
3203
+ /** @description Bad Request */
3204
+ 400: never;
3205
+ /** @description Forbidden */
3206
+ 403: never;
3207
+ /** @description Not Found */
3208
+ 404: never;
3209
+ /** @description Business error */
3210
+ 409: never;
3211
+ /** @description Internal Server Error */
3212
+ 500: never;
3213
+ };
3214
+ };
3215
+ /** @description This call downloads the report as specified by the <b>report_id</b> path parameter. <br><br>Call <a href="/api-docs/sell/marketing/resources/ad_report_task/methods/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> */
3216
+ getReport: {
3217
+ parameters: {
3218
+ path: {
3219
+ /** @description The unique ID of the Promoted Listings report you want to get. <p>This ID is generated by eBay when you run a report task with a call to <a href="/api-docs/sell/marketing/resources/ad_report_task/methods/createReportTask">createReportTask</a>. Get all the seller's report IDs by calling <a href="/api-docs/sell/marketing/resources/ad_report_task/methods/getReportTasks">getReportTasks</a>.</p> */
3220
+ report_id: string;
3221
+ };
3222
+ };
3223
+ responses: {
3224
+ /** @description Success */
3225
+ 200: {
3226
+ content: {
3227
+ "text/tab-separated-values": Record<string, never>;
3228
+ };
3229
+ };
3230
+ /** @description Bad Request */
3231
+ 400: never;
3232
+ /** @description Not Found */
3233
+ 404: never;
3234
+ /** @description Internal Server error */
3235
+ 500: never;
3236
+ };
3237
+ };
3238
+ /** @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>The request for this method does not use a payload or any URI parameters.<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> */
3239
+ getReportMetadata: {
3240
+ responses: {
3241
+ /** @description Success */
3242
+ 200: {
3243
+ content: {
3244
+ "application/json": components["schemas"]["ReportMetadatas"];
3245
+ };
3246
+ };
3247
+ /** @description Internal Server Error */
3248
+ 500: never;
3249
+ };
3250
+ };
3251
+ /** @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> */
3252
+ getReportMetadataForReportType: {
3253
+ parameters: {
3254
+ path: {
3255
+ /** @description The name of the report type whose metadata you want to retrieve.<br /><br /><span class="tablenote"><b>Tip:</b> For details about available report types and their descriptions, refer to the <a href="/api-docs/sell/marketing/types/plr:ReportTypeEnum">ReportTypeEnum</a>.</span> */
3256
+ report_type: string;
3257
+ };
3258
+ };
3259
+ responses: {
3260
+ /** @description Success */
3261
+ 200: {
3262
+ content: {
3263
+ "application/json": components["schemas"]["ReportMetadata"];
3264
+ };
3265
+ };
3266
+ /** @description Bad Request */
3267
+ 400: never;
3268
+ /** @description Forbidden */
3269
+ 403: never;
3270
+ /** @description Not Found */
3271
+ 404: never;
3272
+ /** @description Internal Server error */
3273
+ 500: never;
3274
+ };
3275
+ };
3276
+ /** @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> */
3277
+ getReportTasks: {
3278
+ parameters: {
3279
+ query?: {
3280
+ /** @description Specifies the maximum number of report tasks to return on a page in the paginated response. <p><b>Default:</b> 10<br><b>Maximum:</b> 500</p> */
3281
+ limit?: string;
3282
+ /** @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 */
3283
+ offset?: string;
3284
+ /** @description This parameter filters the returned report tasks by their status. Supply a comma-separated list of the report statuses you want returned. The results are filtered to include only the report statuses you specify.<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 /><br /><b>Valid values: </b> <br>&nbsp;&nbsp;&nbsp;<code>PENDING</code> <br>&nbsp;&nbsp;&nbsp;<code>SUCCESS</code> <br>&nbsp;&nbsp;&nbsp;<code>FAILED</code> */
3285
+ report_task_statuses?: string;
3286
+ };
3287
+ };
3288
+ responses: {
3289
+ /** @description Success */
3290
+ 200: {
3291
+ content: {
3292
+ "application/json": components["schemas"]["ReportTaskPagedCollection"];
3293
+ };
3294
+ };
3295
+ /** @description Bad Request */
3296
+ 400: never;
3297
+ /** @description Internal Server Error */
3298
+ 500: never;
3299
+ };
3300
+ };
3301
+ /** @description <span class="tablenote"><b>Note:</b> Using multiple funding models in one report is deprecated. If multiple funding models are used, a Warning will be returned in a header. This functionality will be decommissioned on April 3, 2023. See <a href="/develop/apis/api-deprecation-status">API Deprecation Status</a> for details.</span><br /><br />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">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="/api-docs/sell/marketing/resources/ad_report_task/methods/getReportTasks">getReportTasks</a> (or <a href="/api-docs/sell/marketing/resources/ad_report_task/methods/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 /><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="/api-docs/sell/marketing/resources/ad_report_metadata/methods/getReportMetadata">getReportMetadata</a> to retrieve a list of the fields you need to configure for each Promoted Listings report type.</span> */
3302
+ createReportTask: {
3303
+ /** @description The container for the fields that define the report task. */
3304
+ requestBody: {
3305
+ content: {
3306
+ "application/json": components["schemas"]["CreateReportTask"];
3307
+ };
3308
+ };
3309
+ responses: {
3310
+ /** @description Accepted */
3311
+ 202: never;
3312
+ /** @description Bad Request */
3313
+ 400: never;
3314
+ /** @description Forbidden */
3315
+ 403: never;
3316
+ /** @description Conflict */
3317
+ 409: never;
3318
+ /** @description Internal Server error */
3319
+ 500: never;
3320
+ };
3321
+ };
3322
+ /** @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="/api-docs/sell/marketing/resources/ad_report_task/methods/createReportTask">createReportTask</a>. Get a complete list of a seller's report-task IDs by calling <a href="/api-docs/sell/marketing/resources/ad_report_task/methods/getReportTasks">getReportTasks</a>.</p> */
3323
+ getReportTask: {
3324
+ parameters: {
3325
+ path: {
3326
+ /** @description A unique eBay-assigned ID for the report task that's generated when the report task is created by a call to <a href="/api-docs/sell/marketing/resources/ad_report_task/methods/createReportTask">createReportTask</a>. */
3327
+ report_task_id: string;
3328
+ };
3329
+ };
3330
+ responses: {
3331
+ /** @description Success */
3332
+ 200: {
3333
+ content: {
3334
+ "application/json": components["schemas"]["ReportTask"];
3335
+ };
3336
+ };
3337
+ /** @description Bad Request */
3338
+ 400: never;
3339
+ /** @description Not found */
3340
+ 404: never;
3341
+ /** @description Internal Server error */
3342
+ 500: never;
3343
+ };
3344
+ };
3345
+ /** @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="/api-docs/sell/marketing/resources/ad_report_task/methods/createReportTask">createReportTask</a>. Get a complete list of a seller's report-task IDs by calling <a href="/api-docs/sell/marketing/resources/ad_report_task/methods/getReportTasks">getReportTasks</a>.</p> */
3346
+ deleteReportTask: {
3347
+ parameters: {
3348
+ path: {
3349
+ /** @description A unique eBay-assigned ID for the report task that's generated when the report task is created by a call to <a href="/api-docs/sell/marketing/resources/ad_report_task/methods/createReportTask">createReportTask</a>. */
3350
+ report_task_id: string;
3351
+ };
3352
+ };
3353
+ responses: {
3354
+ /** @description No Content */
3355
+ 204: never;
3356
+ /** @description Bad Request */
3357
+ 400: never;
3358
+ /** @description Not found */
3359
+ 404: never;
3360
+ /** @description Conflict */
3361
+ 409: never;
3362
+ /** @description Internal Server error */
3363
+ 500: never;
3364
+ };
3365
+ };
3366
+ /** @description This method creates an <b>item price markdown promotion</b> (know simply as a "markdown promotion") where a discount amount is applied directly to the items included the promotion. Discounts can be specified as either a monetary amount or a percentage off the standard sales price. eBay highlights promoted items by placing teasers for the items throughout the online sales flows. <p>Unlike an <a href="/api-docs/sell/marketing/resources/item_promotion/methods/createItemPromotion">item promotion</a>, a markdown promotion does not require the buyer meet a "threshold" before the offer takes effect. With markdown promotions, all the buyer needs to do is purchase the item to receive the promotion benefit.</p> <p class="tablenote"><b>Important:</b> There are some restrictions for which listings are available for price markdown promotions. For details, see <a href="/api-docs/sell/marketing/static/overview.html#PM-requirements">Promotions Manager requirements and restrictions</a>. <br><br>In addition, we recommend you list items at competitive prices before including them in your markdown promotions. For an extensive list of pricing recommendations, see the <b>Growth</b> tab in Seller Hub.</p> <p>There are two ways to add items to markdown promotions:</p> <ul><li><b>Key-based promotions</b> select items using either the listing IDs or inventory reference IDs of the items you want to promote. 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 the promotion.</li> <li><b>Rule-based promotions</b> select items using a list of eBay category IDs or seller Store category IDs. Rules can further constrain items in a promotion by minimum and maximum prices, brands, and item conditions.</li></ul> <p>New promotions 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 promotion and you want to be sure it's correctly configured before scheduling it to run. When you create a promotion, the promotion ID is returned in the <b>Location</b> response header. Use this ID to reference the promotion in subsequent requests (such as to schedule a promotion 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">Promotions Manager</a> in the <i>Selling Integration Guide</i> for details and examples showing how to create and manage seller promotions.</p> <p>Markdown promotions are available on all eBay marketplaces. For more information, see <a href="/api-docs/sell/marketing/static/overview.html#PM-requirements">Promotions Manager requirements and restrictions</a>.</p> */
3367
+ createItemPriceMarkdownPromotion: {
3368
+ /** @description This type defines the fields that describe an item price markdown promotion. */
3369
+ requestBody?: {
3370
+ content: {
3371
+ "application/json": components["schemas"]["ItemPriceMarkdown"];
3372
+ };
3373
+ };
3374
+ responses: {
3375
+ /** @description Created */
3376
+ 201: {
3377
+ headers: {
3378
+ Location?: string;
3379
+ };
3380
+ content: {
3381
+ "application/json": Record<string, never>;
3382
+ };
3383
+ };
3384
+ /** @description Bad Request */
3385
+ 400: never;
3386
+ /** @description Business Error */
3387
+ 409: never;
3388
+ /** @description Internal Server Error */
3389
+ 500: never;
3390
+ };
3391
+ };
3392
+ /** @description This method returns the complete details of the item price markdown promotion that's indicated by the <b>promotion_id</b> path parameter. <br><br>Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions. */
3393
+ getItemPriceMarkdownPromotion: {
3394
+ parameters: {
3395
+ path: {
3396
+ /** @description This path parameter takes a concatenation of the ID of the promotion you want to get plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (<b>@</b>). <br><br>The ID of the promotion (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted. <br><br><b>Example:</b> <code>1********5@EBAY_US</code> */
3397
+ promotion_id: string;
3398
+ };
3399
+ };
3400
+ responses: {
3401
+ /** @description Success */
3402
+ 200: {
3403
+ content: {
3404
+ "application/json": components["schemas"]["ItemPriceMarkdown"];
3405
+ };
3406
+ };
3407
+ /** @description Bad Request */
3408
+ 400: never;
3409
+ /** @description Not Found */
3410
+ 404: never;
3411
+ /** @description Internal Server Error */
3412
+ 500: never;
3413
+ };
3414
+ };
3415
+ /** @description This method updates the specified item price markdown promotion with the new configuration that you supply in the payload of the request. Specify the promotion you want to update using the <b>promotion_id</b> path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions. <br><br>When updating a promotion, supply all the fields that you used to configure the original promotion (and not just the fields you are updating). eBay replaces the specified promotion with the values you supply in the update request and if you don't pass a field that currently has a value, the update request fails. <br><br>The parameters you are allowed to update with this request depend on the status of the promotion you're updating: <ul><li>DRAFT or SCHEDULED promotions: You can update any of the parameters in these promotions that have not yet started to run, including the <b>discountRules</b>.</li> <li>RUNNING promotions: You can change the <b>endDate</b> and the item's inventory but you cannot change the promotional discount or the promotion's start date.</li> <li>ENDED promotions: Nothing can be changed.</li></ul> */
3416
+ updateItemPriceMarkdownPromotion: {
3417
+ parameters: {
3418
+ path: {
3419
+ /** @description This path parameter takes a concatenation of the ID of the promotion you want to update plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (<b>@</b>). <br><br>The ID of the promotion (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted. <br><br><b>Example:</b> <code>1********5@EBAY_US</code> */
3420
+ promotion_id: string;
3421
+ };
3422
+ };
3423
+ /** @description This type defines the fields that describe an item price markdown promotion. */
3424
+ requestBody?: {
3425
+ content: {
3426
+ "application/json": components["schemas"]["ItemPriceMarkdown"];
3427
+ };
3428
+ };
3429
+ responses: {
3430
+ /** @description Success */
3431
+ 200: {
3432
+ content: {
3433
+ "application/json": Record<string, never>;
3434
+ };
3435
+ };
3436
+ /** @description Success */
3437
+ 204: never;
3438
+ /** @description Bad Request */
3439
+ 400: never;
3440
+ /** @description Not Found */
3441
+ 404: never;
3442
+ /** @description Business Error */
3443
+ 409: never;
3444
+ /** @description Internal Server Error */
3445
+ 500: never;
3446
+ };
3447
+ };
3448
+ /** @description This method deletes the item price markdown promotion specified by the <b>promotion_id</b> path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions. <br><br>You can delete any promotion with the exception of those that are currently active (RUNNING). To end a running promotion, call <a href="/api-docs/sell/marketing/resources/item_price_markdown/methods/updateItemPriceMarkdownPromotion">updateItemPriceMarkdownPromotion</a> and adjust the <b>endDate</b> field as appropriate. */
3449
+ deleteItemPriceMarkdownPromotion: {
3450
+ parameters: {
3451
+ path: {
3452
+ /** @description This path parameter takes a concatenation of the ID of the promotion you want to delete plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (<b>@</b>). <br><br>The ID of the promotion (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted. <br><br><b>Example:</b> <code>1********5@EBAY_US</code> */
3453
+ promotion_id: string;
3454
+ };
3455
+ };
3456
+ responses: {
3457
+ /** @description No Content */
3458
+ 204: never;
3459
+ /** @description Bad Request */
3460
+ 400: never;
3461
+ /** @description Not Found */
3462
+ 404: never;
3463
+ /** @description Internal Server Error */
3464
+ 500: never;
3465
+ };
3466
+ };
3467
+ /** @description This method creates an <b>item promotion</b>, where the buyer receives a discount when they meet the buying criteria that's set for the promotion. Known here as "threshold promotions", these promotions trigger when a threshold is met. <p>eBay highlights promoted items by placing teasers for the promoted 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> promotions 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 promotion:</p> <ul><li><b>Key-based promotions</b> select items using either the listing IDs or inventory reference IDs of the items you want to promote. 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 the promotion.</li> <li><b>Rule-based promotions</b> select items using a list of eBay category IDs or seller Store category IDs. Rules can further constrain items in a promotion by minimum and maximum prices, brands, and item conditions.</li></ul> <p>You must create a new promotion in either a <code>DRAFT</code> or <code>SCHEDULED</code> state. Use the DRAFT state when you are initially creating a promotion and you want to be sure it's correctly configured before scheduling it to run. When you create a promotion, the promotion ID is returned in the <b>Location</b> response header. Use this ID to reference the promotion in subsequent requests.</p> <p class="tablenote"><b>Tip:</b> Refer to the <a href="/api-docs/sell/static/marketing/promotions-manager.html">Selling Integration Guide</a> for details and examples showing how to create and manage threshold promotions using the Promotions Manager.</p> <p>For information on the eBay marketplaces that support item promotions, see <a href="/api-docs/sell/marketing/static/overview.html#PM-requirements">Promotions Manager requirements and restrictions</a>.</p> */
3468
+ createItemPromotion: {
3469
+ /** @description This type defines the fields that describe an item promotion. */
3470
+ requestBody?: {
3471
+ content: {
3472
+ "application/json": components["schemas"]["ItemPromotion"];
3473
+ };
3474
+ };
3475
+ responses: {
3476
+ /** @description Created */
3477
+ 201: {
3478
+ headers: {
3479
+ Location?: string;
3480
+ };
3481
+ content: {
3482
+ "application/json": components["schemas"]["BaseResponse"];
3483
+ };
3484
+ };
3485
+ /** @description Bad Request */
3486
+ 400: never;
3487
+ /** @description Business Error */
3488
+ 409: never;
3489
+ /** @description Internal Server Error */
3490
+ 500: never;
3491
+ };
3492
+ };
3493
+ /** @description This method returns the complete details of the threshold promotion specified by the <b>promotion_id</b> path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions. */
3494
+ getItemPromotion: {
3495
+ parameters: {
3496
+ path: {
3497
+ /** @description This path parameter takes a concatenation of the ID of the promotion you want to retrieve plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (<b>@</b>). <br><br>The ID of the promotion (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted. <br><br><b>Example:</b> <code>1********5@EBAY_US</code> */
3498
+ promotion_id: string;
3499
+ };
3500
+ };
3501
+ responses: {
3502
+ /** @description Success */
3503
+ 200: {
3504
+ content: {
3505
+ "application/json": components["schemas"]["ItemPromotionResponse"];
3506
+ };
3507
+ };
3508
+ /** @description Bad Request */
3509
+ 400: never;
3510
+ /** @description Not Found */
3511
+ 404: never;
3512
+ /** @description Internal Server Error */
3513
+ 500: never;
3514
+ };
3515
+ };
3516
+ /** @description This method updates the specified threshold promotion with the new configuration that you supply in the request. Indicate the promotion you want to update using the <b>promotion_id</b> path parameter. <p>Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions.</p> <p>When updating a promotion, supply all the fields that you used to configure the original promotion (and not just the fields you are updating). eBay replaces the specified promotion with the values you supply in the update request and if you don't pass a field that currently has a value, the update request will fail.</p> <p>The parameters you are allowed to update with this request depend on the status of the promotion you're updating: <ul><li>DRAFT or SCHEDULED promotions: You can update any of the parameters in these promotions that have not yet started to run, including the <b>discountRules</b>.</li> <li>RUNNING or PAUSED promotions: You can change the <b>endDate</b> and the item's inventory but you cannot change the promotional discount or the promotion's start date.</li> <li>ENDED promotions: Nothing can be changed.</li></ul> <p class="tablenote"><b>Tip:</b> When updating a <code>RUNNING</code> or <code>PAUSED</code> promotion, set the <b>status</b> field to <code>SCHEDULED</code> for the update request. When the promotion is updated, the previous status (either <code>RUNNING</code> or <code>PAUSED</code>) is retained.</p> */
3517
+ updateItemPromotion: {
3518
+ parameters: {
3519
+ path: {
3520
+ /** @description This path parameter takes a concatenation of the ID of the promotion you want to update plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (<b>@</b>). <br><br>The ID of the promotion (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted. <br><br><b>Example:</b> <code>1********5@EBAY_US</code> */
3521
+ promotion_id: string;
3522
+ };
3523
+ };
3524
+ /** @description This type defines the fields that describe an item promotion. */
3525
+ requestBody?: {
3526
+ content: {
3527
+ "application/json": components["schemas"]["ItemPromotion"];
3528
+ };
3529
+ };
3530
+ responses: {
3531
+ /** @description Success */
3532
+ 200: {
3533
+ content: {
3534
+ "application/json": components["schemas"]["BaseResponse"];
3535
+ };
3536
+ };
3537
+ /** @description Success */
3538
+ 204: never;
3539
+ /** @description Bad Request */
3540
+ 400: never;
3541
+ /** @description Not Found */
3542
+ 404: never;
3543
+ /** @description Business Error */
3544
+ 409: never;
3545
+ /** @description Internal Server Error */
3546
+ 500: never;
3547
+ };
3548
+ };
3549
+ /** @description This method deletes the threshold promotion specified by the <b>promotion_id</b> path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions. <br><br>You can delete any promotion with the exception of those that are currently active (RUNNING). To end a running threshold promotion, call <a href="/api-docs/sell/marketing/resources/item_promotion/methods/updateItemPromotion">updateItemPromotion</a> and adjust the <b>endDate</b> field as appropriate. */
3550
+ deleteItemPromotion: {
3551
+ parameters: {
3552
+ path: {
3553
+ /** @description This path parameter takes a concatenation of the ID of the promotion you want to delete plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (<b>@</b>). <br><br>The ID of the promotion (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted. <br><br><b>Example:</b> <code>1********5@EBAY_US</code> */
3554
+ promotion_id: string;
3555
+ };
3556
+ };
3557
+ responses: {
3558
+ /** @description No Content */
3559
+ 204: never;
3560
+ /** @description Bad Request */
3561
+ 400: never;
3562
+ /** @description Not Found */
3563
+ 404: never;
3564
+ /** @description Internal Server Error */
3565
+ 500: never;
3566
+ };
3567
+ };
3568
+ /** @description This method returns the set of listings associated with the <b>promotion_id</b> specified in the path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of a seller's promotions. <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> */
3569
+ getListingSet: {
3570
+ parameters: {
3571
+ query?: {
3572
+ /** @description Specifies the maximum number of promotions returned on a page from the result set. <br><br><b>Default:</b> 200<br><b>Maximum:</b> 200 */
3573
+ limit?: string;
3574
+ /** @description Specifies the number of promotions to skip in the result set before returning the first promotion 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> */
3575
+ offset?: string;
3576
+ /** @description Reserved for future use. */
3577
+ q?: string;
3578
+ /** @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> For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/marketing/types/csb:SortField */
3579
+ sort?: string;
3580
+ /** @description This query parameter applies only to markdown promotions. It filters the response based on the indicated status of the promotion. Currently, the only supported value for this parameter is <code>MARKED_DOWN</code>, which indicates active markdown promotions. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/marketing/types/sme:ItemMarkdownStatusEnum */
3581
+ status?: string;
3582
+ };
3583
+ path: {
3584
+ /** @description This path parameter takes a concatenation of the ID of the promotion you want to get plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (<b>@</b>). <br><br>The ID of the promotion (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted. <br><br><b>Example:</b> <code>1********5@EBAY_US</code> */
3585
+ promotion_id: string;
3586
+ };
3587
+ };
3588
+ responses: {
3589
+ /** @description Success */
3590
+ 200: {
3591
+ content: {
3592
+ "application/json": components["schemas"]["ItemsPagedCollection"];
3593
+ };
3594
+ };
3595
+ /** @description Bad Request */
3596
+ 400: never;
3597
+ /** @description Not Found */
3598
+ 404: never;
3599
+ /** @description Internal Server Error */
3600
+ 500: never;
3601
+ };
3602
+ };
3603
+ /** @description This method returns a list of a seller's undeleted promotions. <p>The call returns up to 200 currently-available promotions on the specified marketplace. While the response body does not include the promotion'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 promotion).</p> <p>Use query parameters to sort and filter the results by the number of promotions to return, the promotion state or type, and the eBay marketplace. You can also supply keywords to limit the response to the promotions that contain that keywords in the title of the promotion.</p> <p><b>Maximum returned:</b> 200</p> */
3604
+ getPromotions: {
3605
+ parameters: {
3606
+ query: {
3607
+ /** @description Specifies the maximum number of promotions returned on a page from the result set. <br><br><b>Default:</b> 200 <br><b>Maximum:</b> 200 */
3608
+ limit?: string;
3609
+ /** @description The eBay marketplace ID of the site where the promotion is hosted. <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> */
3610
+ marketplace_id: string;
3611
+ /** @description Specifies the number of promotions to skip in the result set before returning the first promotion 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> */
3612
+ offset?: string;
3613
+ /** @description Specifies the promotion state by which you want to filter the results. The response contains only those promotions that match the state you specify. <br><br><b>Valid values:</b> <ul><li><code>DRAFT</code></li> <li><code>SCHEDULED</code></li> <li><code>RUNNING</code></li> <li><code>PAUSED</code></li> <li><code>ENDED</code></li></ul><b>Maximum number of input values:</b> 1 */
3614
+ promotion_status?: string;
3615
+ /** @description Filters the returned promotions based on their campaign promotion type. Specify one of the following values to indicate the promotion type you want returned: <ul><li><code>CODED_COUPON</code> &ndash; A coupon code promotion set with <b>createItemPromotion</b>.</li> <li><code>MARKDOWN_SALE</code> &ndash; A markdown promotion set with <b>createItemPriceMarkdownPromotion</b>.</li> <li><code>ORDER_DISCOUNT</code> &ndash; A threshold promotion set with <b>createItemPromotion</b>.</li> <li><code>VOLUME_DISCOUNT</code> &ndash; A volume pricing promotion set with <b>createItemPromotion</b>.</li></ul> */
3616
+ promotion_type?: string;
3617
+ /** @description A string consisting of one or more <i>keywords</i>. eBay filters the response by returning only the promotions that contain the supplied keywords in the promotion 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 promotions with both "iPhone" and "iPad" in the title. */
3618
+ q?: string;
3619
+ /** @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 promotions in the response by their end dates in ascending order <br>&nbsp;&nbsp;&nbsp;<code>sort=-PROMOTION_NAME</code> &nbsp; Sorts the promotions by their promotion 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> For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/marketing/types/csb:SortField */
3620
+ sort?: string;
3621
+ };
3622
+ };
3623
+ responses: {
3624
+ /** @description Success */
3625
+ 200: {
3626
+ content: {
3627
+ "application/json": components["schemas"]["PromotionsPagedCollection"];
3628
+ };
3629
+ };
3630
+ /** @description Bad Request */
3631
+ 400: never;
3632
+ /** @description Internal Server Error */
3633
+ 500: never;
3634
+ };
3635
+ };
3636
+ /** @description This method pauses a currently-active (RUNNING) threshold promotion and changes the state of the promotion from <code>RUNNING</code> to <code>PAUSED</code>. Pausing a promotion makes the promotion temporarily unavailable to buyers and any currently-incomplete transactions will not receive the promotional offer until the promotion is resumed. Also, promotion teasers are not displayed when a promotion is paused. <br><br>Pass the ID of the promotion you want to pause using the <b>promotion_id</b> path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of the seller's promotions. <br><br><b>Note:</b> You can only pause threshold promotions (you cannot pause markdown promotions). */
3637
+ pausePromotion: {
3638
+ parameters: {
3639
+ path: {
3640
+ /** @description This path parameter takes a concatenation of the ID of the promotion you want to pause plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (<b>@</b>). <br><br>The ID of the promotion (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted. <br><br><b>Example:</b> <code>1********5@EBAY_US</code> */
3641
+ promotion_id: string;
3642
+ };
3643
+ };
3644
+ responses: {
3645
+ /** @description Success */
3646
+ 204: never;
3647
+ /** @description Bad Request */
3648
+ 400: never;
3649
+ /** @description Not Found */
3650
+ 404: never;
3651
+ /** @description Internal Server Error */
3652
+ 500: never;
3653
+ };
3654
+ };
3655
+ /** @description This method restarts a threshold promotion that was previously paused and changes the state of the promotion from <code>PAUSED</code> to <code>RUNNING</code>. Only promotions that have been previously paused can be resumed. Resuming a promotion reinstates the promotional teasers and any transactions that were in motion before the promotion was paused will again be eligible for the promotion. <br><br>Pass the ID of the promotion you want to resume using the <b>promotion_id</b> path parameter. Call <a href="/api-docs/sell/marketing/resources/promotion/methods/getPromotions">getPromotions</a> to retrieve the IDs of the seller's promotions. */
3656
+ resumePromotion: {
3657
+ parameters: {
3658
+ path: {
3659
+ /** @description This path parameter takes a concatenation of the ID of the promotion you want to resume plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (<b>@</b>). <br><br>The ID of the promotion (<b>promotionId</b>) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted. <br><br><b>Example:</b> <code>1********5@EBAY_US</code> */
3660
+ promotion_id: string;
3661
+ };
3662
+ };
3663
+ responses: {
3664
+ /** @description Success */
3665
+ 204: never;
3666
+ /** @description Bad Request */
3667
+ 400: never;
3668
+ /** @description Not Found */
3669
+ 404: never;
3670
+ /** @description Internal Server Error */
3671
+ 500: never;
3672
+ };
3673
+ };
3674
+ /** @description This method generates a report that lists the seller's running, paused, and ended promotions for the specified eBay marketplace. The result set can be filtered by the promotion status and the number of results to return. You can also supply <i>keywords</i> to limit the report to promotions 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. */
3675
+ getPromotionReports: {
3676
+ parameters: {
3677
+ query: {
3678
+ /** @description Specifies the maximum number of promotions returned on a page from the result set. <br><br><b>Default:</b> 200 <br><b>Maximum:</b> 200 */
3679
+ limit?: string;
3680
+ /** @description The eBay marketplace ID of the site for which you want the promotions report. <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> */
3681
+ marketplace_id: string;
3682
+ /** @description Specifies the number of promotions to skip in the result set before returning the first promotion 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> */
3683
+ offset?: string;
3684
+ /** @description Limits the results to the promotions that are in the state specified by this query parameter. <br><br><b>Valid values:</b> <ul><li><code>DRAFT</code></li> <li><code>SCHEDULED</code></li> <li><code>RUNNING</code></li> <li><code>PAUSED</code></li> <li><code>ENDED</code></li></ul><b>Maximum number of values supported:</b> 1 */
3685
+ promotion_status?: string;
3686
+ /** @description Filters the returned promotions in the report based on their campaign promotion type. Specify one of the following values to indicate the promotion type you want returned in the report: <ul><li><code>CODED_COUPON</code> &ndash; A coupon code promotion set with <b>createItemPromotion</b>.</li> <li><code>MARKDOWN_SALE</code> &ndash; A markdown promotion set with <b>createItemPriceMarkdownPromotion</b>.</li> <li><code>ORDER_DISCOUNT</code> &ndash; A threshold promotion set with <b>createItemPromotion</b>.</li> <li><code>VOLUME_DISCOUNT</code> &ndash; A volume pricing promotion set with <b>createItemPromotion</b>.</li></ul> */
3687
+ promotion_type?: string;
3688
+ /** @description A string consisting of one or more <i>keywords</i>. eBay filters the response by returning only the promotions that contain the supplied keywords in the promotion 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 promotions with both "iPhone" and "iPad" in the title. */
3689
+ q?: string;
3690
+ };
3691
+ };
3692
+ responses: {
3693
+ /** @description Success */
3694
+ 200: {
3695
+ content: {
3696
+ "application/json": components["schemas"]["PromotionsReportPagedCollection"];
3697
+ };
3698
+ };
3699
+ /** @description Bad Request */
3700
+ 400: never;
3701
+ /** @description Internal Server Error */
3702
+ 500: never;
3703
+ };
3704
+ };
3705
+ /** @description This method generates a report that summarizes the seller's promotions for the specified eBay marketplace. The report returns information on <code>RUNNING</code>, <code>PAUSED</code>, and <code>ENDED</code> promotions (deleted reports are not returned) and summarizes the seller's campaign performance for all promotions on a given site. <br><br>For information about summary reports, see <a href="/api-docs/sell/static/marketing/pm-summary-report.html">Reading the item promotion Summary report</a>. */
3706
+ getPromotionSummaryReport: {
3707
+ parameters: {
3708
+ query: {
3709
+ /** @description The eBay marketplace ID of the site you for which you want a promotion summary report. <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> */
3710
+ marketplace_id: string;
3711
+ };
3712
+ };
3713
+ responses: {
3714
+ /** @description Success */
3715
+ 200: {
3716
+ content: {
3717
+ "application/json": components["schemas"]["SummaryReportResponse"];
3718
+ };
3719
+ };
3720
+ /** @description Bad Request */
3721
+ 400: never;
3722
+ /** @description Not Found */
3723
+ 404: never;
3724
+ /** @description Internal Server Error */
3725
+ 500: never;
3726
+ };
3727
+ };
3728
+ }