Google_Service_Analytics_DataRealtime_Resource

The "realtime" collection of methods.

Defined (1)

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

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