* 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 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; public $rootUrlTemplate; /** * Constructs the internal representation of the YouTubeReporting service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://youtubereporting.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://youtubereporting.UNIVERSE_DOMAIN/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'youtubereporting'; $this->jobs = new YouTubeReporting\Resource\Jobs( $this, $this->serviceName, 'jobs', [ 'methods' => [ 'create' => [ 'path' => 'v1/jobs', 'httpMethod' => 'POST', 'parameters' => [ 'onBehalfOfContentOwner' => [ 'location' => 'query', 'type' => 'string', ], ], ],'delete' => [ 'path' => 'v1/jobs/{jobId}', 'httpMethod' => 'DELETE', 'parameters' => [ 'jobId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'onBehalfOfContentOwner' => [ 'location' => 'query', 'type' => 'string', ], ], ],'get' => [ 'path' => 'v1/jobs/{jobId}', 'httpMethod' => 'GET', 'parameters' => [ 'jobId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'onBehalfOfContentOwner' => [ 'location' => 'query', 'type' => 'string', ], ], ],'list' => [ 'path' => 'v1/jobs', 'httpMethod' => 'GET', 'parameters' => [ 'includeSystemManaged' => [ 'location' => 'query', 'type' => 'boolean', ], 'onBehalfOfContentOwner' => [ 'location' => 'query', 'type' => 'string', ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->jobs_reports = new YouTubeReporting\Resource\JobsReports( $this, $this->serviceName, 'reports', [ 'methods' => [ 'get' => [ 'path' => 'v1/jobs/{jobId}/reports/{reportId}', 'httpMethod' => 'GET', 'parameters' => [ 'jobId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'reportId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'onBehalfOfContentOwner' => [ 'location' => 'query', 'type' => 'string', ], ], ],'list' => [ 'path' => 'v1/jobs/{jobId}/reports', 'httpMethod' => 'GET', 'parameters' => [ 'jobId' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'createdAfter' => [ 'location' => 'query', 'type' => 'string', ], 'onBehalfOfContentOwner' => [ 'location' => 'query', 'type' => 'string', ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], 'startTimeAtOrAfter' => [ 'location' => 'query', 'type' => 'string', ], 'startTimeBefore' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->media = new YouTubeReporting\Resource\Media( $this, $this->serviceName, 'media', [ 'methods' => [ 'download' => [ 'path' => 'v1/media/{+resourceName}', 'httpMethod' => 'GET', 'parameters' => [ 'resourceName' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->reportTypes = new YouTubeReporting\Resource\ReportTypes( $this, $this->serviceName, 'reportTypes', [ 'methods' => [ 'list' => [ 'path' => 'v1/reportTypes', 'httpMethod' => 'GET', 'parameters' => [ 'includeSystemManaged' => [ 'location' => 'query', 'type' => 'boolean', ], 'onBehalfOfContentOwner' => [ 'location' => 'query', 'type' => 'string', ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(YouTubeReporting::class, 'Google_Service_YouTubeReporting');