question

Games2win avatar image
Games2win asked

SearchResponse INVALID_PARAMETER for "ClothingAndAccessories"

When the SearchRequest is made for "ClothingAndAccessories" i get INVALID_PARAMETER error the request snippet SearchRequest request = new SearchRequest("ClothingAndAccessories","tee"); it works when i search for "Apparel" SearchRequest request = new SearchRequest("Apparel","tee"); (Note: I have both items in the JSON file) But i dont see "Apparel" in the supported category list here https://developer.amazon.com/public/apis/earn/mobile-associates/docs/available-search-categories What could be the issue?
mobile associates
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Games2win, I am following up with the concerned team here for this issue. I will post back shortly. Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Games2Win, Thanks for your patience. The problem is in the latest version of App Tester. We are going to update the app soon with the fix. "ClothingAndAccessories" is a valid category for MAA as mentioned in doc and that should be used for your product.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Pankaj Pardhi avatar image
Pankaj Pardhi answered
Hi I have also the same problem for searchRequest("ClothingAndAssesories","Shirts"); It shows INVALID_PARAMETER in logcat. plz let me know when the problem will fix And one question is that- what is the way to create JSON file with our conviniounce or with product of our choice.? please reply me your opinion how to get image url is Json file? Message was edited by: Pankaj Pardhi
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Pankaj, There is a typo in your code. ClothingAndAssesories --> ClothingAndAccessories , because of which he is seeing an INVALID_PARAMETER. Please take care of this. Valid categories: https://developer.amazon.com/sdk/mobile-associates/search-categories.html You need to identify the products (of your choice) and enter the required data related to that product in json file. Please refer, https://developer.amazon.com/public/apis/earn/mobile-associates/docs/testing-your-app#Creating%20the%20JSON%20Data%20File
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Pankaj, Thank you for writing back. How to find an image url for a product: 1. Open http://www.amazon.com in a web browser. 2. Enter a ASIN or keyword for the product you are interested in. 3. From search results, right-click on a product image to see its url Currently, there is no better way to create a JSON file than editing it by hand. I recommend going to http://www.amazon.com to get the product information to populate the JSON file Refer https://developer.amazon.com/public/apis/earn/mobile-associates/docs/testing-your-app You can use the same JSON file is used for search and searchById API by replacing the values for your products.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.