What steps will reproduce the problem?
1. Using Analytics API and Adsense API together
2. Write this code:
include_once '/google-api-php-client/src/contrib/Google_AdsenseService.php';
include_once '/google-api-php-client/src/contrib/Google_AnalyticsService.php';
3.
What is the expected output? What do you see instead?
I expect no error. But I get this error:
Fatal error: Cannot redeclare class Google_Account in
/var/www/vhosts/example.com/httpdocs/google-api-php-client
/src/contrib/Google_AnalyticsService.php on line 379
What version of the product are you using? On what operating system?
Linux, PHP 5.3.16, Google API PHP Client 0.6.0
Please provide any additional information below.
I think "Google_Account" class should be inside a namespace. Else Analytics API
and Adsense API conflicts.
Original issue reported on code.google.com by skfra...@gmail.com on 18 Jan 2013 at 7:01
Original issue reported on code.google.com by
skfra...@gmail.com
on 18 Jan 2013 at 7:01