create_negative_keywords
for Sponsored Brands - Method Raises ValueError in Requests Library
#174
Closed
david-mcbacon
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi, sorry for late reply, this endpoint do not have the enhance body handling so you need to process: import json list_negative_keywords method do not need to post a body in the request, I will add later the handler to make more easy and avoid this problems. Let me know if it works for you btw I move this to a discussion |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I encountered a problem when trying to utilize the
create_negative_keywords
method from the Amazon Ads API library in Sponsored Brands Ads. Specifically, aValueError: too many values to unpack (expected 2)
is raised during the process of encoding parameters in the requests library. Other methods like list_negative_keywords work flawlessly, suggesting the problem is localized to the create_negative_keywords method.Library version
python-amazon-ad-api==0.5.0
To Reproduce
Console Output
Desktop:
Additional context
This error seems to arise when the requests library tries to encode the payload data.
As aforementioned, other methods (e.g., list_negative_keywords) work without issues, which indicates this issue is exclusive to the create_negative_keywords function.
I kindly ask for guidance on how to resolve this issue or any potential workarounds.
Thank you for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions