Google_DataMcfServiceResource

The "mcf" collection of methods.

Defined (1)

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

/google-api-php-client/api-code/contrib/Google_AnalyticsService.php  
  1. class Google_DataMcfServiceResource extends Google_ServiceResource { 
  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 of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. 
  6. * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD. 
  7. * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD. 
  8. * @param string $metrics A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions, mcf:totalConversionValue'. At least one metric must be specified. 
  9. * @param array $optParams Optional parameters. 
  10. * @opt_param string dimensions A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source, mcf:medium'. 
  11. * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to the Analytics data. 
  12. * @opt_param int max-results The maximum number of entries to include in this feed. 
  13. * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data. 
  14. * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. 
  15. * @return Google_McfData 
  16. */ 
  17. public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) { 
  18. $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics); 
  19. $params = array_merge($params, $optParams); 
  20. $data = $this->__call('get', array($params)); 
  21. if ($this->useObjects()) { 
  22. return new Google_McfData($data); 
  23. } else { 
  24. return $data;