SubmitImageFeed
[DEPRECATED] The Image feed allows you to upload various images for a product. Amazon can display several images for each product.
Execute
The stored procedure accepts two aggregated formats: #TEMP tables and XML aggregate
For #TEMP tables
You must include in your query:
INSERT INTO ImageFeedAggregate#TEMP (SKU, ImageType, ImageLocation, OperationType) VALUES ('15700', 'Main', 'https://www.cdata.com/ui/img/home/adapters.png', 'Update')
Then you execute the procedure by specifying the value of ImageFeedAggregate with the name of #TEMP table used ImageFeedAggregate#TEMP.
Exec SubmitImageFeed ProductImageFeedAggregate = 'ImageFeedAggregate#TEMP', marketplaceids = 'A1VC38T7YXB528'
*The temporary table must be defined and used within the same connection. Closing the connection will clear out any temporary tables in memory.
For XML aggregate
The XML aggregate must follow the API structure (https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_4_1/ProductImage.xsd):
<Message> <MessageID>1</MessageID> <OperationType>Update</OperationType> <ProductImage> <SKU>15700</SKU> <ImageType>Main</ImageType> <ImageLocation>https://www.cdata.com/ui/img/home/adapters.png</ImageLocation> </ProductImage> </Message>
EXEC SubmitImageFeed ProductImageFeedAggregate = '...(the above XML)...', marketplaceids = 'A1VC38T7YXB528'
Input
Name | Type | Required | Description |
SKU | String | False | Required. Used to identify an individual product. Each product must have a SKU, and each SKU must be unique. |
ImageType | String | False | Required. Available Values are Main, Swatch, BKLB, PT1, PT2, PT3, PT4, PT5, PT6, PT7, PT8, Search, PM01, MainOfferImage, OfferImage1, OfferImage2, OfferImage3, OfferImage4, OfferImage5, PFEE, PFUK, PFDE, PFFR, PFIT, PFES, EEGL, PT98, PT99, and ELFL. |
ImageLocation | String | False | The exact location of the image using a full URL (such as http://mystore.com/images/1234.jpg). |
OperationType | String | False | Required. Used to specify the type of operation (Update or Delete) to be performed on the data. |
ProductImageFeedAggregate | String | False | An aggregate representing the feed. Can be in the form of XML or a #TEMP table. |
MarketplaceIds | String | True | Required. A list of one or more marketplace IDs for the marketplace that registered the listing account. |
Result Set Columns
Name | Type | Description |
FeedId | String | A unique identifier for the feed. |
FeedType | String | The type of feed submitted. |
SubmittedDate | Datetime | The date and time when the feed was submitted. |
FeedProcessingStatus | String | The processing status of the feed submission. |