I am trying to develop an application that does server side requests nightly to my Google analytics profile. I have seen some outdated posts that the API library for PHP does not support service accounts for Google analytics.
I followed these instructions(the edited answer):
Service Applications and Google Analytics API V3: Server-to-server OAuth2 authentication?
When I run the code I'm getting a connection reset error and on my test server I get a 500 internal.
The error occurs at this part in the answer above.
$service->data_ga->get($ids, $startDate, $endDate, $metrics, $optParams);
The path to the private key is correct and I'm running on 5.3.8