-
Notifications
You must be signed in to change notification settings - Fork 24
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
[Bug] Statistics needed in getReport2() #77
Comments
Thanks for providing this, probably miss to test that case. I will do a fix this week. Some questions as you tested the new version :) |
Tbh I'm using the simplest things. Basically in my company there is some department of analytics that generates this type of reports for business, CEOs, etc... And, although I'm not certain why me xD, I'm doing the automatization of those reports, my normal job is data scientist but the guy who tend to do this job manually doesn't know how to program in python, so he creates the segments in Adobe Analytics and send me the JSONs, which I use to call the API, join the dataframes and put them in BigQuery to use datastudio as tool of visualization for business. Therefore, I don't use RequestCreator, and there are some differences with the new method (like dict vs params, n_result vs n_results or the need to parse it as json), but in general are pretty similar, I like that know I can check the summaryData, which is useful when I'm doing monthly calls and then I have the mean of the data in the summaryData instead of needing to do another call, which will delay the rest of the calls, so I'm trying to do few and big calls, instead of small and many calls to not have problems with the limitations of the API xD. |
thanks, appreciate the feedback. |
The new release should fix this @set92. I will add the kwargs supports later with another release. |
Works, thanks :D |
I would call it a bug but maybe is mandatory for some weird thing. But when I call to getReport2() without statistics block it returns an error.
My json file (modified just in case) is this one, in which I don't have the statistics block.
The fix is easy, since I only have to add a random one like this one at the end.
But in general, I don't want the statistics but the filteredTotals and totals from summaryData (which I already have), not the col-max and col-min.
Also, with getReport() I could send the json as string, but now I need to parse it with json.loads() before using getReport2(), is not a problem because this way I can modify more stuff, but just in case you wanted to maintain the same behavior in both calls.
Thanks for the library and the new version 😄
The text was updated successfully, but these errors were encountered: