The response from Server for list_portfolios is missing "budget": { "amount": 0, "currencyCode": "USD", "policy": "dateRange", "startDate": "string", "endDate": "string" }, #202
giangdaughtry
started this conversation in
General
Replies: 0 comments
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.
-
@sp_endpoint('/v2/portfolios', method='GET')
def list_portfolios(self, **kwargs) -> ApiResponse:
When I call the function, the server just only return:
[
{
"portfolioId": 0,
"name": "string",
"inBudget": true,
"state": "enabled"
}
]
The formal response from server should be:
[
{
"portfolioId": 0,
"name": "string",
"budget": {
"amount": 0,
"currencyCode": "USD",
"policy": "dateRange",
"startDate": "string",
"endDate": "string"
},
"inBudget": true,
"state": "enabled"
}
]
Link: https://advertising.amazon.com/API/docs/en-us/reference/2/portfolios#tag/Portfolios
Beta Was this translation helpful? Give feedback.
All reactions