Question

I'm trying to use the PHP Google API from here: https://github.com/google/google-api-php-client following the Google Analytics developer guide here: https://developers.google.com/analytics/devguides/reporting/core/v3/coreDevguide. But, they don't seem to match at all. There is no setUseObjects function. There is no apiAnalyticsService but I do see that there is a Google_Service_Analytics and there are a lot of other differences and it's impossible to even follow the guide even though it points to that same github repo as the client library that is supposed to be used.

Am I completely missing something here?

Was it helpful?

Solution

The sample code in that page is using the old version of the library (0.6.*). You can either download the old lib version (not recommended) or update the code following the migration guide.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top