Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Budget Splitter doesn't use query params #48

Open
JPonte opened this issue Dec 5, 2019 · 1 comment
Open

Budget Splitter doesn't use query params #48

JPonte opened this issue Dec 5, 2019 · 1 comment

Comments

@JPonte
Copy link

JPonte commented Dec 5, 2019

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

@rambobinator
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants