Google_YouTubeAnalyticsService

Service definition for Google_YouTubeAnalytics (v1).

Defined (1)

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

/google-api/src/contrib/Google_YouTubeAnalyticsService.php  
  1. class Google_YouTubeAnalyticsService extends Google_Service { 
  2. public $reports; 
  3. /** 
  4. * Constructs the internal representation of the YouTubeAnalytics service. 
  5. * @param Google_Client $client 
  6. */ 
  7. public function __construct(Google_Client $client) { 
  8. $this->servicePath = 'youtube/analytics/v1/'; 
  9. $this->version = 'v1'; 
  10. $this->serviceName = 'youtubeAnalytics'; 
  11.  
  12. $client->addService($this->serviceName, $this->version); 
  13. $this->reports = new Google_ReportsServiceResource($this, $this->serviceName, 'reports', json_decode('{"methods": {"query": {"id": "youtubeAnalytics.reports.query", "path": "reports", "httpMethod": "GET", "parameters": {"dimensions": {"type": "string", "location": "query"}, "end-date": {"type": "string", "required": true, "location": "query"}, "filters": {"type": "string", "location": "query"}, "ids": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "metrics": {"type": "string", "required": true, "location": "query"}, "sort": {"type": "string", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "ResultTable"}, "scopes": ["https://www.googleapis.com/auth/yt-analytics-monetary.readonly", "https://www.googleapis.com/auth/yt-analytics.readonly"]}}}', true)); 
  14.