OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/yt-analytics.readonly": { | 5 "https://www.googleapis.com/auth/yt-analytics.readonly": { |
6 "description": "View YouTube Analytics reports for your YouT
ube content" | 6 "description": "View YouTube Analytics reports for your YouT
ube content" |
7 }, | 7 }, |
8 "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"
: { | 8 "https://www.googleapis.com/auth/yt-analytics-monetary.readonly"
: { |
9 "description": "View monetary and non-monetary YouTube Analy
tics reports for your YouTube content" | 9 "description": "View monetary and non-monetary YouTube Analy
tics reports for your YouTube content" |
10 } | 10 } |
(...skipping 10 matching lines...) Expand all Loading... |
21 "icons": { | 21 "icons": { |
22 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 22 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
23 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 23 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
24 }, | 24 }, |
25 "id": "youtubereporting:v1", | 25 "id": "youtubereporting:v1", |
26 "kind": "discovery#restDescription", | 26 "kind": "discovery#restDescription", |
27 "name": "youtubereporting", | 27 "name": "youtubereporting", |
28 "ownerDomain": "google.com", | 28 "ownerDomain": "google.com", |
29 "ownerName": "Google", | 29 "ownerName": "Google", |
30 "parameters": { | 30 "parameters": { |
| 31 "access_token": { |
| 32 "description": "OAuth access token.", |
| 33 "location": "query", |
| 34 "type": "string" |
| 35 }, |
| 36 "key": { |
| 37 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 38 "location": "query", |
| 39 "type": "string" |
| 40 }, |
| 41 "quotaUser": { |
| 42 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
| 43 "location": "query", |
| 44 "type": "string" |
| 45 }, |
31 "pp": { | 46 "pp": { |
32 "default": "true", | 47 "default": "true", |
33 "description": "Pretty-print response.", | 48 "description": "Pretty-print response.", |
34 "location": "query", | 49 "location": "query", |
35 "type": "boolean" | 50 "type": "boolean" |
36 }, | 51 }, |
| 52 "bearer_token": { |
| 53 "description": "OAuth bearer token.", |
| 54 "location": "query", |
| 55 "type": "string" |
| 56 }, |
37 "oauth_token": { | 57 "oauth_token": { |
38 "description": "OAuth 2.0 token for the current user.", | 58 "description": "OAuth 2.0 token for the current user.", |
39 "location": "query", | 59 "location": "query", |
40 "type": "string" | 60 "type": "string" |
41 }, | 61 }, |
42 "bearer_token": { | |
43 "description": "OAuth bearer token.", | |
44 "location": "query", | |
45 "type": "string" | |
46 }, | |
47 "upload_protocol": { | 62 "upload_protocol": { |
48 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | 63 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
49 "location": "query", | 64 "location": "query", |
50 "type": "string" | 65 "type": "string" |
51 }, | 66 }, |
52 "prettyPrint": { | 67 "prettyPrint": { |
53 "default": "true", | 68 "default": "true", |
54 "description": "Returns response with indentations and line breaks."
, | 69 "description": "Returns response with indentations and line breaks."
, |
55 "location": "query", | 70 "location": "query", |
56 "type": "boolean" | 71 "type": "boolean" |
57 }, | 72 }, |
| 73 "fields": { |
| 74 "description": "Selector specifying which fields to include in a par
tial response.", |
| 75 "location": "query", |
| 76 "type": "string" |
| 77 }, |
58 "uploadType": { | 78 "uploadType": { |
59 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | 79 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
60 "location": "query", | 80 "location": "query", |
61 "type": "string" | 81 "type": "string" |
62 }, | 82 }, |
63 "fields": { | 83 "callback": { |
64 "description": "Selector specifying which fields to include in a par
tial response.", | 84 "description": "JSONP", |
65 "location": "query", | 85 "location": "query", |
66 "type": "string" | 86 "type": "string" |
67 }, | 87 }, |
68 "$.xgafv": { | 88 "$.xgafv": { |
69 "description": "V1 error format.", | 89 "description": "V1 error format.", |
70 "enum": [ | 90 "enum": [ |
71 "1", | 91 "1", |
72 "2" | 92 "2" |
73 ], | 93 ], |
74 "enumDescriptions": [ | 94 "enumDescriptions": [ |
75 "v1 error format", | 95 "v1 error format", |
76 "v2 error format" | 96 "v2 error format" |
77 ], | 97 ], |
78 "location": "query", | 98 "location": "query", |
79 "type": "string" | 99 "type": "string" |
80 }, | 100 }, |
81 "callback": { | |
82 "description": "JSONP", | |
83 "location": "query", | |
84 "type": "string" | |
85 }, | |
86 "alt": { | 101 "alt": { |
87 "default": "json", | 102 "default": "json", |
88 "description": "Data format for response.", | 103 "description": "Data format for response.", |
89 "enum": [ | 104 "enum": [ |
90 "json", | 105 "json", |
91 "media", | 106 "media", |
92 "proto" | 107 "proto" |
93 ], | 108 ], |
94 "enumDescriptions": [ | 109 "enumDescriptions": [ |
95 "Responses with Content-Type of application/json", | 110 "Responses with Content-Type of application/json", |
96 "Media download with context-dependent Content-Type", | 111 "Media download with context-dependent Content-Type", |
97 "Responses with Content-Type of application/x-protobuf" | 112 "Responses with Content-Type of application/x-protobuf" |
98 ], | 113 ], |
99 "location": "query", | 114 "location": "query", |
100 "type": "string" | 115 "type": "string" |
101 }, | |
102 "access_token": { | |
103 "description": "OAuth access token.", | |
104 "location": "query", | |
105 "type": "string" | |
106 }, | |
107 "key": { | |
108 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", | |
109 "location": "query", | |
110 "type": "string" | |
111 }, | |
112 "quotaUser": { | |
113 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | |
114 "location": "query", | |
115 "type": "string" | |
116 } | 116 } |
117 }, | 117 }, |
118 "protocol": "rest", | 118 "protocol": "rest", |
119 "resources": { | 119 "resources": { |
120 "media": { | 120 "jobs": { |
121 "methods": { | 121 "methods": { |
122 "download": { | 122 "create": { |
123 "description": "Method for media download. Download is suppo
rted\non the URI `/v1/media/{+name}?alt=media`.", | 123 "description": "Creates a job and returns it.", |
124 "httpMethod": "GET", | 124 "httpMethod": "POST", |
125 "id": "youtubereporting.media.download", | 125 "id": "youtubereporting.jobs.create", |
| 126 "parameterOrder": [], |
| 127 "parameters": { |
| 128 "onBehalfOfContentOwner": { |
| 129 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", |
| 130 "location": "query", |
| 131 "type": "string" |
| 132 } |
| 133 }, |
| 134 "path": "v1/jobs", |
| 135 "request": { |
| 136 "$ref": "Job" |
| 137 }, |
| 138 "response": { |
| 139 "$ref": "Job" |
| 140 }, |
| 141 "scopes": [ |
| 142 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", |
| 143 "https://www.googleapis.com/auth/yt-analytics.readonly" |
| 144 ] |
| 145 }, |
| 146 "delete": { |
| 147 "description": "Deletes a job.", |
| 148 "httpMethod": "DELETE", |
| 149 "id": "youtubereporting.jobs.delete", |
126 "parameterOrder": [ | 150 "parameterOrder": [ |
127 "resourceName" | 151 "jobId" |
128 ], | 152 ], |
129 "parameters": { | 153 "parameters": { |
130 "resourceName": { | 154 "onBehalfOfContentOwner": { |
131 "description": "Name of the media that is being down
loaded. See\nReadRequest.resource_name.", | 155 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", |
| 156 "location": "query", |
| 157 "type": "string" |
| 158 }, |
| 159 "jobId": { |
| 160 "description": "The ID of the job to delete.", |
132 "location": "path", | 161 "location": "path", |
133 "pattern": "^.+$", | |
134 "required": true, | 162 "required": true, |
135 "type": "string" | 163 "type": "string" |
136 } | 164 } |
137 }, | 165 }, |
138 "path": "v1/media/{+resourceName}", | 166 "path": "v1/jobs/{jobId}", |
139 "response": { | 167 "response": { |
140 "$ref": "Media" | 168 "$ref": "Empty" |
141 }, | 169 }, |
142 "scopes": [ | 170 "scopes": [ |
143 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", | 171 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", |
144 "https://www.googleapis.com/auth/yt-analytics.readonly" | 172 "https://www.googleapis.com/auth/yt-analytics.readonly" |
145 ], | 173 ] |
146 "supportsMediaDownload": true | 174 }, |
147 } | |
148 } | |
149 }, | |
150 "jobs": { | |
151 "methods": { | |
152 "list": { | 175 "list": { |
153 "description": "Lists jobs.", | 176 "description": "Lists jobs.", |
154 "httpMethod": "GET", | 177 "httpMethod": "GET", |
155 "id": "youtubereporting.jobs.list", | 178 "id": "youtubereporting.jobs.list", |
156 "parameterOrder": [], | 179 "parameterOrder": [], |
157 "parameters": { | 180 "parameters": { |
| 181 "pageToken": { |
| 182 "description": "A token identifying a page of result
s the server should return. Typically,\nthis is the value of\nListReportTypesRes
ponse.next_page_token\nreturned in response to the previous call to the `ListJob
s` method.", |
| 183 "location": "query", |
| 184 "type": "string" |
| 185 }, |
| 186 "includeSystemManaged": { |
| 187 "description": "If set to true, also system-managed
jobs will be returned; otherwise only\nuser-created jobs will be returned. Syste
m-managed jobs can neither be\nmodified nor deleted.", |
| 188 "location": "query", |
| 189 "type": "boolean" |
| 190 }, |
158 "pageSize": { | 191 "pageSize": { |
159 "description": "Requested page size. Server may retu
rn fewer jobs than requested.\nIf unspecified, server will pick an appropriate d
efault.", | 192 "description": "Requested page size. Server may retu
rn fewer jobs than requested.\nIf unspecified, server will pick an appropriate d
efault.", |
160 "format": "int32", | 193 "format": "int32", |
161 "location": "query", | 194 "location": "query", |
162 "type": "integer" | 195 "type": "integer" |
163 }, | 196 }, |
164 "onBehalfOfContentOwner": { | 197 "onBehalfOfContentOwner": { |
165 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", | 198 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", |
166 "location": "query", | 199 "location": "query", |
167 "type": "string" | |
168 }, | |
169 "pageToken": { | |
170 "description": "A token identifying a page of result
s the server should return. Typically,\nthis is the value of\nListReportTypesRes
ponse.next_page_token\nreturned in response to the previous call to the `ListJob
s` method.", | |
171 "location": "query", | |
172 "type": "string" | |
173 }, | |
174 "includeSystemManaged": { | |
175 "description": "If set to true, also system-managed
jobs will be returned; otherwise only\nuser-created jobs will be returned. Syste
m-managed jobs can neither be\nmodified nor deleted.", | |
176 "location": "query", | |
177 "type": "boolean" | |
178 } | |
179 }, | |
180 "path": "v1/jobs", | |
181 "response": { | |
182 "$ref": "ListJobsResponse" | |
183 }, | |
184 "scopes": [ | |
185 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", | |
186 "https://www.googleapis.com/auth/yt-analytics.readonly" | |
187 ] | |
188 }, | |
189 "get": { | |
190 "description": "Gets a job.", | |
191 "httpMethod": "GET", | |
192 "id": "youtubereporting.jobs.get", | |
193 "parameterOrder": [ | |
194 "jobId" | |
195 ], | |
196 "parameters": { | |
197 "jobId": { | |
198 "description": "The ID of the job to retrieve.", | |
199 "location": "path", | |
200 "required": true, | |
201 "type": "string" | |
202 }, | |
203 "onBehalfOfContentOwner": { | |
204 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", | |
205 "location": "query", | |
206 "type": "string" | |
207 } | |
208 }, | |
209 "path": "v1/jobs/{jobId}", | |
210 "response": { | |
211 "$ref": "Job" | |
212 }, | |
213 "scopes": [ | |
214 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", | |
215 "https://www.googleapis.com/auth/yt-analytics.readonly" | |
216 ] | |
217 }, | |
218 "create": { | |
219 "description": "Creates a job and returns it.", | |
220 "httpMethod": "POST", | |
221 "id": "youtubereporting.jobs.create", | |
222 "parameterOrder": [], | |
223 "parameters": { | |
224 "onBehalfOfContentOwner": { | |
225 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", | |
226 "location": "query", | |
227 "type": "string" | 200 "type": "string" |
228 } | 201 } |
229 }, | 202 }, |
230 "path": "v1/jobs", | 203 "path": "v1/jobs", |
231 "request": { | |
232 "$ref": "Job" | |
233 }, | |
234 "response": { | 204 "response": { |
235 "$ref": "Job" | 205 "$ref": "ListJobsResponse" |
236 }, | 206 }, |
237 "scopes": [ | 207 "scopes": [ |
238 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", | 208 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", |
239 "https://www.googleapis.com/auth/yt-analytics.readonly" | 209 "https://www.googleapis.com/auth/yt-analytics.readonly" |
240 ] | 210 ] |
241 }, | 211 }, |
242 "delete": { | 212 "get": { |
243 "description": "Deletes a job.", | 213 "description": "Gets a job.", |
244 "httpMethod": "DELETE", | 214 "httpMethod": "GET", |
245 "id": "youtubereporting.jobs.delete", | 215 "id": "youtubereporting.jobs.get", |
246 "parameterOrder": [ | 216 "parameterOrder": [ |
247 "jobId" | 217 "jobId" |
248 ], | 218 ], |
249 "parameters": { | 219 "parameters": { |
250 "jobId": { | 220 "jobId": { |
251 "description": "The ID of the job to delete.", | 221 "description": "The ID of the job to retrieve.", |
252 "location": "path", | 222 "location": "path", |
253 "required": true, | 223 "required": true, |
254 "type": "string" | 224 "type": "string" |
255 }, | 225 }, |
256 "onBehalfOfContentOwner": { | 226 "onBehalfOfContentOwner": { |
257 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", | 227 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", |
258 "location": "query", | 228 "location": "query", |
259 "type": "string" | 229 "type": "string" |
260 } | 230 } |
261 }, | 231 }, |
262 "path": "v1/jobs/{jobId}", | 232 "path": "v1/jobs/{jobId}", |
263 "response": { | 233 "response": { |
264 "$ref": "Empty" | 234 "$ref": "Job" |
265 }, | 235 }, |
266 "scopes": [ | 236 "scopes": [ |
267 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", | 237 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", |
268 "https://www.googleapis.com/auth/yt-analytics.readonly" | 238 "https://www.googleapis.com/auth/yt-analytics.readonly" |
269 ] | 239 ] |
270 } | 240 } |
271 }, | 241 }, |
272 "resources": { | 242 "resources": { |
273 "reports": { | 243 "reports": { |
274 "methods": { | 244 "methods": { |
275 "list": { | 245 "list": { |
276 "description": "Lists reports created by a specific
job.\nReturns NOT_FOUND if the job does not exist.", | 246 "description": "Lists reports created by a specific
job.\nReturns NOT_FOUND if the job does not exist.", |
277 "httpMethod": "GET", | 247 "httpMethod": "GET", |
278 "id": "youtubereporting.jobs.reports.list", | 248 "id": "youtubereporting.jobs.reports.list", |
279 "parameterOrder": [ | 249 "parameterOrder": [ |
280 "jobId" | 250 "jobId" |
281 ], | 251 ], |
282 "parameters": { | 252 "parameters": { |
| 253 "onBehalfOfContentOwner": { |
| 254 "description": "The content owner's external
ID on which behalf the user is acting on. If\nnot set, the user is acting for h
imself (his own channel).", |
| 255 "location": "query", |
| 256 "type": "string" |
| 257 }, |
283 "startTimeBefore": { | 258 "startTimeBefore": { |
284 "description": "If set, only reports whose s
tart time is smaller than the specified\ndate/time are returned.", | 259 "description": "If set, only reports whose s
tart time is smaller than the specified\ndate/time are returned.", |
285 "format": "google-datetime", | 260 "format": "google-datetime", |
286 "location": "query", | 261 "location": "query", |
287 "type": "string" | 262 "type": "string" |
288 }, | 263 }, |
289 "jobId": { | 264 "jobId": { |
290 "description": "The ID of the job.", | 265 "description": "The ID of the job.", |
291 "location": "path", | 266 "location": "path", |
292 "required": true, | 267 "required": true, |
(...skipping 14 matching lines...) Expand all Loading... |
307 "pageToken": { | 282 "pageToken": { |
308 "description": "A token identifying a page o
f results the server should return. Typically,\nthis is the value of\nListReport
sResponse.next_page_token\nreturned in response to the previous call to the `Lis
tReports` method.", | 283 "description": "A token identifying a page o
f results the server should return. Typically,\nthis is the value of\nListReport
sResponse.next_page_token\nreturned in response to the previous call to the `Lis
tReports` method.", |
309 "location": "query", | 284 "location": "query", |
310 "type": "string" | 285 "type": "string" |
311 }, | 286 }, |
312 "pageSize": { | 287 "pageSize": { |
313 "description": "Requested page size. Server
may return fewer report types than requested.\nIf unspecified, server will pick
an appropriate default.", | 288 "description": "Requested page size. Server
may return fewer report types than requested.\nIf unspecified, server will pick
an appropriate default.", |
314 "format": "int32", | 289 "format": "int32", |
315 "location": "query", | 290 "location": "query", |
316 "type": "integer" | 291 "type": "integer" |
317 }, | |
318 "onBehalfOfContentOwner": { | |
319 "description": "The content owner's external
ID on which behalf the user is acting on. If\nnot set, the user is acting for h
imself (his own channel).", | |
320 "location": "query", | |
321 "type": "string" | |
322 } | 292 } |
323 }, | 293 }, |
324 "path": "v1/jobs/{jobId}/reports", | 294 "path": "v1/jobs/{jobId}/reports", |
325 "response": { | 295 "response": { |
326 "$ref": "ListReportsResponse" | 296 "$ref": "ListReportsResponse" |
327 }, | 297 }, |
328 "scopes": [ | 298 "scopes": [ |
329 "https://www.googleapis.com/auth/yt-analytics-mo
netary.readonly", | 299 "https://www.googleapis.com/auth/yt-analytics-mo
netary.readonly", |
330 "https://www.googleapis.com/auth/yt-analytics.re
adonly" | 300 "https://www.googleapis.com/auth/yt-analytics.re
adonly" |
331 ] | 301 ] |
332 }, | 302 }, |
333 "get": { | 303 "get": { |
334 "description": "Gets the metadata of a specific repo
rt.", | 304 "description": "Gets the metadata of a specific repo
rt.", |
335 "httpMethod": "GET", | 305 "httpMethod": "GET", |
336 "id": "youtubereporting.jobs.reports.get", | 306 "id": "youtubereporting.jobs.reports.get", |
337 "parameterOrder": [ | 307 "parameterOrder": [ |
338 "jobId", | 308 "jobId", |
339 "reportId" | 309 "reportId" |
340 ], | 310 ], |
341 "parameters": { | 311 "parameters": { |
| 312 "onBehalfOfContentOwner": { |
| 313 "description": "The content owner's external
ID on which behalf the user is acting on. If\nnot set, the user is acting for h
imself (his own channel).", |
| 314 "location": "query", |
| 315 "type": "string" |
| 316 }, |
342 "reportId": { | 317 "reportId": { |
343 "description": "The ID of the report to retr
ieve.", | 318 "description": "The ID of the report to retr
ieve.", |
344 "location": "path", | 319 "location": "path", |
345 "required": true, | 320 "required": true, |
346 "type": "string" | 321 "type": "string" |
347 }, | 322 }, |
348 "jobId": { | 323 "jobId": { |
349 "description": "The ID of the job.", | 324 "description": "The ID of the job.", |
350 "location": "path", | 325 "location": "path", |
351 "required": true, | 326 "required": true, |
352 "type": "string" | 327 "type": "string" |
353 }, | |
354 "onBehalfOfContentOwner": { | |
355 "description": "The content owner's external
ID on which behalf the user is acting on. If\nnot set, the user is acting for h
imself (his own channel).", | |
356 "location": "query", | |
357 "type": "string" | |
358 } | 328 } |
359 }, | 329 }, |
360 "path": "v1/jobs/{jobId}/reports/{reportId}", | 330 "path": "v1/jobs/{jobId}/reports/{reportId}", |
361 "response": { | 331 "response": { |
362 "$ref": "Report" | 332 "$ref": "Report" |
363 }, | 333 }, |
364 "scopes": [ | 334 "scopes": [ |
365 "https://www.googleapis.com/auth/yt-analytics-mo
netary.readonly", | 335 "https://www.googleapis.com/auth/yt-analytics-mo
netary.readonly", |
366 "https://www.googleapis.com/auth/yt-analytics.re
adonly" | 336 "https://www.googleapis.com/auth/yt-analytics.re
adonly" |
367 ] | 337 ] |
368 } | 338 } |
369 } | 339 } |
370 } | 340 } |
371 } | 341 } |
372 }, | 342 }, |
373 "reportTypes": { | 343 "reportTypes": { |
374 "methods": { | 344 "methods": { |
375 "list": { | 345 "list": { |
376 "description": "Lists report types.", | 346 "description": "Lists report types.", |
377 "httpMethod": "GET", | 347 "httpMethod": "GET", |
378 "id": "youtubereporting.reportTypes.list", | 348 "id": "youtubereporting.reportTypes.list", |
379 "parameterOrder": [], | 349 "parameterOrder": [], |
380 "parameters": { | 350 "parameters": { |
| 351 "onBehalfOfContentOwner": { |
| 352 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", |
| 353 "location": "query", |
| 354 "type": "string" |
| 355 }, |
381 "pageToken": { | 356 "pageToken": { |
382 "description": "A token identifying a page of result
s the server should return. Typically,\nthis is the value of\nListReportTypesRes
ponse.next_page_token\nreturned in response to the previous call to the `ListRep
ortTypes` method.", | 357 "description": "A token identifying a page of result
s the server should return. Typically,\nthis is the value of\nListReportTypesRes
ponse.next_page_token\nreturned in response to the previous call to the `ListRep
ortTypes` method.", |
383 "location": "query", | 358 "location": "query", |
384 "type": "string" | 359 "type": "string" |
385 }, | 360 }, |
386 "includeSystemManaged": { | 361 "includeSystemManaged": { |
387 "description": "If set to true, also system-managed
report types will be returned;\notherwise only the report types that can be used
to create new reporting\njobs will be returned.", | 362 "description": "If set to true, also system-managed
report types will be returned;\notherwise only the report types that can be used
to create new reporting\njobs will be returned.", |
388 "location": "query", | 363 "location": "query", |
389 "type": "boolean" | 364 "type": "boolean" |
390 }, | 365 }, |
391 "pageSize": { | 366 "pageSize": { |
392 "description": "Requested page size. Server may retu
rn fewer report types than requested.\nIf unspecified, server will pick an appro
priate default.", | 367 "description": "Requested page size. Server may retu
rn fewer report types than requested.\nIf unspecified, server will pick an appro
priate default.", |
393 "format": "int32", | 368 "format": "int32", |
394 "location": "query", | 369 "location": "query", |
395 "type": "integer" | 370 "type": "integer" |
396 }, | |
397 "onBehalfOfContentOwner": { | |
398 "description": "The content owner's external ID on w
hich behalf the user is acting on. If\nnot set, the user is acting for himself (
his own channel).", | |
399 "location": "query", | |
400 "type": "string" | |
401 } | 371 } |
402 }, | 372 }, |
403 "path": "v1/reportTypes", | 373 "path": "v1/reportTypes", |
404 "response": { | 374 "response": { |
405 "$ref": "ListReportTypesResponse" | 375 "$ref": "ListReportTypesResponse" |
406 }, | 376 }, |
407 "scopes": [ | 377 "scopes": [ |
408 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", | 378 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", |
409 "https://www.googleapis.com/auth/yt-analytics.readonly" | 379 "https://www.googleapis.com/auth/yt-analytics.readonly" |
410 ] | 380 ] |
411 } | 381 } |
412 } | 382 } |
| 383 }, |
| 384 "media": { |
| 385 "methods": { |
| 386 "download": { |
| 387 "description": "Method for media download. Download is suppo
rted\non the URI `/v1/media/{+name}?alt=media`.", |
| 388 "httpMethod": "GET", |
| 389 "id": "youtubereporting.media.download", |
| 390 "parameterOrder": [ |
| 391 "resourceName" |
| 392 ], |
| 393 "parameters": { |
| 394 "resourceName": { |
| 395 "description": "Name of the media that is being down
loaded. See\nReadRequest.resource_name.", |
| 396 "location": "path", |
| 397 "pattern": "^.+$", |
| 398 "required": true, |
| 399 "type": "string" |
| 400 } |
| 401 }, |
| 402 "path": "v1/media/{+resourceName}", |
| 403 "response": { |
| 404 "$ref": "Media" |
| 405 }, |
| 406 "scopes": [ |
| 407 "https://www.googleapis.com/auth/yt-analytics-monetary.r
eadonly", |
| 408 "https://www.googleapis.com/auth/yt-analytics.readonly" |
| 409 ], |
| 410 "supportsMediaDownload": true |
| 411 } |
| 412 } |
413 } | 413 } |
414 }, | 414 }, |
415 "revision": "20170209", | 415 "revision": "20170302", |
416 "rootUrl": "https://youtubereporting.googleapis.com/", | 416 "rootUrl": "https://youtubereporting.googleapis.com/", |
417 "schemas": { | 417 "schemas": { |
418 "Job": { | |
419 "description": "A job creating reports of a specific type.", | |
420 "id": "Job", | |
421 "properties": { | |
422 "createTime": { | |
423 "description": "The creation date/time of the job.", | |
424 "format": "google-datetime", | |
425 "type": "string" | |
426 }, | |
427 "expireTime": { | |
428 "description": "The date/time when this job will expire/expi
red. After a job expired, no\nnew reports are generated.", | |
429 "format": "google-datetime", | |
430 "type": "string" | |
431 }, | |
432 "reportTypeId": { | |
433 "description": "The type of reports this job creates. Corres
ponds to the ID of a\nReportType.", | |
434 "type": "string" | |
435 }, | |
436 "name": { | |
437 "description": "The name of the job (max. 100 characters).", | |
438 "type": "string" | |
439 }, | |
440 "systemManaged": { | |
441 "description": "True if this a system-managed job that canno
t be modified by the user;\notherwise false.", | |
442 "type": "boolean" | |
443 }, | |
444 "id": { | |
445 "description": "The server-generated ID of the job (max. 40
characters).", | |
446 "type": "string" | |
447 } | |
448 }, | |
449 "type": "object" | |
450 }, | |
451 "ListReportsResponse": { | |
452 "description": "Response message for ReportingService.ListReports.", | |
453 "id": "ListReportsResponse", | |
454 "properties": { | |
455 "nextPageToken": { | |
456 "description": "A token to retrieve next page of results.\nP
ass this value in the\nListReportsRequest.page_token\nfield in the subsequent ca
ll to `ListReports` method to retrieve the next\npage of results.", | |
457 "type": "string" | |
458 }, | |
459 "reports": { | |
460 "description": "The list of report types.", | |
461 "items": { | |
462 "$ref": "Report" | |
463 }, | |
464 "type": "array" | |
465 } | |
466 }, | |
467 "type": "object" | |
468 }, | |
469 "Media": { | 418 "Media": { |
470 "description": "Media resource.", | 419 "description": "Media resource.", |
471 "id": "Media", | 420 "id": "Media", |
472 "properties": { | 421 "properties": { |
473 "resourceName": { | 422 "resourceName": { |
474 "description": "Name of the media resource.", | 423 "description": "Name of the media resource.", |
475 "type": "string" | 424 "type": "string" |
476 } | 425 } |
477 }, | 426 }, |
| 427 "type": "object" |
| 428 }, |
| 429 "ReportType": { |
| 430 "description": "A report type.", |
| 431 "id": "ReportType", |
| 432 "properties": { |
| 433 "id": { |
| 434 "description": "The ID of the report type (max. 100 characte
rs).", |
| 435 "type": "string" |
| 436 }, |
| 437 "systemManaged": { |
| 438 "description": "True if this a system-managed report type; o
therwise false. Reporting jobs\nfor system-managed report types are created auto
matically and can thus not\nbe used in the `CreateJob` method.", |
| 439 "type": "boolean" |
| 440 }, |
| 441 "deprecateTime": { |
| 442 "description": "The date/time when this report type was/will
be deprecated.", |
| 443 "format": "google-datetime", |
| 444 "type": "string" |
| 445 }, |
| 446 "name": { |
| 447 "description": "The name of the report type (max. 100 charac
ters).", |
| 448 "type": "string" |
| 449 } |
| 450 }, |
| 451 "type": "object" |
| 452 }, |
| 453 "ListReportTypesResponse": { |
| 454 "description": "Response message for ReportingService.ListReportType
s.", |
| 455 "id": "ListReportTypesResponse", |
| 456 "properties": { |
| 457 "reportTypes": { |
| 458 "description": "The list of report types.", |
| 459 "items": { |
| 460 "$ref": "ReportType" |
| 461 }, |
| 462 "type": "array" |
| 463 }, |
| 464 "nextPageToken": { |
| 465 "description": "A token to retrieve next page of results.\nP
ass this value in the\nListReportTypesRequest.page_token\nfield in the subsequen
t call to `ListReportTypes` method to retrieve the next\npage of results.", |
| 466 "type": "string" |
| 467 } |
| 468 }, |
478 "type": "object" | 469 "type": "object" |
479 }, | 470 }, |
480 "Report": { | 471 "Report": { |
481 "description": "A report's metadata including the URL from which the
report itself can be\ndownloaded.", | 472 "description": "A report's metadata including the URL from which the
report itself can be\ndownloaded.", |
482 "id": "Report", | 473 "id": "Report", |
483 "properties": { | 474 "properties": { |
| 475 "id": { |
| 476 "description": "The server-generated ID of the report.", |
| 477 "type": "string" |
| 478 }, |
484 "jobExpireTime": { | 479 "jobExpireTime": { |
485 "description": "The date/time when the job this report belon
gs to will expire/expired.", | 480 "description": "The date/time when the job this report belon
gs to will expire/expired.", |
486 "format": "google-datetime", | 481 "format": "google-datetime", |
487 "type": "string" | 482 "type": "string" |
488 }, | 483 }, |
489 "endTime": { | 484 "endTime": { |
490 "description": "The end of the time period that the report i
nstance covers. The value is\nexclusive.", | 485 "description": "The end of the time period that the report i
nstance covers. The value is\nexclusive.", |
491 "format": "google-datetime", | 486 "format": "google-datetime", |
492 "type": "string" | 487 "type": "string" |
493 }, | 488 }, |
494 "downloadUrl": { | 489 "downloadUrl": { |
495 "description": "The URL from which the report can be downloa
ded (max. 1000 characters).", | 490 "description": "The URL from which the report can be downloa
ded (max. 1000 characters).", |
496 "type": "string" | 491 "type": "string" |
497 }, | 492 }, |
498 "startTime": { | 493 "startTime": { |
499 "description": "The start of the time period that the report
instance covers. The value is\ninclusive.", | 494 "description": "The start of the time period that the report
instance covers. The value is\ninclusive.", |
500 "format": "google-datetime", | 495 "format": "google-datetime", |
501 "type": "string" | 496 "type": "string" |
502 }, | 497 }, |
503 "createTime": { | 498 "createTime": { |
504 "description": "The date/time when this report was created."
, | 499 "description": "The date/time when this report was created."
, |
505 "format": "google-datetime", | 500 "format": "google-datetime", |
506 "type": "string" | 501 "type": "string" |
507 }, | 502 }, |
508 "jobId": { | 503 "jobId": { |
509 "description": "The ID of the job that created this report."
, | 504 "description": "The ID of the job that created this report."
, |
510 "type": "string" | 505 "type": "string" |
511 }, | |
512 "id": { | |
513 "description": "The server-generated ID of the report.", | |
514 "type": "string" | |
515 } | 506 } |
516 }, | 507 }, |
517 "type": "object" | 508 "type": "object" |
518 }, | 509 }, |
519 "Empty": { | 510 "Empty": { |
520 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", | 511 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
521 "id": "Empty", | 512 "id": "Empty", |
522 "properties": {}, | 513 "properties": {}, |
523 "type": "object" | 514 "type": "object" |
524 }, | 515 }, |
525 "ListReportTypesResponse": { | |
526 "description": "Response message for ReportingService.ListReportType
s.", | |
527 "id": "ListReportTypesResponse", | |
528 "properties": { | |
529 "reportTypes": { | |
530 "description": "The list of report types.", | |
531 "items": { | |
532 "$ref": "ReportType" | |
533 }, | |
534 "type": "array" | |
535 }, | |
536 "nextPageToken": { | |
537 "description": "A token to retrieve next page of results.\nP
ass this value in the\nListReportTypesRequest.page_token\nfield in the subsequen
t call to `ListReportTypes` method to retrieve the next\npage of results.", | |
538 "type": "string" | |
539 } | |
540 }, | |
541 "type": "object" | |
542 }, | |
543 "ReportType": { | |
544 "description": "A report type.", | |
545 "id": "ReportType", | |
546 "properties": { | |
547 "deprecateTime": { | |
548 "description": "The date/time when this report type was/will
be deprecated.", | |
549 "format": "google-datetime", | |
550 "type": "string" | |
551 }, | |
552 "name": { | |
553 "description": "The name of the report type (max. 100 charac
ters).", | |
554 "type": "string" | |
555 }, | |
556 "id": { | |
557 "description": "The ID of the report type (max. 100 characte
rs).", | |
558 "type": "string" | |
559 }, | |
560 "systemManaged": { | |
561 "description": "True if this a system-managed report type; o
therwise false. Reporting jobs\nfor system-managed report types are created auto
matically and can thus not\nbe used in the `CreateJob` method.", | |
562 "type": "boolean" | |
563 } | |
564 }, | |
565 "type": "object" | |
566 }, | |
567 "ListJobsResponse": { | 516 "ListJobsResponse": { |
568 "description": "Response message for ReportingService.ListJobs.", | 517 "description": "Response message for ReportingService.ListJobs.", |
569 "id": "ListJobsResponse", | 518 "id": "ListJobsResponse", |
570 "properties": { | 519 "properties": { |
571 "jobs": { | 520 "jobs": { |
572 "description": "The list of jobs.", | 521 "description": "The list of jobs.", |
573 "items": { | 522 "items": { |
574 "$ref": "Job" | 523 "$ref": "Job" |
575 }, | 524 }, |
576 "type": "array" | 525 "type": "array" |
577 }, | 526 }, |
578 "nextPageToken": { | 527 "nextPageToken": { |
579 "description": "A token to retrieve next page of results.\nP
ass this value in the\nListJobsRequest.page_token\nfield in the subsequent call
to `ListJobs` method to retrieve the next\npage of results.", | 528 "description": "A token to retrieve next page of results.\nP
ass this value in the\nListJobsRequest.page_token\nfield in the subsequent call
to `ListJobs` method to retrieve the next\npage of results.", |
580 "type": "string" | 529 "type": "string" |
581 } | 530 } |
582 }, | 531 }, |
| 532 "type": "object" |
| 533 }, |
| 534 "Job": { |
| 535 "description": "A job creating reports of a specific type.", |
| 536 "id": "Job", |
| 537 "properties": { |
| 538 "createTime": { |
| 539 "description": "The creation date/time of the job.", |
| 540 "format": "google-datetime", |
| 541 "type": "string" |
| 542 }, |
| 543 "expireTime": { |
| 544 "description": "The date/time when this job will expire/expi
red. After a job expired, no\nnew reports are generated.", |
| 545 "format": "google-datetime", |
| 546 "type": "string" |
| 547 }, |
| 548 "reportTypeId": { |
| 549 "description": "The type of reports this job creates. Corres
ponds to the ID of a\nReportType.", |
| 550 "type": "string" |
| 551 }, |
| 552 "name": { |
| 553 "description": "The name of the job (max. 100 characters).", |
| 554 "type": "string" |
| 555 }, |
| 556 "id": { |
| 557 "description": "The server-generated ID of the job (max. 40
characters).", |
| 558 "type": "string" |
| 559 }, |
| 560 "systemManaged": { |
| 561 "description": "True if this a system-managed job that canno
t be modified by the user;\notherwise false.", |
| 562 "type": "boolean" |
| 563 } |
| 564 }, |
| 565 "type": "object" |
| 566 }, |
| 567 "ListReportsResponse": { |
| 568 "description": "Response message for ReportingService.ListReports.", |
| 569 "id": "ListReportsResponse", |
| 570 "properties": { |
| 571 "reports": { |
| 572 "description": "The list of report types.", |
| 573 "items": { |
| 574 "$ref": "Report" |
| 575 }, |
| 576 "type": "array" |
| 577 }, |
| 578 "nextPageToken": { |
| 579 "description": "A token to retrieve next page of results.\nP
ass this value in the\nListReportsRequest.page_token\nfield in the subsequent ca
ll to `ListReports` method to retrieve the next\npage of results.", |
| 580 "type": "string" |
| 581 } |
| 582 }, |
583 "type": "object" | 583 "type": "object" |
584 } | 584 } |
585 }, | 585 }, |
586 "servicePath": "", | 586 "servicePath": "", |
587 "title": "YouTube Reporting API", | 587 "title": "YouTube Reporting API", |
588 "version": "v1" | 588 "version": "v1" |
589 } | 589 } |
OLD | NEW |