Google_Service_YouTubeAnalytics

Service definition for YouTubeAnalytics (v1).

Defined (1)

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

/src/Google/Service/YouTubeAnalytics.php  
  1. class Google_Service_YouTubeAnalytics extends Google_Service 
  2. /** View YouTube Analytics monetary reports for your YouTube content. */ 
  3. const YT_ANALYTICS_MONETARY_READONLY = 
  4. "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; 
  5. /** View YouTube Analytics reports for your YouTube content. */ 
  6. const YT_ANALYTICS_READONLY = 
  7. "https://www.googleapis.com/auth/yt-analytics.readonly"; 
  8.  
  9. public $batchReportDefinitions; 
  10. public $batchReports; 
  11. public $reports; 
  12.  
  13.  
  14. /** 
  15. * Constructs the internal representation of the YouTubeAnalytics service. 
  16. * @param Google_Client $client 
  17. */ 
  18. public function __construct(Google_Client $client) 
  19. parent::__construct($client); 
  20. $this->servicePath = 'youtube/analytics/v1/'; 
  21. $this->version = 'v1'; 
  22. $this->serviceName = 'youtubeAnalytics'; 
  23.  
  24. $this->batchReportDefinitions = new Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource( 
  25. $this,  
  26. $this->serviceName,  
  27. 'batchReportDefinitions',  
  28. array( 
  29. 'methods' => array( 
  30. 'list' => array( 
  31. 'path' => 'batchReportDefinitions',  
  32. 'httpMethod' => 'GET',  
  33. 'parameters' => array( 
  34. 'onBehalfOfContentOwner' => array( 
  35. 'location' => 'query',  
  36. 'type' => 'string',  
  37. 'required' => true,  
  38. ),  
  39. ),  
  40. ),  
  41. ); 
  42. $this->batchReports = new Google_Service_YouTubeAnalytics_BatchReports_Resource( 
  43. $this,  
  44. $this->serviceName,  
  45. 'batchReports',  
  46. array( 
  47. 'methods' => array( 
  48. 'list' => array( 
  49. 'path' => 'batchReports',  
  50. 'httpMethod' => 'GET',  
  51. 'parameters' => array( 
  52. 'batchReportDefinitionId' => array( 
  53. 'location' => 'query',  
  54. 'type' => 'string',  
  55. 'required' => true,  
  56. ),  
  57. 'onBehalfOfContentOwner' => array( 
  58. 'location' => 'query',  
  59. 'type' => 'string',  
  60. 'required' => true,  
  61. ),  
  62. ),  
  63. ),  
  64. ); 
  65. $this->reports = new Google_Service_YouTubeAnalytics_Reports_Resource( 
  66. $this,  
  67. $this->serviceName,  
  68. 'reports',  
  69. array( 
  70. 'methods' => array( 
  71. 'query' => array( 
  72. 'path' => 'reports',  
  73. 'httpMethod' => 'GET',  
  74. 'parameters' => array( 
  75. 'ids' => array( 
  76. 'location' => 'query',  
  77. 'type' => 'string',  
  78. 'required' => true,  
  79. ),  
  80. 'start-date' => array( 
  81. 'location' => 'query',  
  82. 'type' => 'string',  
  83. 'required' => true,  
  84. ),  
  85. 'end-date' => array( 
  86. 'location' => 'query',  
  87. 'type' => 'string',  
  88. 'required' => true,  
  89. ),  
  90. 'metrics' => array( 
  91. 'location' => 'query',  
  92. 'type' => 'string',  
  93. 'required' => true,  
  94. ),  
  95. 'max-results' => array( 
  96. 'location' => 'query',  
  97. 'type' => 'integer',  
  98. ),  
  99. 'sort' => array( 
  100. 'location' => 'query',  
  101. 'type' => 'string',  
  102. ),  
  103. 'dimensions' => array( 
  104. 'location' => 'query',  
  105. 'type' => 'string',  
  106. ),  
  107. 'start-index' => array( 
  108. 'location' => 'query',  
  109. 'type' => 'integer',  
  110. ),  
  111. 'filters' => array( 
  112. 'location' => 'query',  
  113. 'type' => 'string',  
  114. ),  
  115. ),  
  116. ),  
  117. );