Google_ManagementSegmentsServiceResource

The "segments" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_AnalyticsService.php  
  1. class Google_ManagementSegmentsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Lists advanced segments to which the user has access. (segments.list) 
  6. * @param array $optParams Optional parameters. 
  7. * @opt_param int max-results The maximum number of advanced segments to include in this response. 
  8. * @opt_param int start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. 
  9. * @return Google_Segments 
  10. */ 
  11. public function listManagementSegments($optParams = array()) { 
  12. $params = array(); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('list', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_Segments($data); 
  17. } else { 
  18. return $data;