Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2014
901
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. https://forums.developer.ebay.com/questions/3663/feature-request-need-categoryidname-and-path-in-fi.html
  2.  
  3. <PrimaryCategoryIDPath>11450:1059:3002</PrimaryCategoryIDPath>
  4.  
  5. <PrimaryCategoryName>Clothing, Shoes & Accessories:Men's Clothing:Blazers & Sport Coats</PrimaryCategoryName>
  6.  
  7. <SecondaryCategoryName>Clothing, Shoes & Accessories:Men's Clothing:Coats & Jackets</SecondaryCategoryName><SecondaryCategoryIDPath>11450:1059:57988</SecondaryCategoryIDPath>
  8.  
  9. I again find myself in need of this feature.
  10.  
  11. Using the example above, say for example I have a user that wants to view "boots" from the clothing category, but wants to exclude Men's Clothing. While a negative search term is possible, the problems with that come when sellers list in a category such as 11498 (Mens Shoes->Boots) and don't include "men's" or "boots" in the title, instead relying on the category name.
  12.  
  13. I can set up a search for "boots" in 11450 to get all boots.
  14.  
  15. Items in Men's clothing would have :1059: in the category ID path, regardless of the subcategory they are in.
  16. So I can exclude these items by simply testing the category id path against ":1059:"
  17. The category path name can also be used to do some keyword matching or exclusion.
  18.  
  19. Take this item for example:
  20. Item: 181600108975
  21. Title: Iron Man 254 Marvel 1990 Santa Claus Christmas Cover Bob Layton Taskmaster
  22. Descr: Taskmaster is one of the baddies here. Sign up for the store newsletter!!!
  23.  
  24. Say I want to get all Iron Man collectibles and then I want to group them in a database by item type. I search collectibles for "iron man" then based on various keywords I group them together. This item belongs in the comics section, but there's nothing in the title or description to indicate that. Finding API only returns the listing category "Iron Man" 165411.
  25.  
  26. The category histogram is of no use here because it isn't linked to the item and 165411 isn't included. Only the first two levels are supported.
  27.  
  28. With PrimaryCategoryName/IDPath in the Finding response, I could detect that the item is a comic and include it in that section.
  29. Here's how it looking in Shopping API:
  30. <PrimaryCategoryName>Collectibles:Comics:Copper Age (1984-1991):Superhero:Iron Man</PrimaryCategoryName>
  31. <PrimaryCategoryIDPath>1:63:165364:165386:165411</PrimaryCategoryIDPath>
  32.  
  33. While I can do some exception processing here to limit the calls to GetMultipleItems, it would be much easier to implement this sort of thing (and breadcrumbs and other category hierarchies) at the individual item level with these fields and the complete category hierarchy included in the response at the item level.
  34.  
  35. An alternate summary format would work too: these two fields (for both primary and secondary listing categories) as needed for each leaf category returned in the results
  36.  
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement