anuj607 / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Unable To Use AdSense and Analytics API In Same Request #114

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load AdSense API
2. Load Analytics API
3.

What is the expected output? What do you see instead?
Ability to load multiple APIs

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

Both the AdSense API and the Analytics API, you can't because both contain 
"class Account" which ends up causing a fatal error because it can't be 
redeclared when you initialize the second API.

Original issue reported on code.google.com by digitalp...@gmail.com on 16 Apr 2012 at 11:56

GoogleCodeExporter commented 9 years ago
Looks like it's related to 
http://code.google.com/p/google-api-php-client/issues/detail?id=53

Original comment by digitalp...@gmail.com on 17 Apr 2012 at 12:11

GoogleCodeExporter commented 9 years ago
Sorry, meant you can't LOAD both the AdSense API and the Analytics API...

Also, looks like it's related to 
http://code.google.com/p/google-api-php-client/issues/detail?id=53

Original comment by digitalp...@gmail.com on 17 Apr 2012 at 12:12

GoogleCodeExporter commented 9 years ago

Original comment by chirags@google.com on 17 Apr 2012 at 2:59

GoogleCodeExporter commented 9 years ago
Just as FYI, this is still an issue under 0.60... Except instead of the class 
"Account", it's "Google_Account" for both AdSense and Analytics.

Original comment by digitalp...@gmail.com on 12 Oct 2012 at 6:46

GoogleCodeExporter commented 9 years ago
Thanks, we're going to do some work in the near future to address name 
collisions. 

Original comment by ianbar...@google.com on 22 Mar 2013 at 2:04