numberly / appnexus-client

:snake: General purpose Python client for the AppNexus API
https://appnexus-client.readthedocs.io
MIT License
39 stars 19 forks source link

AdServer service generates wrong api path #34

Closed yartseva closed 5 years ago

yartseva commented 5 years ago

Hello, I try to use the appnexus-client to get the sellers list from AppNexus:

ad-server https://api.appnexus.com/ad-server?start_element=0&num_elements=1 {'Authorization': 'authn:222059:86183906c3fb3:ams1'} None b'{"error":"Invalid path given"}'

However, it works with the following path: https://api.appnexus.com/adserver

Is it possible to correct the service path in the package? I'm quite new to the api / packages development, otherwise would do. If you have the patience to teach me things, could contribute in the future.

Kind regards, Anastasia

ramnes commented 5 years ago

The last commit on master should fix this, can you confirm? You will have to import Adserver rather than AdServer.

ramnes commented 5 years ago

I'll go ahead and close this, feel free to ping me if this is still an issue!