亚马逊映射产品类别到正确的类别XSD [英] Mapping amazon product category to the correct category XSD

查看:1262
本文介绍了亚马逊映射产品类别到正确的类别XSD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

内_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。然而,有大致​​之间<一个一对一映射href="https://sellercentral.amazon.com/gp/help/help-page.html/ref=ag_1661_cont_scsearch?ie=UTF8&itemID=1661"相对=nofollow> BTG(浏览树指南) *和<一href="https://sellercentral.amazon.com/gp/help/help-page.html/ref=ag_200385010_cont_scsearch?ie=UTF8&itemID=200385010"相对=nofollow>产品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 的<一个被发现href="https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/btg/toys-and-games_browse_tree_guide._TTH_.xls"相对=nofollow>玩具及游戏BTG 其对应的玩具及游戏XSD

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

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

这篇关于亚马逊映射产品类别到正确的类别XSD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆