I initially uploaded a product image feed containing 3 images. But, when I upload a new feed for the same product that has only 2 images in it (the main image and mainoffer image, which refer to the same one), the 3rd one is still around. I’m trying to automate this from a central CMS, so I’m trying not to manually intervene where possible.
I’m trying to remove the bottom 2 photos:
I’ve been submitting this feed to get rid of them:
<AmazonEnvelope xsi:noNamespaceSchemaLocation="amzn-envelope.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>A214O97OSDYD74</MerchantIdentifier>
</Header>
<MessageType>ProductImage</MessageType>
<PurgeAndReplace>false</PurgeAndReplace>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>Main</ImageType>
<ImageLocation>https://products.phanaticsports.com/images/photos/gysiy4sjyngpbw2cig8fkqm5mher3ual.jpg</ImageLocation>
</ProductImage>
</Message>
<Message>
<MessageID>2</MessageID>
<OperationType>Update</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>PT1</ImageType>
<ImageLocation></ImageLocation>
</ProductImage>
</Message>
<Message>
<MessageID>3</MessageID>
<OperationType>Update</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>PT2</ImageType>
<ImageLocation></ImageLocation>
</ProductImage>
</Message>
<Message>
<MessageID>4</MessageID>
<OperationType>Update</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>PT3</ImageType>
<ImageLocation></ImageLocation>
</ProductImage>
</Message>
<Message>
<MessageID>5</MessageID>
<OperationType>Update</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>PT4</ImageType>
<ImageLocation></ImageLocation>
</ProductImage>
</Message>
<Message>
<MessageID>6</MessageID>
<OperationType>Update</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>PT5</ImageType>
<ImageLocation></ImageLocation>
</ProductImage>
</Message>
<Message>
<MessageID>7</MessageID>
<OperationType>Update</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>PT6</ImageType>
<ImageLocation></ImageLocation>
</ProductImage>
</Message>
<Message>
<MessageID>8</MessageID>
<OperationType>Update</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>PT7</ImageType>
<ImageLocation></ImageLocation>
</ProductImage>
</Message>
<Message>
<MessageID>9</MessageID>
<OperationType>Update</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>PT8</ImageType>
<ImageLocation></ImageLocation>
</ProductImage>
</Message>
<Message>
<MessageID>10</MessageID>
<OperationType>Update</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>MainOfferImage</ImageType>
<ImageLocation>https://products.phanaticsports.com/images/photos/gysiy4sjyngpbw2cig8fkqm5mher3ual.jpg</ImageLocation>
</ProductImage>
</Message>
</AmazonEnvelope>
I also tried omitting the messages with the blank image URLs, but that didn’t work either.
You are trying to delete 2 images … but are uploading the whole set. N0t sure that feed will work.
Have you checked the FeedSubmissionResults to see if they processed ?
As to the 2 images in particular … try this :
<AmazonEnvelope xsi:noNamespaceSchemaLocation="amzn-envelope.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>A214O97OSDYD74</MerchantIdentifier>
</Header>
<MessageType>ProductImage</MessageType>
<PurgeAndReplace>false</PurgeAndReplace>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>Main</ImageType>
<ImageLocation>https://products.phanaticsports.com/images/photos/gysiy4sjyngpbw2cig8fkqm5mher3ual.jpg</ImageLocation>
</ProductImage>
</Message>
<Message>
<MessageID>2</MessageID>
<OperationType>Delete</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>PT1</ImageType>
<ImageLocation></ImageLocation>
</ProductImage>
</Message>
<Message>
<MessageID>3</MessageID>
<OperationType>Delete</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>PT2</ImageType>
<ImageLocation></ImageLocation>
</ProductImage>
</Message>
<Message>
<MessageID>4</MessageID>
<OperationType>Update</OperationType>
<ProductImage>
<SKU>FJ-AARON-DONALD-LAR-WHITE</SKU>
<ImageType>MainOfferImage</ImageType>
<ImageLocation>https://products.phanaticsports.com/images/photos/gysiy4sjyngpbw2cig8fkqm5mher3ual.jpg</ImageLocation>
</ProductImage>
</Message>
</AmazonEnvelope>
Sorry that it took a week, but that worked! I ended up using Delete for all images not set, and Update for images that are. I had a operationtype set for every image type I support, which is the main image, offer image, and PT1-8. Seems to work just fine.