Updated Examples #137
Closed
RMagician
announced in
Announcements
Replies: 2 comments 1 reply
-
You don't need to unpack your dictionary: result=Reports(credentials=my_credentials).post_report(**params) *Suggestion use try catch to get some Exception if happen + Debug while testing. You need to pass a body json type value, anyway take my example I used to test the new version 3 of that endpoint:
Let me know if it works for you. Kindest regards, |
Beta Was this translation helpful? Give feedback.
1 reply
-
Sure it is, according the log you are posting to sandbox endpoint that as far as I know this new endpoint do not support.
Check that your .env file in the same level that your code is set to:
# environment variables defined inside a .env file
AWS_ENV=PRODUCTION
# AWS_ENV=SANDBOX
… El 14 abr 2023, a las 23:29, RMagician ***@***.***> escribió:
Thank you, very helpful.
I get service unavailable when running the code. Is that an issue on my side ?
2023-04-14 12:25:36,314:INFO:{'_content': b'<html><body><b>Http/1.1 Service Unavailable</b></body> </html>',
I've set env to production, but still keeps going to
2023-04-14 12:25:36,311:INFO:POST https://advertising-api-test.amazon.com/reporting/reports
could that be why ?
—
Reply to this email directly, view it on GitHub <#137 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AD4ENUUQU3HV734JQGPZUJLXBFUNLANCNFSM6AAAAAAW6SFXAY>.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Hey, first of all thanks for the api wrapper. I'm trying to use it for v3 Reports, but not being able to. If you could provide some updated examples would be great. The example in the readme is for v2 and deprecated.
To Reproduce
Expected behavior
I've tried a few different scenarios but keep getting stuck on different errors.
Desktop (please complete the following information):
Python 3.11.1
python-amazon-ad-api 0.4.2
Beta Was this translation helpful? Give feedback.
All reactions