cuongpd / gapi-google-analytics-php-interface

Automatically exported from code.google.com/p/gapi-google-analytics-php-interface
0 stars 0 forks source link

Only gets 30 days results, instead of specified period of time #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I would like to get the results from 3 to 2 months back until the actual 
date, for example, if I set the start date (2010-05-22) and end date 
(2010-08-22), the ga:pi class only gets the start date and based on that it 
only gets the next 30 days.
2.
3.

What is the expected output? What do you see instead?
To get the whole period results instead of 30 days result

What version of the product are you using? On what operating system?
Using XAMPP with ga:pi 1.3 OSX Leopard

Please provide any additional information below.
PHP5 & jQuery lastest stable release.

Original issue reported on code.google.com by edgardo....@gmail.com on 24 Aug 2010 at 4:17

GoogleCodeExporter commented 9 years ago
I ran into this too.  Google only allows anyone to get 1000 results per query 
through the API.  I checked using:   echo count($ga->getResults());   Perhaps 
that's why you're not seeing all the results.

Original comment by iamchri...@gmail.com on 8 Nov 2010 at 7:01

GoogleCodeExporter commented 9 years ago
I ran into this too.  Google only allows anyone to get 1000 results per query 
through the API.  I checked using:   echo count($ga->getResults());   Perhaps 
that's why you're not seeing all the results.

Original comment by iamchri...@gmail.com on 8 Nov 2010 at 7:02

GoogleCodeExporter commented 9 years ago
$maxcount is set to 30 by default when calling requestReportData.  By setting a 
new value to $maxcount you can override the default.

Original comment by trioniaa...@gmail.com on 14 Nov 2010 at 7:47

GoogleCodeExporter commented 9 years ago
The $maxcount argument does seem pointless; if you want fewer results then just 
request less in the first place.

Original comment by dan.deebster on 15 Oct 2013 at 2:57