* Retrieves your YouTube Analytics data.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class Google_Service_YouTubeAnalytics extends Google_Service { /** Manage your YouTube account. */ const YOUTUBE = "https://www.googleapis.com/auth/youtube"; /** View your YouTube account. */ const YOUTUBE_READONLY = "https://www.googleapis.com/auth/youtube.readonly"; /** View and manage your assets and associated content on YouTube. */ const YOUTUBEPARTNER = "https://www.googleapis.com/auth/youtubepartner"; /** View monetary and non-monetary YouTube Analytics reports for your YouTube content. */ const YT_ANALYTICS_MONETARY_READONLY = "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; /** View YouTube Analytics reports for your YouTube content. */ const YT_ANALYTICS_READONLY = "https://www.googleapis.com/auth/yt-analytics.readonly"; public $groupItems; public $groups; public $reports; /** * Constructs the internal representation of the YouTubeAnalytics service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://youtubeanalytics.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'youtubeAnalytics'; $this->groupItems = new Google_Service_YouTubeAnalytics_Resource_GroupItems( $this, $this->serviceName, 'groupItems', array( 'methods' => array( 'delete' => array( 'path' => 'v2/groupItems', 'httpMethod' => 'DELETE', 'parameters' => array( 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), 'id' => array( 'location' => 'query', 'type' => 'string', ), ), ),'insert' => array( 'path' => 'v2/groupItems', 'httpMethod' => 'POST', 'parameters' => array( 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), ), ),'list' => array( 'path' => 'v2/groupItems', 'httpMethod' => 'GET', 'parameters' => array( 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), 'groupId' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->groups = new Google_Service_YouTubeAnalytics_Resource_Groups( $this, $this->serviceName, 'groups', array( 'methods' => array( 'delete' => array( 'path' => 'v2/groups', 'httpMethod' => 'DELETE', 'parameters' => array( 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), 'id' => array( 'location' => 'query', 'type' => 'string', ), ), ),'insert' => array( 'path' => 'v2/groups', 'httpMethod' => 'POST', 'parameters' => array( 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), ), ),'list' => array( 'path' => 'v2/groups', 'httpMethod' => 'GET', 'parameters' => array( 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), 'id' => array( 'location' => 'query', 'type' => 'string', ), 'mine' => array( 'location' => 'query', 'type' => 'boolean', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), ), ),'update' => array( 'path' => 'v2/groups', 'httpMethod' => 'PUT', 'parameters' => array( 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->reports = new Google_Service_YouTubeAnalytics_Resource_Reports( $this, $this->serviceName, 'reports', array( 'methods' => array( 'query' => array( 'path' => 'v2/reports', 'httpMethod' => 'GET', 'parameters' => array( 'maxResults' => array( 'location' => 'query', 'type' => 'integer', ), 'filters' => array( 'location' => 'query', 'type' => 'string', ), 'sort' => array( 'location' => 'query', 'type' => 'string', ), 'startDate' => array( 'location' => 'query', 'type' => 'string', ), 'metrics' => array( 'location' => 'query', 'type' => 'string', ), 'includeHistoricalChannelData' => array( 'location' => 'query', 'type' => 'boolean', ), 'ids' => array( 'location' => 'query', 'type' => 'string', ), 'currency' => array( 'location' => 'query', 'type' => 'string', ), 'startIndex' => array( 'location' => 'query', 'type' => 'integer', ), 'dimensions' => array( 'location' => 'query', 'type' => 'string', ), 'endDate' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); } }