亚马逊映射产品类别到正确的类别XSD亚马逊、产品类别、正确、类别

由网友(手持钢枪战婊子)分享简介:内_POST_PRODUCT_DATA_喂ProductData节点中包含的数据是特定于该项内的类别。究竟如何,虽然应该类别的项目是在映射到XSD如仍有不适(总是)似乎是一个直接的关系。呼唤GetProductCategoriesForASIN似乎并没有太大的帮助任 - 做什么用的类别的ProductCategoryN...

内_POST_PRODUCT_DATA_喂ProductData节点中包含的数据是特定于该项内的类别。究竟如何,虽然应该类别的项目是在映射到XSD如仍有不适(总是)似乎是一个直接的关系。呼唤GetProductCategoriesForASIN似乎并没有太大的帮助任 - 做什么用的类别的ProductCategoryName? (如下)

Within the _POST_PRODUCT_DATA_ feed the "ProductData" node contains data that is specific to the category that the item is within. How exactly though should the category the item is in be mapped to an XSD as there doesn't (always) seem to be a direct relationship. Calling "GetProductCategoriesForASIN" doesn't seem to help much either - what's with ProductCategoryName of "Categories"? (as below)

<?xml version="1.0"?>
<GetProductCategoriesForASINResponse xmlns="http://mws.amazonservices.com/schema/Products/2011-10-01">
<GetProductCategoriesForASINResult>
  <Self>
    <ProductCategoryId>166099011</ProductCategoryId>
    <ProductCategoryName>Building Sets</ProductCategoryName>
    <Parent>
      <ProductCategoryId>166092011</ProductCategoryId>
      <ProductCategoryName>Building Toys</ProductCategoryName>
      <Parent>
        <ProductCategoryId>165795011</ProductCategoryId>
        <ProductCategoryName>Categories</ProductCategoryName>
        <Parent>
          <ProductCategoryId>165793011</ProductCategoryId>
          <ProductCategoryName>Categories</ProductCategoryName>
        </Parent>
      </Parent>
    </Parent>
  </Self>
</GetProductCategoriesForASINResult>
<ResponseMetadata>
  <RequestId>0ce91472-4234-4222-8fd8-d56714db18ba</RequestId>
</ResponseMetadata>
</GetProductCategoriesForASINResponse>

总之我真正想知道的是如何,对于一个新产品或一种与现有的ASIN,采取分类标识或名称和地图这对正确的XSD所以正确的一组特定类别的选项即可被退回。

In short what i'm really wanting to know is how, for a new product or one with an existing ASIN, to take the category ID or name and map this to the correct XSD so the correct set of category specific options can be returned.

感谢。

推荐答案

警告这是一个脆弱的解决方法最好 - !你已经被警告

Warning This is a fragile workaround at best - you have been warned!

没有直接的映射从 ProductCategoryId 的XSD。然而,有大致​​之间 BTG(浏览树指南) *和产品XSD文件 *(减去BMVD¹类)。

There is no direct mapping from the ProductCategoryId to the XSD. However, there is roughly a one-to-one mapping between BTG (Browse Tree Guide)* and the Product XSD files* (minus the BMVD¹ categories).

在首旅集团的节点ID 列对应于 ProductCategoryId 。一旦你找出哪些首旅集团的类属于你可以安全地假设,相应的XSD文件是正确的。

The BTG's Node ID column corresponds to the ProductCategoryId. Once you find out which BTG the Self category belongs to you could safely assume that the corresponding XSD file is the correct one.

例如,自&GT; ProductCategoryId 166099011 的玩具及游戏BTG 其对应的玩具及游戏XSD

¹的书籍,音乐,视频和DVD 的 *的必须登录到您的卖家中心帐户访问的

¹Books, Music, Videos, and DVDs *Must be signed into your Seller Central account to access

阅读全文

相关推荐

最新文章