返回列表 发帖

关于google base 目标国家

最近我用google base API编写一段代码,向google 提交商品信息,有几个问题不清楚:
1、商品的目标国家不知道怎么设置?
2、目标国家都有哪些?
3、我加入的商品在google 购物搜索中搜不到,是什么原因?跟目标国家的设置有没有关系?

主要代码如下:
GoogleBaseService service = new GoogleBaseService("Google-Tutorial-1.0");
service.setUserCredentials(email, password);
GoogleBaseEntry entry = new GoogleBaseEntry();
entry.setTitle(TextConstruct.create(TextConstruct.Type.TEXT,
     "英华OK201", null));
entry.setContent(TextConstruct.create(TextConstruct.Type.TEXT,
     "橘色背景灯 收音机", null));
entry.getGoogleBaseAttributes().setItemType("products");
entry.getGoogleBaseAttributes().addTextAttribute("condition","new");
entry.getGoogleBaseAttributes().setPrice(new NumberUnit(398.00,"CNY"));
entry.getGoogleBaseAttributes().addTextAttribute("id","1");
entry.getGoogleBaseAttributes().addImageLink("http://shopadmin.nxeb.cc/Upload/100005091/number0001520081030145033660.jpg");
entry.addLink(new Link("external","","http://nxdx123.nxeb.cc/Goods/Goodsnumber00015.html"));
entry.getGoogleBaseAttributes().addShippingAttribute("shipping", new Shipping("CN","",(float) 398.00,"CNY"));
GoogleBaseEntry asInserted = service.insert(FeedURLFactory
     .getDefault().getItemsFeedURL(), entry);
URL myEntryId = new URL(asInserted.getId());

请高手指导!!!

返回列表