GoogleGAL_Service_Analytics_DataMcf_Resource

The "mcf" collection of methods.

Defined (1)

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

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