andeedee / gapi-google-analytics-php-interface

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

Dimension is not a required variable for requestReportData #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use ga->requestReportData with the dimension set to 'null'

What is the expected output? What do you see instead?
A valid result object from which the aggregate from each data can be extracted.

However the expects dimension to be an array or string, and so tries to
insert a blank 'ga:' paramater.

What version of the product are you using? On what operating system?
1.3

Please provide any additional information below.

The simple fix is to change the "else" on line 126 to an "else if" to check
that $dimensions is not-null.

Original issue reported on code.google.com by ejsand...@gmail.com on 3 Jul 2009 at 2:45

GoogleCodeExporter commented 9 years ago
Hi ejsanders,

This issue was raised by Sławek Tajnert. Fix has been added to revision 36 of 
the SVN
trunk.

See
http://code.google.com/p/gapi-google-analytics-php-interface/source/detail?spec=
svn36&r=36

The fix will be included in version 1.4 which will be released in the next 
month,
including addition of AuthSub authentication system created by Joel Kitching 
for the
GAPI class.

Cheers,
Stig

Original comment by stigmann...@gmail.com on 3 Jul 2009 at 2:58