What steps will reproduce the problem? 1. Get latest PHP client library from https://github.com/google/google-api-php-client 2. Try code example from page https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/uploads/uploadData with real data 3. Get There was an Analytics API service error 500:Error calling POST https://www.googleapis.com/upload/analytics/v3/management/accounts/468424/webproperties/UA-468424-1/customDataSources/Tn7pxbV7Siqfn9XFaAsmBQ/uploads?uploadType=media: (500) There was an internal error. files to test service.php is attached