Fixed "You are submitting requests too quickly" Amazon API issue
Critical issue fix related to the error "You are submitting requests too quickly, try with a slower rate".
Before that, the request which got this error were not repeated. Right now it is repeated until success. The search / import / sync works now slower than before but stable. This gives 100% success rate.
The API request limit
The maximum Amazon API request rate may vary across regions. By default, API requests are limited to 500 req/s across all APIs in the account, and also for a specific method in an API stage.
If your application is trying to submit requests that exceed the maximum request limit for your account, you may receive error messages from Product Advertising API. The request limit for each account is calculated based on revenue performance. Each account used to access the Product Advertising API is allowed an initial usage limit of 1 request per second. Each account will receive an additional 1 request per second (up to a maximum of 10) for every $4,600 of shipped item revenue driven in a trailing 30-day period (about $0.11 per minute).
So a large amount of requests are being throttled. It completely ruins the user experience.
Associate Tags for every Amazon locale
Added credential fields in the WE Amazon -> Settings -> Associate Tags for every locale. Now you can have separate AWS accounts set for each locale. If credentials are not specified for any locale, general account settings are used.
An AssociateTag is an alphanumeric token distributed by Amazon that uniquely identifies an Associate. Amazon uses this ID to credit an Associate for a sale. The AssociateTag parameter becomes part of the PurchaseURL, which is the URL used to purchase the items in a remote shopping cart.
What is Amazon Product Advertising API?
The Product Advertising API provides programmatic access to Amazon’s product selection and discovery functionality so that you can advertise Amazon products to monetize your website.
Advertise Amazon product with details, image urls, prices, customer review, similar products, sort results by relevance, sales rank, price, and more.