GoogleGAL_Service_Analytics_DataRealtime_Resource

The "realtime" collection of methods.

Defined (1)

The class is defined in the following location(s).

/core/Google/Service/Analytics.php  
  1. class GoogleGAL_Service_Analytics_DataRealtime_Resource extends GoogleGAL_Service_Resource 
  2.  
  3. /** 
  4. * Returns real time data for a view (profile). (realtime.get) 
  5. * @param string $ids Unique table ID for retrieving real time data. Table ID is 
  6. * of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. 
  7. * @param string $metrics A comma-separated list of real time metrics. E.g.,  
  8. * 'rt:activeUsers'. At least one metric must be specified. 
  9. * @param array $optParams Optional parameters. 
  10. * @opt_param int max-results The maximum number of entries to include in this 
  11. * feed. 
  12. * @opt_param string sort A comma-separated list of dimensions or metrics that 
  13. * determine the sort order for real time data. 
  14. * @opt_param string dimensions A comma-separated list of real time dimensions. 
  15. * E.g., 'rt:medium, rt:city'. 
  16. * @opt_param string filters A comma-separated list of dimension or metric 
  17. * filters to be applied to real time data. 
  18. * @return GoogleGAL_Service_Analytics_RealtimeData 
  19. */ 
  20. public function get($ids, $metrics, $optParams = array()) 
  21. $params = array('ids' => $ids, 'metrics' => $metrics); 
  22. $params = array_merge($params, $optParams); 
  23. return $this->call('get', array($params), "GoogleGAL_Service_Analytics_RealtimeData");