dancingcactus / python-omniture

A high-level Python wrapper for the Adobe Omniture API.
MIT License
89 stars 52 forks source link

Pulling evar data limited to 10 observations #104

Closed zark-stark12 closed 5 years ago

zark-stark12 commented 5 years ago

So I've been using this API and is has worked and pulled data correctly for me for some time. However pulling specific evars from a report I do run into issues where it seems the results of the report are limited to only the first 10 observations.

The report being pulled is simple but as an example just pulling the current day, it pulls the data correctly comparing it back to the Omniture data but it is only limited to 10 rows.

Sample code:

report = suite.report \ .element('evarXX') \ .metric('eventXXX') \ .run(defaultheartbeat=False)

Is this behavior suppose to happen when working with evars? Any help would be appreciated!

dancingcactus commented 5 years ago

This is the default for evars. if you add top to the element command it will return the number of rows specified. I think the limit is 50k. In which case you can add a startingWith to do pagination.

report = suite.report \ 
     .element('evarXX', top=x) \ 
     .metric('eventXXX') \ 
     .run(defaultheartbeat=False)