private function queryCoreReportingApi($tableId) {

    $optParams = array(
        'dimensions' => 'ga:source,ga:keyword',
        'sort' => '-ga:visits,ga:keyword',
        'filters' => 'ga:medium==organic',
        'max-results' => '25');

    return $this->analytics->data_ga->get(
        urldecode($tableId),
        '2010-01-01',
        '2010-01-15',
        'ga:visits',
        $optParams);
  }
private function queryCoreReportingApi($tableId) {

    $optParams = array(
        'dimensions' => 'ga:source,ga:keyword',
        'sort' => '-ga:visits,ga:keyword',
        'filters' => 'ga:medium==organic',
        'max-results' => '25');

    return $this->analytics->data_ga->get(
        urldecode($tableId),
        '2010-01-01',
        '2010-01-15',
        'ga:visits',
        $optParams);
  }
private function queryCoreReportingApi ( $ tableId ) { $ optParams = array ( 'dimensions' => 'ga:source,ga:keyword' , 'sort' => '-ga:visits,ga:keyword' , 'filters' => 'ga:medium==organic' , 'max-results' => '25' ) ; return $ this -> analytics -> data_ga -> get ( urldecode ( $ tableId ) , '2010-01-01' , '2010-01-15' , 'ga:visits' , $ optParams ) ; }
Queries the Core Reporting API for the top 25 organic search terms
ordered by visits. Because the table id comes from the query parameter
it needs to be URI decoded.
@param string $tableId The value of the ids parameter in the
Core Reporting API. This is the ga namespaced profile ID. It has the
format of ga:xxxx where xxxx is the profile ID. You can get this
value from the Management API. See the helloAnalytics.php example
for details.
@return GaData The results from the Core Reporting API.
Queries the Core Reporting API for the top 25 organic search terms ordered by visits . Because the table id comes from the query parameter it needs to be URI decoded .