Google_ManagementCustomDataSourcesServiceResource

The "customDataSources" 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_ManagementCustomDataSourcesServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * List custom data sources to which the user has access. 
  5. * (customDataSources.list) 
  6. * @param string $accountId Account Id for the custom data sources to retrieve. 
  7. * @param string $webPropertyId Web property Id for the custom data sources to retrieve. 
  8. * @param array $optParams Optional parameters. 
  9. * @opt_param int max-results The maximum number of custom data sources to include in this response. 
  10. * @opt_param int start-index A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. 
  11. * @return Google_CustomDataSources 
  12. */ 
  13. public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array()) { 
  14. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); 
  15. $params = array_merge($params, $optParams); 
  16. $data = $this->__call('list', array($params)); 
  17. if ($this->useObjects()) { 
  18. return new Google_CustomDataSources($data); 
  19. } else { 
  20. return $data;