Hi!
Thanks!
Jose
---Jose Alcérreca
Developer Relations
Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902
On Friday, 18 January 2013 18:55:11 UTC, mercury22 wrote:
I use "Google APIs Client Library for PHP"But when I use Adsense and Analytics API I get errors.
when I made this:
include_once '/google-api-php-client/src/contrib/Google_AdsenseService.php';
include_once '/google-api-php-client/src/contrib/Google_AnalyticsService.php';
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
Because both of the php files has a class named "Google_Account".
That class is not inside a namespace so PHP says it couldn't redeclare it.
I suppose it is a bug and reporting it.
(I would be happy if you can tell me, if there exists any other way to report this bug)