* Schedules reporting jobs containing your YouTube Analytics data and downloads * the resulting bulk data reports in the form of CSV files.
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class Google_Service_YouTubeReporting extends Google_Service { /** 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 $jobs; public $jobs_reports; public $media; public $reportTypes; /** * Constructs the internal representation of the YouTubeReporting service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://youtubereporting.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'youtubereporting'; $this->jobs = new Google_Service_YouTubeReporting_Resource_Jobs( $this, $this->serviceName, 'jobs', array( 'methods' => array( 'create' => array( 'path' => 'v1/jobs', 'httpMethod' => 'POST', 'parameters' => array( 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), ), ),'delete' => array( 'path' => 'v1/jobs/{jobId}', 'httpMethod' => 'DELETE', 'parameters' => array( 'jobId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), ), ),'get' => array( 'path' => 'v1/jobs/{jobId}', 'httpMethod' => 'GET', 'parameters' => array( 'jobId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), ), ),'list' => array( 'path' => 'v1/jobs', 'httpMethod' => 'GET', 'parameters' => array( 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'includeSystemManaged' => array( 'location' => 'query', 'type' => 'boolean', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->jobs_reports = new Google_Service_YouTubeReporting_Resource_JobsReports( $this, $this->serviceName, 'reports', array( 'methods' => array( 'get' => array( 'path' => 'v1/jobs/{jobId}/reports/{reportId}', 'httpMethod' => 'GET', 'parameters' => array( 'jobId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'reportId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), ), ),'list' => array( 'path' => 'v1/jobs/{jobId}/reports', 'httpMethod' => 'GET', 'parameters' => array( 'jobId' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'createdAfter' => array( 'location' => 'query', 'type' => 'string', ), 'startTimeAtOrAfter' => array( 'location' => 'query', 'type' => 'string', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), 'startTimeBefore' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); $this->media = new Google_Service_YouTubeReporting_Resource_Media( $this, $this->serviceName, 'media', array( 'methods' => array( 'download' => array( 'path' => 'v1/media/{+resourceName}', 'httpMethod' => 'GET', 'parameters' => array( 'resourceName' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->reportTypes = new Google_Service_YouTubeReporting_Resource_ReportTypes( $this, $this->serviceName, 'reportTypes', array( 'methods' => array( 'list' => array( 'path' => 'v1/reportTypes', 'httpMethod' => 'GET', 'parameters' => array( 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), 'onBehalfOfContentOwner' => array( 'location' => 'query', 'type' => 'string', ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'includeSystemManaged' => array( 'location' => 'query', 'type' => 'boolean', ), ), ), ) ) ); } }