appnexus-client icon indicating copy to clipboard operation
appnexus-client copied to clipboard

Budget Splitter doesn't use query params

Open JPonte opened this issue 6 years ago • 1 comments

The budget splitter api requires a line_item_id but unlike the usual behaviour, it is not passed as a query parameter:

https://wiki.xandr.com/display/api/Splits+Service

It's https://api.appnexus.com/budget-splitter/LINE-ITEM-ID/splits instead of https://api.appnexus.com/budget-splitter?line_item_id=LINE-ITEM-ID

JPonte avatar Dec 05 '19 15:12 JPonte

Hi,

Thanks for your feedback. A work-arround could be to use the client get method like the following snippet.

client.get("budget-splitter/{}/splits".format(id), raw=True)

There is also PR #36 that implement splits as an ALI class property, but we don't always need it that way. Feel free to suggest a better alternative.

rambobinator avatar Dec 06 '19 09:12 rambobinator