-
Notifications
You must be signed in to change notification settings - Fork 86
/
ExampleProductFeed.xml
320 lines (313 loc) · 14.6 KB
/
ExampleProductFeed.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<?xml version="1.0" encoding="utf-8"?>
<!--
********************************************************************************************************************
*
* DEPRECATION NOTICE
*
* Bazaarvoice's sample feeds hosted on GitHub have been deprecated.
*
* Please refer to Bazaarvoice's Conversations Knowledge Base to find the sample product feed in XML format:
* http://knowledge.bazaarvoice.com/wp-content/conversations/en_US/Collect/product_feed.html#example-xml-feed
*
********************************************************************************************************************
This example shows the XML syntax (using the "ProductFeed" schema)
for providing product, category, and brand information to Bazaarvoice.
Copyright 2013 Bazaarvoice, Inc.
Unless required by applicable law or agreed to in writing, the example code
below is provided "as is" without warranty of any kind, either express or
implied, including without limitation any implied warranties of condition,
uninterrupted use, merchantability, or fitness for a particular purpose.
-->
<Feed xmlns="http://www.bazaarvoice.com/xs/PRR/ProductFeed/14.7" name="ExampleClient" incremental="false" extractDate="2011-10-18T12:00:00.000000">
<!-- Brands -->
<Brands>
<Brand>
<ExternalId>AAA</ExternalId>
<Name>First Brand</Name>
</Brand>
<Brand>
<ExternalId>BBB</ExternalId>
<!-- Default brand name -->
<Name>Second Brand</Name>
<!-- Localized brand names -->
<Names>
<Name locale="en_US">Second Brand US</Name>
<Name locale="en_CA">Second Brand CA</Name>
<Name locale="fr_CA">Deuxième marque CA</Name>
</Names>
</Brand>
</Brands>
<!-- Categories -->
<Categories>
<Category>
<ExternalId>1010</ExternalId>
<!-- Default category name -->
<Name>First Category</Name>
<!-- Localized category names -->
<Names>
<Name locale="en_US">First Category US</Name>
<Name locale="en_CA">First Category CA</Name>
<Name locale="fr_CA">Première catégorie CA</Name>
</Names>
<!-- Default category page URL -->
<CategoryPageUrl>http://www.example.com/category.htm?cat=1010</CategoryPageUrl>
<!-- Localized category page URLs -->
<CategoryPageUrls>
<CategoryPageUrl locale="en_US">http://www.example.com/en_us/category.htm?cat=1010</CategoryPageUrl>
<CategoryPageUrl locale="en_CA">http://www.example.com/en_ca/category.htm?cat=1010</CategoryPageUrl>
<CategoryPageUrl locale="fr_CA">http://www.example.com/fr_ca/category.htm?prod=1010</CategoryPageUrl>
</CategoryPageUrls>
<!-- Default category image URL -->
<ImageUrl>http://images.example.com/catimages/1010.gif</ImageUrl>
<!-- Localized category image URLs -->
<ImageUrls>
<ImageUrl locale="en_US">http://images.example.com/en_us/catimages/1010.gif</ImageUrl>
<ImageUrl locale="en_CA">http://images.example.com/en_ca/catimages/1010.gif</ImageUrl>
<ImageUrl locale="fr_CA">http://images.example.com/fr_ca/catimages/1010.gif</ImageUrl>
</ImageUrls>
</Category>
<Category>
<ExternalId>1020</ExternalId>
<Name>Second Category</Name>
<CategoryPageUrl>http://www.example.com/category.htm?cat=1020</CategoryPageUrl>
<ImageUrl>http://images.example.com/catimages/1020.gif</ImageUrl>
</Category>
<Category>
<ExternalId>1021</ExternalId>
<ParentExternalId>1020</ParentExternalId>
<Name>Sub Category</Name>
<CategoryPageUrl>http://www.example.com/category.htm?cat=1021</CategoryPageUrl>
<ImageUrl>http://images.example.com/catimages/1021.gif</ImageUrl>
</Category>
</Categories>
<!-- Products -->
<Products>
<Product>
<ExternalId>11111111111abc</ExternalId>
<Name>First Product Round with Green</Name>
<Description>First Product Description Text</Description>
<BrandExternalId>AAA</BrandExternalId>
<CategoryExternalId>1010</CategoryExternalId>
<ProductPageUrl>http://www.example.com/product.htm?prod=2000001</ProductPageUrl>
<ImageUrl>http://images.example.com/prodimages/2000001.gif</ImageUrl>
<!-- Product details needed for BrandVoice / syndication -->
<ManufacturerPartNumbers>
<ManufacturerPartNumber>26-12345-8Z</ManufacturerPartNumber>
</ManufacturerPartNumbers>
<EANs>
<EAN>0213354752286</EAN>
<EAN>0188173724031</EAN>
<EAN>1833474920123</EAN>
</EANs>
<UPCs>
<UPC>382157229380</UPC>
<UPC>283929327281</UPC>
<UPC>058227392728</UPC>
</UPCs>
<!-- Custom product attributes -->
<Attributes>
<!-- Families the product is a member of -->
<Attribute id="BV_FE_FAMILY">
<Value>Green</Value>
</Attribute>
<Attribute id="BV_FE_FAMILY">
<Value>Round</Value>
</Attribute>
<!-- Product management group ID -->
<Attribute id="ProductManagementGroupId">
<Value>Group56789</Value>
</Attribute>
</Attributes>
</Product>
<Product>
<ExternalId>22</ExternalId>
<Name>Second Product Round and Green</Name>
<Description>Second Product Description Text</Description>
<BrandExternalId>BBB</BrandExternalId>
<CategoryExternalId>1021</CategoryExternalId>
<ProductPageUrl>http://www.example.com/product.htm?prod=2000002</ProductPageUrl>
<ImageUrl>http://images.example.com/prodimages/2000002.gif</ImageUrl>
<ModelNumbers>
<ModelNumber>1235832</ModelNumber>
<ModelNumber>1235839</ModelNumber>
</ModelNumbers>
<ManufacturerPartNumbers>
<ManufacturerPartNumber>26-12345-8W</ManufacturerPartNumber>
</ManufacturerPartNumbers>
<EANs>
<EAN>0213354752287</EAN>
</EANs>
<UPCs>
<UPC>138313830283</UPC>
</UPCs>
<!-- Custom product attributes -->
<Attributes>
<!-- Families the product is a member of -->
<Attribute id="BV_FE_FAMILY">
<Value>Round</Value>
</Attribute>
<Attribute id="BV_FE_FAMILY">
<Value>Green</Value>
</Attribute>
<!-- Show all content from other products in the Round Family -->
<Attribute id="BV_FE_EXPAND">
<Value>BV_FE_FAMILY:Round</Value>
</Attribute>
<!-- Product management group ID -->
<Attribute id="ProductManagementGroupId">
<Value>Group56789</Value>
</Attribute>
</Attributes>
</Product>
<!-- Example product with multiple languages -->
<Product>
<ExternalId>333</ExternalId>
<!-- Default product name -->
<Name>Third Product Square and Red</Name>
<!-- Localized product names -->
<Names>
<Name locale="en_US">Third Product US</Name>
<Name locale="en_CA">Third Product CA</Name>
<Name locale="fr_CA">Troisième produit CA</Name>
</Names>
<!-- Default product description -->
<Description>Third Product Description Text</Description>
<!-- Localized product descriptions -->
<Descriptions>
<Description locale="en_US">Third Product Description Text US</Description>
<Description locale="en_CA">Third Product Description Text CA</Description>
<Description locale="fr_CA">Troisième texte Description du produit</Description>
</Descriptions>
<BrandExternalId>BBB</BrandExternalId>
<CategoryExternalId>1021</CategoryExternalId>
<!-- Default product page URL -->
<ProductPageUrl>http://www.example.com/product.htm?prod=2000003</ProductPageUrl>
<!-- Localized product page URLs -->
<ProductPageUrls>
<ProductPageUrl locale="en_US">http://www.example.com/en_us/product.htm?prod=2000003</ProductPageUrl>
<ProductPageUrl locale="en_CA">http://www.example.com/en_ca/product.htm?prod=2000003</ProductPageUrl>
<ProductPageUrl locale="fr_CA">http://www.example.com/fr_ca/product.htm?prod=2000003</ProductPageUrl>
</ProductPageUrls>
<!-- Default product image URL -->
<ImageUrl>http://images.example.com/prodimages/2000003.gif</ImageUrl>
<!-- Localized product image URLs -->
<ImageUrls>
<ImageUrl locale="en_US">http://images.example.com/en_us/prodimages/2000003.gif</ImageUrl>
<ImageUrl locale="en_CA">http://images.example.com/en_ca/prodimages/2000003.gif</ImageUrl>
<ImageUrl locale="fr_CA">http://images.example.com/fr_ca/prodimages/2000003.gif</ImageUrl>
</ImageUrls>
<ModelNumbers>
<ModelNumber>123523832</ModelNumber>
<ModelNumber>123325839</ModelNumber>
</ModelNumbers>
<ManufacturerPartNumbers>
<ManufacturerPartNumber>26-93812-8W</ManufacturerPartNumber>
</ManufacturerPartNumbers>
<EANs>
<EAN>0813354723287</EAN>
</EANs>
<UPCs>
<UPC>138313830999</UPC>
</UPCs>
<!-- Custom product attributes -->
<Attributes>
<!-- Families this product is a member of -->
<Attribute id="BV_FE_FAMILY">
<Value>Red</Value>
</Attribute>
<Attribute id="BV_FE_FAMILY">
<Value>Square</Value>
</Attribute>
<!-- Show all content from other products in the Red Family -->
<Attribute id="BV_FE_EXPAND">
<Value>BV_FE_FAMILY:Red</Value>
</Attribute>
<!-- Show all content from other products in the Square Family -->
<Attribute id="BV_FE_EXPAND">
<Value>BV_FE_FAMILY:Square</Value>
</Attribute>
<!-- Price of this product in USA -->
<Attribute id="PriceUs">
<Value>65.30</Value>
</Attribute>
<!-- Price of this product in Canada -->
<Attribute id="PriceCa">
<Value>67.25</Value>
</Attribute>
<!-- Product management group ID -->
<Attribute id="ProductManagementGroupId">
<Value>Group12345</Value>
</Attribute>
</Attributes>
</Product>
<Product>
<ExternalId>4444</ExternalId>
<Name>Fourth Product Round and Black</Name>
<Description>Fourth Product Description Text</Description>
<BrandExternalId>BBB</BrandExternalId>
<CategoryExternalId>1021</CategoryExternalId>
<ProductPageUrl>http://www.example.com/product.htm?prod=2000002</ProductPageUrl>
<ImageUrl>http://images.example.com/prodimages/2000002.gif</ImageUrl>
<ModelNumbers>
<ModelNumber>1235832</ModelNumber>
<ModelNumber>1235839</ModelNumber>
</ModelNumbers>
<ManufacturerPartNumbers>
<ManufacturerPartNumber>26-12345-8W</ManufacturerPartNumber>
</ManufacturerPartNumbers>
<EANs>
<EAN>0213354752287</EAN>
</EANs>
<UPCs>
<UPC>138313830283</UPC>
</UPCs>
<!-- Custom product attributes -->
<Attributes>
<!-- Families this product is a member of -->
<Attribute id="BV_FE_FAMILY">
<Value>Round</Value>
</Attribute>
<!-- Show all content from other products in the Round Family -->
<Attribute id="BV_FE_EXPAND">
<Value>BV_FE_FAMILY:Round</Value>
</Attribute>
<!-- Product management group ID -->
<Attribute id="ProductManagementGroupId">
<Value>Group56789</Value>
</Attribute>
</Attributes>
</Product>
<Product>
<ExternalId>55555</ExternalId>
<Name>Fifth Product- Family level</Name>
<Description>Use this product to collect reviews at a Family level. This product is also a member of the Green Family. It has the BV_FE_EXPAND Attribute set which will pull all reviews for the family</Description>
<BrandExternalId>BBB</BrandExternalId>
<CategoryExternalId>1021</CategoryExternalId>
<ProductPageUrl>http://www.example.com/product.htm?prod=2000002</ProductPageUrl>
<ImageUrl>http://images.example.com/prodimages/2000002.gif</ImageUrl>
<ModelNumbers>
<ModelNumber>1235832green</ModelNumber>
<ModelNumber>1235543green</ModelNumber>
<ModelNumber>127654green</ModelNumber>
<ModelNumber>123111green</ModelNumber>
</ModelNumbers>
<UPCs>
<UPC>138313830281</UPC>
<UPC>138313830282</UPC>
<UPC>138313830283</UPC>
<UPC>138313830284</UPC>
</UPCs>
<!-- Custom product attributes -->
<Attributes>
<!-- Families this product is a member of -->
<Attribute id="BV_FE_FAMILY">
<Value>Green</Value>
</Attribute>
<!-- Show all content from other products in the Green Family -->
<Attribute id="BV_FE_EXPAND">
<Value>BV_FE_FAMILY:Green</Value>
</Attribute>
</Attributes>
</Product>
</Products>
</Feed>