Google_Service_Analytics_DataMcf_Resource

The "mcf" collection of methods.

Defined (1)

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

/lib/Google/Service/Analytics.php  
  1. class Google_Service_Analytics_DataMcf_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Returns Analytics Multi-Channel Funnels data for a view (profile). (mcf.get) 
  5. * @param string $ids 
  6. * Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is 
  7. * the Analytics view (profile) ID. 
  8. * @param string $startDate 
  9. * Start date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM- 
  10. * DD, or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. 
  11. * @param string $endDate 
  12. * End date for fetching Analytics data. Requests can specify a start date formatted as YYYY-MM-DD,  
  13. * or as a relative date (e.g., today, yesterday, or 7daysAgo). The default value is 7daysAgo. 
  14. * @param string $metrics 
  15. * A comma-separated list of Multi-Channel Funnels metrics. E.g.,  
  16. * 'mcf:totalConversions, mcf:totalConversionValue'. At least one metric must be specified. 
  17. * @param array $optParams Optional parameters. 
  18. * @opt_param int max-results 
  19. * The maximum number of entries to include in this feed. 
  20. * @opt_param string sort 
  21. * A comma-separated list of dimensions or metrics that determine the sort order for the Analytics 
  22. * data. 
  23. * @opt_param string dimensions 
  24. * A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source, mcf:medium'. 
  25. * @opt_param int start-index 
  26. * An index of the first entity to retrieve. Use this parameter as a pagination mechanism along 
  27. * with the max-results parameter. 
  28. * @opt_param string samplingLevel 
  29. * The desired sampling level. 
  30. * @opt_param string filters 
  31. * A comma-separated list of dimension or metric filters to be applied to the Analytics data. 
  32. * @return Google_Service_Analytics_McfData 
  33. */ 
  34. public function get($ids, $startDate, $endDate, $metrics, $optParams = array()) 
  35. $params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics); 
  36. $params = array_merge($params, $optParams); 
  37. return $this->call('get', array($params), "Google_Service_Analytics_McfData");