|
@@ -73,10 +73,8 @@ class GA{
|
|
|
|
|
|
$body = new \Google_Service_AnalyticsReporting_GetReportsRequest();
|
|
$body = new \Google_Service_AnalyticsReporting_GetReportsRequest();
|
|
$body->setReportRequests( array( $request) );
|
|
$body->setReportRequests( array( $request) );
|
|
- return $analytics->reports->batchGet( $body );
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ $reports= $analytics->reports->batchGet( $body );
|
|
|
|
+
|
|
$result=$this->getResults($reports);
|
|
$result=$this->getResults($reports);
|
|
echo "<pre>";
|
|
echo "<pre>";
|
|
print_r($result);exit;
|
|
print_r($result);exit;
|