-
Notifications
You must be signed in to change notification settings - Fork 153
Product Advertising API 5.0 #184
Comments
Amazon has their own SDK for several languages, including PHP: I downloaded the SDK and the README file says you can install via composer $ composer require amazon/paapi5-php-sdk But it doesn't seem to be available on Packagist yet... |
API 4.0 will shut down today, but this is still not resolved... Has anyone has any luck installing API 5.0? |
Shut down? Do you mean amazon shuts down its 4.0 api today? Really? |
Yes. I'm in panic mode. |
Oh shit. Thank you for that info. I got a problem now. Even as an affiliate partner, no mail or info about this. |
That's why we all love Amazon so much. 🤮 |
I can code php. Thank you for the SDK links, that helps. I will read that today, but i will first upgrade my drupal code fast because..shutdown wtf... Maybe after that i can help with the apai-io. No promises. p.s amazon is still much better than other networks. Affilinet that now is "awin" dropped the whole webapi and only gives you feeds now. Most of the feeds do not contain all products and a very complex to import search and manage. So you need to manually get and link shop urls...omg |
Ok. The samples(SDK) from Amazon are only samples. This is not something you can just use. Its examples for developers for the 4 different possible methods. |
ttk, someone uploaded a repo exactzly, i guess because of that :) |
I've successfully ported over one project (in the beginning of Oct) to use paapi5-php-sdk. Can confirm it works well. |
So you dropped apai-io and only used the sdk? |
That's right. I found the new API contains all the info from the old one, plus a few extra. The SDK v5 functions and classes are completely different, so it will require you to replace all the code from apai-io with the new paapi5-php-sdk equivalent. |
Can you maybe tell me one thing as you already had experience. When you get an item you have a lot of methods to get the final value. Have you found a method or something to convert a response into an array quickly. Otherwise i would have to write a HUGHE function converting like tons of propertys like this to an array. FOUND. Every class where it makes sense has a __toString() function doing jsonc encode of the object, |
Still working today. Looks like they may have rescheduled, according to a user on the AWS forums: https://forums.aws.amazon.com/message.jspa?messageID=921131#921131
|
Thank you BenMorel :) |
Just a warning. The new throtteling in the api is a nightmare. You get "too many request" all the time, random also. |
@e-anima Are you generating sales? IIRC, the new throttling is like 8640 requests / day, or 1 every 10s, until you start generating sales. I'd be surprised there isn't a burst allowance, though. |
I am a long term affiliate with the old api, switched the tokens 3 days ago. Generating sales with the new api is hard when you can not really use it on a site. Especially if you get banned all time and can not refresh prices and you are bound to do that by the terms. If you run cron to update items it is like impossible at all. Tried 5 ASINS in one request, 5 seconds pause. 5th cron run = too many request. The apis says 1 per second and even some small tests using the php SDK result in throtteling bans. I wrote to the amazon contacts. I get standard mails from a bot i guess :) |
@e-anima I'm a long term affiliate too, and know for a fact that the API allowance is directly related to the turnover you generate. According to this page:
So actually, you may even get less than 8640 requests per day. |
Yea, i see. So the migration is a pain i see, because you can not really upgrade a current site because you get bans too fast. But for more requests you need to...paradox :) |
@e-anima I did not complete my migration yet, so unfortunately I cannot tell you yet how it went. I do have enough sales over the last 30 days to get enough API allowance for my needs according to the formula above though, so I'm not too worried about this, unless there is a bug in v5. You should probably contact them to get support, if you're lucky, you'll get more than a "I'm forwarding your message to the relevant team..." message. Or you can attempt to bruteforce it, to see if it works according to the specs:
|
I wrote a mail and i wait for the response. I "migrated" my keys 5 days ago. The sales i generated the last month should more that sufficient to upgrade a samll site with 250 asins. |
@e-anima Let us know when/if you get a reply from them!
That would mean less than $144 in revenue (Amazon revenue, not your commission) over the last 30 days. Is that plausible? |
Yes i will post teh problem if i find out. So you think that the access is completely bound to revenu without any base limit? I have much more than 144$ i sales in the last 30 days.
I understand that differently. I understand i have 1 request per second. I have never seen a more fu**ed up api-logic in my life. I am coding and analyzing this for days now. I also read how the bucked algo works, but that is useless until you know the correct parameters for the tokens or your "token amount". The api has no way to getTokens() .. or anything. |
That's what I understand, after the initial 30 days. You start with 8640 requests/day for the first month, and you may have close to zero requests per day the next month if you did not generated enough sales. That seems harsh I agree, but that's how I understand it. |
Ok if that is the case i will be fine in around 26 days. |
Confirmed in an email received yesterday from Amazon. You now have until 11th February 2020:
|
Thank you for the update. |
Just a heads up about throtteling. Now 8 days later it just works. I can now also update like 30 items using cron. Also wrote a drupal module: https://www.drupal.org/project/amazon_pa |
Are you planning to support the new v5 PAAPI?
https://webservices.amazon.com/paapi5/documentation/
The text was updated successfully, but these errors were encountered: