| 1 |
<?php |
| 2 |
/* |
| 3 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 |
* use this file except in compliance with the License. You may obtain a copy of |
| 5 |
* the License at |
| 6 |
* |
| 7 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
* |
| 9 |
* Unless required by applicable law or agreed to in writing, software |
| 10 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 |
* License for the specific language governing permissions and limitations under |
| 13 |
* the License. |
| 14 |
*/ |
| 15 |
|
| 16 |
/** |
| 17 |
* Service definition for YouTubeAnalytics (v1). |
| 18 |
* |
| 19 |
* <p> |
| 20 |
* Retrieve your YouTube Analytics reports.</p> |
| 21 |
* |
| 22 |
* <p> |
| 23 |
* For more information about this service, see the API |
| 24 |
* <a href="http://developers.google.com/youtube/analytics/" target="_blank">Documentation</a> |
| 25 |
* </p> |
| 26 |
* |
| 27 |
* @author Google, Inc. |
| 28 |
*/ |
| 29 |
class Google_Service_YouTubeAnalytics extends Google_Service |
| 30 |
{ |
| 31 |
/** Manage your YouTube account. */ |
| 32 |
const YOUTUBE = |
| 33 |
"https://www.googleapis.com/auth/youtube"; |
| 34 |
/** View your YouTube account. */ |
| 35 |
const YOUTUBE_READONLY = |
| 36 |
"https://www.googleapis.com/auth/youtube.readonly"; |
| 37 |
/** View and manage your assets and associated content on YouTube. */ |
| 38 |
const YOUTUBEPARTNER = |
| 39 |
"https://www.googleapis.com/auth/youtubepartner"; |
| 40 |
/** View monetary and non-monetary YouTube Analytics reports for your YouTube content. */ |
| 41 |
const YT_ANALYTICS_MONETARY_READONLY = |
| 42 |
"https://www.googleapis.com/auth/yt-analytics-monetary.readonly"; |
| 43 |
/** View YouTube Analytics reports for your YouTube content. */ |
| 44 |
const YT_ANALYTICS_READONLY = |
| 45 |
"https://www.googleapis.com/auth/yt-analytics.readonly"; |
| 46 |
|
| 47 |
public $batchReportDefinitions; |
| 48 |
public $batchReports; |
| 49 |
public $groupItems; |
| 50 |
public $groups; |
| 51 |
public $reports; |
| 52 |
|
| 53 |
|
| 54 |
/** |
| 55 |
* Constructs the internal representation of the YouTubeAnalytics service. |
| 56 |
* |
| 57 |
* @param Google_Client $client |
| 58 |
*/ |
| 59 |
public function __construct(Google_Client $client) |
| 60 |
{ |
| 61 |
parent::__construct($client); |
| 62 |
$this->rootUrl = 'https://www.googleapis.com/'; |
| 63 |
$this->servicePath = 'youtube/analytics/v1/'; |
| 64 |
$this->version = 'v1'; |
| 65 |
$this->serviceName = 'youtubeAnalytics'; |
| 66 |
|
| 67 |
$this->batchReportDefinitions = new Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource( |
| 68 |
$this, |
| 69 |
$this->serviceName, |
| 70 |
'batchReportDefinitions', |
| 71 |
array( |
| 72 |
'methods' => array( |
| 73 |
'list' => array( |
| 74 |
'path' => 'batchReportDefinitions', |
| 75 |
'httpMethod' => 'GET', |
| 76 |
'parameters' => array( |
| 77 |
'onBehalfOfContentOwner' => array( |
| 78 |
'location' => 'query', |
| 79 |
'type' => 'string', |
| 80 |
'required' => true, |
| 81 |
), |
| 82 |
), |
| 83 |
), |
| 84 |
) |
| 85 |
) |
| 86 |
); |
| 87 |
$this->batchReports = new Google_Service_YouTubeAnalytics_BatchReports_Resource( |
| 88 |
$this, |
| 89 |
$this->serviceName, |
| 90 |
'batchReports', |
| 91 |
array( |
| 92 |
'methods' => array( |
| 93 |
'list' => array( |
| 94 |
'path' => 'batchReports', |
| 95 |
'httpMethod' => 'GET', |
| 96 |
'parameters' => array( |
| 97 |
'batchReportDefinitionId' => array( |
| 98 |
'location' => 'query', |
| 99 |
'type' => 'string', |
| 100 |
'required' => true, |
| 101 |
), |
| 102 |
'onBehalfOfContentOwner' => array( |
| 103 |
'location' => 'query', |
| 104 |
'type' => 'string', |
| 105 |
'required' => true, |
| 106 |
), |
| 107 |
), |
| 108 |
), |
| 109 |
) |
| 110 |
) |
| 111 |
); |
| 112 |
$this->groupItems = new Google_Service_YouTubeAnalytics_GroupItems_Resource( |
| 113 |
$this, |
| 114 |
$this->serviceName, |
| 115 |
'groupItems', |
| 116 |
array( |
| 117 |
'methods' => array( |
| 118 |
'delete' => array( |
| 119 |
'path' => 'groupItems', |
| 120 |
'httpMethod' => 'DELETE', |
| 121 |
'parameters' => array( |
| 122 |
'id' => array( |
| 123 |
'location' => 'query', |
| 124 |
'type' => 'string', |
| 125 |
'required' => true, |
| 126 |
), |
| 127 |
'onBehalfOfContentOwner' => array( |
| 128 |
'location' => 'query', |
| 129 |
'type' => 'string', |
| 130 |
), |
| 131 |
), |
| 132 |
),'insert' => array( |
| 133 |
'path' => 'groupItems', |
| 134 |
'httpMethod' => 'POST', |
| 135 |
'parameters' => array( |
| 136 |
'onBehalfOfContentOwner' => array( |
| 137 |
'location' => 'query', |
| 138 |
'type' => 'string', |
| 139 |
), |
| 140 |
), |
| 141 |
),'list' => array( |
| 142 |
'path' => 'groupItems', |
| 143 |
'httpMethod' => 'GET', |
| 144 |
'parameters' => array( |
| 145 |
'groupId' => array( |
| 146 |
'location' => 'query', |
| 147 |
'type' => 'string', |
| 148 |
'required' => true, |
| 149 |
), |
| 150 |
'onBehalfOfContentOwner' => array( |
| 151 |
'location' => 'query', |
| 152 |
'type' => 'string', |
| 153 |
), |
| 154 |
), |
| 155 |
), |
| 156 |
) |
| 157 |
) |
| 158 |
); |
| 159 |
$this->groups = new Google_Service_YouTubeAnalytics_Groups_Resource( |
| 160 |
$this, |
| 161 |
$this->serviceName, |
| 162 |
'groups', |
| 163 |
array( |
| 164 |
'methods' => array( |
| 165 |
'delete' => array( |
| 166 |
'path' => 'groups', |
| 167 |
'httpMethod' => 'DELETE', |
| 168 |
'parameters' => array( |
| 169 |
'id' => array( |
| 170 |
'location' => 'query', |
| 171 |
'type' => 'string', |
| 172 |
'required' => true, |
| 173 |
), |
| 174 |
'onBehalfOfContentOwner' => array( |
| 175 |
'location' => 'query', |
| 176 |
'type' => 'string', |
| 177 |
), |
| 178 |
), |
| 179 |
),'insert' => array( |
| 180 |
'path' => 'groups', |
| 181 |
'httpMethod' => 'POST', |
| 182 |
'parameters' => array( |
| 183 |
'onBehalfOfContentOwner' => array( |
| 184 |
'location' => 'query', |
| 185 |
'type' => 'string', |
| 186 |
), |
| 187 |
), |
| 188 |
),'list' => array( |
| 189 |
'path' => 'groups', |
| 190 |
'httpMethod' => 'GET', |
| 191 |
'parameters' => array( |
| 192 |
'id' => array( |
| 193 |
'location' => 'query', |
| 194 |
'type' => 'string', |
| 195 |
), |
| 196 |
'mine' => array( |
| 197 |
'location' => 'query', |
| 198 |
'type' => 'boolean', |
| 199 |
), |
| 200 |
'onBehalfOfContentOwner' => array( |
| 201 |
'location' => 'query', |
| 202 |
'type' => 'string', |
| 203 |
), |
| 204 |
'pageToken' => array( |
| 205 |
'location' => 'query', |
| 206 |
'type' => 'string', |
| 207 |
), |
| 208 |
), |
| 209 |
),'update' => array( |
| 210 |
'path' => 'groups', |
| 211 |
'httpMethod' => 'PUT', |
| 212 |
'parameters' => array( |
| 213 |
'onBehalfOfContentOwner' => array( |
| 214 |
'location' => 'query', |
| 215 |
'type' => 'string', |
| 216 |
), |
| 217 |
), |
| 218 |
), |
| 219 |
) |
| 220 |
) |
| 221 |
); |
| 222 |
$this->reports = new Google_Service_YouTubeAnalytics_Reports_Resource( |
| 223 |
$this, |
| 224 |
$this->serviceName, |
| 225 |
'reports', |
| 226 |
array( |
| 227 |
'methods' => array( |
| 228 |
'query' => array( |
| 229 |
'path' => 'reports', |
| 230 |
'httpMethod' => 'GET', |
| 231 |
'parameters' => array( |
| 232 |
'ids' => array( |
| 233 |
'location' => 'query', |
| 234 |
'type' => 'string', |
| 235 |
'required' => true, |
| 236 |
), |
| 237 |
'start-date' => array( |
| 238 |
'location' => 'query', |
| 239 |
'type' => 'string', |
| 240 |
'required' => true, |
| 241 |
), |
| 242 |
'end-date' => array( |
| 243 |
'location' => 'query', |
| 244 |
'type' => 'string', |
| 245 |
'required' => true, |
| 246 |
), |
| 247 |
'metrics' => array( |
| 248 |
'location' => 'query', |
| 249 |
'type' => 'string', |
| 250 |
'required' => true, |
| 251 |
), |
| 252 |
'currency' => array( |
| 253 |
'location' => 'query', |
| 254 |
'type' => 'string', |
| 255 |
), |
| 256 |
'dimensions' => array( |
| 257 |
'location' => 'query', |
| 258 |
'type' => 'string', |
| 259 |
), |
| 260 |
'filters' => array( |
| 261 |
'location' => 'query', |
| 262 |
'type' => 'string', |
| 263 |
), |
| 264 |
'max-results' => array( |
| 265 |
'location' => 'query', |
| 266 |
'type' => 'integer', |
| 267 |
), |
| 268 |
'sort' => array( |
| 269 |
'location' => 'query', |
| 270 |
'type' => 'string', |
| 271 |
), |
| 272 |
'start-index' => array( |
| 273 |
'location' => 'query', |
| 274 |
'type' => 'integer', |
| 275 |
), |
| 276 |
), |
| 277 |
), |
| 278 |
) |
| 279 |
) |
| 280 |
); |
| 281 |
} |
| 282 |
} |
| 283 |
|
| 284 |
|
| 285 |
/** |
| 286 |
* The "batchReportDefinitions" collection of methods. |
| 287 |
* Typical usage is: |
| 288 |
* <code> |
| 289 |
* $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); |
| 290 |
* $batchReportDefinitions = $youtubeAnalyticsService->batchReportDefinitions; |
| 291 |
* </code> |
| 292 |
*/ |
| 293 |
class Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource extends Google_Service_Resource |
| 294 |
{ |
| 295 |
|
| 296 |
/** |
| 297 |
* Retrieves a list of available batch report definitions. |
| 298 |
* (batchReportDefinitions.listBatchReportDefinitions) |
| 299 |
* |
| 300 |
* @param string $onBehalfOfContentOwner The onBehalfOfContentOwner parameter |
| 301 |
* identifies the content owner that the user is acting on behalf of. |
| 302 |
* @param array $optParams Optional parameters. |
| 303 |
* @return Google_Service_YouTubeAnalytics_BatchReportDefinitionList |
| 304 |
*/ |
| 305 |
public function listBatchReportDefinitions($onBehalfOfContentOwner, $optParams = array()) |
| 306 |
{ |
| 307 |
$params = array('onBehalfOfContentOwner' => $onBehalfOfContentOwner); |
| 308 |
$params = array_merge($params, $optParams); |
| 309 |
return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_BatchReportDefinitionList"); |
| 310 |
} |
| 311 |
} |
| 312 |
|
| 313 |
/** |
| 314 |
* The "batchReports" collection of methods. |
| 315 |
* Typical usage is: |
| 316 |
* <code> |
| 317 |
* $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); |
| 318 |
* $batchReports = $youtubeAnalyticsService->batchReports; |
| 319 |
* </code> |
| 320 |
*/ |
| 321 |
class Google_Service_YouTubeAnalytics_BatchReports_Resource extends Google_Service_Resource |
| 322 |
{ |
| 323 |
|
| 324 |
/** |
| 325 |
* Retrieves a list of processed batch reports. (batchReports.listBatchReports) |
| 326 |
* |
| 327 |
* @param string $batchReportDefinitionId The batchReportDefinitionId parameter |
| 328 |
* specifies the ID of the batch reportort definition for which you are |
| 329 |
* retrieving reports. |
| 330 |
* @param string $onBehalfOfContentOwner The onBehalfOfContentOwner parameter |
| 331 |
* identifies the content owner that the user is acting on behalf of. |
| 332 |
* @param array $optParams Optional parameters. |
| 333 |
* @return Google_Service_YouTubeAnalytics_BatchReportList |
| 334 |
*/ |
| 335 |
public function listBatchReports($batchReportDefinitionId, $onBehalfOfContentOwner, $optParams = array()) |
| 336 |
{ |
| 337 |
$params = array('batchReportDefinitionId' => $batchReportDefinitionId, 'onBehalfOfContentOwner' => $onBehalfOfContentOwner); |
| 338 |
$params = array_merge($params, $optParams); |
| 339 |
return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_BatchReportList"); |
| 340 |
} |
| 341 |
} |
| 342 |
|
| 343 |
/** |
| 344 |
* The "groupItems" collection of methods. |
| 345 |
* Typical usage is: |
| 346 |
* <code> |
| 347 |
* $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); |
| 348 |
* $groupItems = $youtubeAnalyticsService->groupItems; |
| 349 |
* </code> |
| 350 |
*/ |
| 351 |
class Google_Service_YouTubeAnalytics_GroupItems_Resource extends Google_Service_Resource |
| 352 |
{ |
| 353 |
|
| 354 |
/** |
| 355 |
* Removes an item from a group. (groupItems.delete) |
| 356 |
* |
| 357 |
* @param string $id The id parameter specifies the YouTube group item ID for |
| 358 |
* the group that is being deleted. |
| 359 |
* @param array $optParams Optional parameters. |
| 360 |
* |
| 361 |
* @opt_param string onBehalfOfContentOwner Note: This parameter is intended |
| 362 |
* exclusively for YouTube content partners. |
| 363 |
* |
| 364 |
* The onBehalfOfContentOwner parameter indicates that the request's |
| 365 |
* authorization credentials identify a YouTube CMS user who is acting on behalf |
| 366 |
* of the content owner specified in the parameter value. This parameter is |
| 367 |
* intended for YouTube content partners that own and manage many different |
| 368 |
* YouTube channels. It allows content owners to authenticate once and get |
| 369 |
* access to all their video and channel data, without having to provide |
| 370 |
* authentication credentials for each individual channel. The CMS account that |
| 371 |
* the user authenticates with must be linked to the specified YouTube content |
| 372 |
* owner. |
| 373 |
*/ |
| 374 |
public function delete($id, $optParams = array()) |
| 375 |
{ |
| 376 |
$params = array('id' => $id); |
| 377 |
$params = array_merge($params, $optParams); |
| 378 |
return $this->call('delete', array($params)); |
| 379 |
} |
| 380 |
|
| 381 |
/** |
| 382 |
* Creates a group item. (groupItems.insert) |
| 383 |
* |
| 384 |
* @param Google_GroupItem $postBody |
| 385 |
* @param array $optParams Optional parameters. |
| 386 |
* |
| 387 |
* @opt_param string onBehalfOfContentOwner Note: This parameter is intended |
| 388 |
* exclusively for YouTube content partners. |
| 389 |
* |
| 390 |
* The onBehalfOfContentOwner parameter indicates that the request's |
| 391 |
* authorization credentials identify a YouTube CMS user who is acting on behalf |
| 392 |
* of the content owner specified in the parameter value. This parameter is |
| 393 |
* intended for YouTube content partners that own and manage many different |
| 394 |
* YouTube channels. It allows content owners to authenticate once and get |
| 395 |
* access to all their video and channel data, without having to provide |
| 396 |
* authentication credentials for each individual channel. The CMS account that |
| 397 |
* the user authenticates with must be linked to the specified YouTube content |
| 398 |
* owner. |
| 399 |
* @return Google_Service_YouTubeAnalytics_GroupItem |
| 400 |
*/ |
| 401 |
public function insert(Google_Service_YouTubeAnalytics_GroupItem $postBody, $optParams = array()) |
| 402 |
{ |
| 403 |
$params = array('postBody' => $postBody); |
| 404 |
$params = array_merge($params, $optParams); |
| 405 |
return $this->call('insert', array($params), "Google_Service_YouTubeAnalytics_GroupItem"); |
| 406 |
} |
| 407 |
|
| 408 |
/** |
| 409 |
* Returns a collection of group items that match the API request parameters. |
| 410 |
* (groupItems.listGroupItems) |
| 411 |
* |
| 412 |
* @param string $groupId The id parameter specifies the unique ID of the group |
| 413 |
* for which you want to retrieve group items. |
| 414 |
* @param array $optParams Optional parameters. |
| 415 |
* |
| 416 |
* @opt_param string onBehalfOfContentOwner Note: This parameter is intended |
| 417 |
* exclusively for YouTube content partners. |
| 418 |
* |
| 419 |
* The onBehalfOfContentOwner parameter indicates that the request's |
| 420 |
* authorization credentials identify a YouTube CMS user who is acting on behalf |
| 421 |
* of the content owner specified in the parameter value. This parameter is |
| 422 |
* intended for YouTube content partners that own and manage many different |
| 423 |
* YouTube channels. It allows content owners to authenticate once and get |
| 424 |
* access to all their video and channel data, without having to provide |
| 425 |
* authentication credentials for each individual channel. The CMS account that |
| 426 |
* the user authenticates with must be linked to the specified YouTube content |
| 427 |
* owner. |
| 428 |
* @return Google_Service_YouTubeAnalytics_GroupItemListResponse |
| 429 |
*/ |
| 430 |
public function listGroupItems($groupId, $optParams = array()) |
| 431 |
{ |
| 432 |
$params = array('groupId' => $groupId); |
| 433 |
$params = array_merge($params, $optParams); |
| 434 |
return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_GroupItemListResponse"); |
| 435 |
} |
| 436 |
} |
| 437 |
|
| 438 |
/** |
| 439 |
* The "groups" collection of methods. |
| 440 |
* Typical usage is: |
| 441 |
* <code> |
| 442 |
* $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); |
| 443 |
* $groups = $youtubeAnalyticsService->groups; |
| 444 |
* </code> |
| 445 |
*/ |
| 446 |
class Google_Service_YouTubeAnalytics_Groups_Resource extends Google_Service_Resource |
| 447 |
{ |
| 448 |
|
| 449 |
/** |
| 450 |
* Deletes a group. (groups.delete) |
| 451 |
* |
| 452 |
* @param string $id The id parameter specifies the YouTube group ID for the |
| 453 |
* group that is being deleted. |
| 454 |
* @param array $optParams Optional parameters. |
| 455 |
* |
| 456 |
* @opt_param string onBehalfOfContentOwner Note: This parameter is intended |
| 457 |
* exclusively for YouTube content partners. |
| 458 |
* |
| 459 |
* The onBehalfOfContentOwner parameter indicates that the request's |
| 460 |
* authorization credentials identify a YouTube CMS user who is acting on behalf |
| 461 |
* of the content owner specified in the parameter value. This parameter is |
| 462 |
* intended for YouTube content partners that own and manage many different |
| 463 |
* YouTube channels. It allows content owners to authenticate once and get |
| 464 |
* access to all their video and channel data, without having to provide |
| 465 |
* authentication credentials for each individual channel. The CMS account that |
| 466 |
* the user authenticates with must be linked to the specified YouTube content |
| 467 |
* owner. |
| 468 |
*/ |
| 469 |
public function delete($id, $optParams = array()) |
| 470 |
{ |
| 471 |
$params = array('id' => $id); |
| 472 |
$params = array_merge($params, $optParams); |
| 473 |
return $this->call('delete', array($params)); |
| 474 |
} |
| 475 |
|
| 476 |
/** |
| 477 |
* Creates a group. (groups.insert) |
| 478 |
* |
| 479 |
* @param Google_Group $postBody |
| 480 |
* @param array $optParams Optional parameters. |
| 481 |
* |
| 482 |
* @opt_param string onBehalfOfContentOwner Note: This parameter is intended |
| 483 |
* exclusively for YouTube content partners. |
| 484 |
* |
| 485 |
* The onBehalfOfContentOwner parameter indicates that the request's |
| 486 |
* authorization credentials identify a YouTube CMS user who is acting on behalf |
| 487 |
* of the content owner specified in the parameter value. This parameter is |
| 488 |
* intended for YouTube content partners that own and manage many different |
| 489 |
* YouTube channels. It allows content owners to authenticate once and get |
| 490 |
* access to all their video and channel data, without having to provide |
| 491 |
* authentication credentials for each individual channel. The CMS account that |
| 492 |
* the user authenticates with must be linked to the specified YouTube content |
| 493 |
* owner. |
| 494 |
* @return Google_Service_YouTubeAnalytics_Group |
| 495 |
*/ |
| 496 |
public function insert(Google_Service_YouTubeAnalytics_Group $postBody, $optParams = array()) |
| 497 |
{ |
| 498 |
$params = array('postBody' => $postBody); |
| 499 |
$params = array_merge($params, $optParams); |
| 500 |
return $this->call('insert', array($params), "Google_Service_YouTubeAnalytics_Group"); |
| 501 |
} |
| 502 |
|
| 503 |
/** |
| 504 |
* Returns a collection of groups that match the API request parameters. For |
| 505 |
* example, you can retrieve all groups that the authenticated user owns, or you |
| 506 |
* can retrieve one or more groups by their unique IDs. (groups.listGroups) |
| 507 |
* |
| 508 |
* @param array $optParams Optional parameters. |
| 509 |
* |
| 510 |
* @opt_param string id The id parameter specifies a comma-separated list of the |
| 511 |
* YouTube group ID(s) for the resource(s) that are being retrieved. In a group |
| 512 |
* resource, the id property specifies the group's YouTube group ID. |
| 513 |
* @opt_param bool mine Set this parameter's value to true to instruct the API |
| 514 |
* to only return groups owned by the authenticated user. |
| 515 |
* @opt_param string onBehalfOfContentOwner Note: This parameter is intended |
| 516 |
* exclusively for YouTube content partners. |
| 517 |
* |
| 518 |
* The onBehalfOfContentOwner parameter indicates that the request's |
| 519 |
* authorization credentials identify a YouTube CMS user who is acting on behalf |
| 520 |
* of the content owner specified in the parameter value. This parameter is |
| 521 |
* intended for YouTube content partners that own and manage many different |
| 522 |
* YouTube channels. It allows content owners to authenticate once and get |
| 523 |
* access to all their video and channel data, without having to provide |
| 524 |
* authentication credentials for each individual channel. The CMS account that |
| 525 |
* the user authenticates with must be linked to the specified YouTube content |
| 526 |
* owner. |
| 527 |
* @opt_param string pageToken The pageToken parameter identifies a specific |
| 528 |
* page in the result set that should be returned. In an API response, the |
| 529 |
* nextPageToken property identifies the next page that can be retrieved. |
| 530 |
* @return Google_Service_YouTubeAnalytics_GroupListResponse |
| 531 |
*/ |
| 532 |
public function listGroups($optParams = array()) |
| 533 |
{ |
| 534 |
$params = array(); |
| 535 |
$params = array_merge($params, $optParams); |
| 536 |
return $this->call('list', array($params), "Google_Service_YouTubeAnalytics_GroupListResponse"); |
| 537 |
} |
| 538 |
|
| 539 |
/** |
| 540 |
* Modifies a group. For example, you could change a group's title. |
| 541 |
* (groups.update) |
| 542 |
* |
| 543 |
* @param Google_Group $postBody |
| 544 |
* @param array $optParams Optional parameters. |
| 545 |
* |
| 546 |
* @opt_param string onBehalfOfContentOwner Note: This parameter is intended |
| 547 |
* exclusively for YouTube content partners. |
| 548 |
* |
| 549 |
* The onBehalfOfContentOwner parameter indicates that the request's |
| 550 |
* authorization credentials identify a YouTube CMS user who is acting on behalf |
| 551 |
* of the content owner specified in the parameter value. This parameter is |
| 552 |
* intended for YouTube content partners that own and manage many different |
| 553 |
* YouTube channels. It allows content owners to authenticate once and get |
| 554 |
* access to all their video and channel data, without having to provide |
| 555 |
* authentication credentials for each individual channel. The CMS account that |
| 556 |
* the user authenticates with must be linked to the specified YouTube content |
| 557 |
* owner. |
| 558 |
* @return Google_Service_YouTubeAnalytics_Group |
| 559 |
*/ |
| 560 |
public function update(Google_Service_YouTubeAnalytics_Group $postBody, $optParams = array()) |
| 561 |
{ |
| 562 |
$params = array('postBody' => $postBody); |
| 563 |
$params = array_merge($params, $optParams); |
| 564 |
return $this->call('update', array($params), "Google_Service_YouTubeAnalytics_Group"); |
| 565 |
} |
| 566 |
} |
| 567 |
|
| 568 |
/** |
| 569 |
* The "reports" collection of methods. |
| 570 |
* Typical usage is: |
| 571 |
* <code> |
| 572 |
* $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...); |
| 573 |
* $reports = $youtubeAnalyticsService->reports; |
| 574 |
* </code> |
| 575 |
*/ |
| 576 |
class Google_Service_YouTubeAnalytics_Reports_Resource extends Google_Service_Resource |
| 577 |
{ |
| 578 |
|
| 579 |
/** |
| 580 |
* Retrieve your YouTube Analytics reports. (reports.query) |
| 581 |
* |
| 582 |
* @param string $ids Identifies the YouTube channel or content owner for which |
| 583 |
* you are retrieving YouTube Analytics data. - To request data for a YouTube |
| 584 |
* user, set the ids parameter value to channel==CHANNEL_ID, where CHANNEL_ID |
| 585 |
* specifies the unique YouTube channel ID. - To request data for a YouTube CMS |
| 586 |
* content owner, set the ids parameter value to contentOwner==OWNER_NAME, where |
| 587 |
* OWNER_NAME is the CMS name of the content owner. |
| 588 |
* @param string $startDate The start date for fetching YouTube Analytics data. |
| 589 |
* The value should be in YYYY-MM-DD format. |
| 590 |
* @param string $endDate The end date for fetching YouTube Analytics data. The |
| 591 |
* value should be in YYYY-MM-DD format. |
| 592 |
* @param string $metrics A comma-separated list of YouTube Analytics metrics, |
| 593 |
* such as views or likes,dislikes. See the Available Reports document for a |
| 594 |
* list of the reports that you can retrieve and the metrics available in each |
| 595 |
* report, and see the Metrics document for definitions of those metrics. |
| 596 |
* @param array $optParams Optional parameters. |
| 597 |
* |
| 598 |
* @opt_param string currency The currency to which financial metrics should be |
| 599 |
* converted. The default is US Dollar (USD). If the result contains no |
| 600 |
* financial metrics, this flag will be ignored. Responds with an error if the |
| 601 |
* specified currency is not recognized. |
| 602 |
* @opt_param string dimensions A comma-separated list of YouTube Analytics |
| 603 |
* dimensions, such as views or ageGroup,gender. See the Available Reports |
| 604 |
* document for a list of the reports that you can retrieve and the dimensions |
| 605 |
* used for those reports. Also see the Dimensions document for definitions of |
| 606 |
* those dimensions. |
| 607 |
* @opt_param string filters A list of filters that should be applied when |
| 608 |
* retrieving YouTube Analytics data. The Available Reports document identifies |
| 609 |
* the dimensions that can be used to filter each report, and the Dimensions |
| 610 |
* document defines those dimensions. If a request uses multiple filters, join |
| 611 |
* them together with a semicolon (;), and the returned result table will |
| 612 |
* satisfy both filters. For example, a filters parameter value of |
| 613 |
* video==dMH0bHeiRNg;country==IT restricts the result set to include data for |
| 614 |
* the given video in Italy. |
| 615 |
* @opt_param int max-results The maximum number of rows to include in the |
| 616 |
* response. |
| 617 |
* @opt_param string sort A comma-separated list of dimensions or metrics that |
| 618 |
* determine the sort order for YouTube Analytics data. By default the sort |
| 619 |
* order is ascending. The '-' prefix causes descending sort order. |
| 620 |
* @opt_param int start-index An index of the first entity to retrieve. Use this |
| 621 |
* parameter as a pagination mechanism along with the max-results parameter |
| 622 |
* (one-based, inclusive). |
| 623 |
* @return Google_Service_YouTubeAnalytics_ResultTable |
| 624 |
*/ |
| 625 |
public function query($ids, $startDate, $endDate, $metrics, $optParams = array()) |
| 626 |
{ |
| 627 |
$params = array('ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics); |
| 628 |
$params = array_merge($params, $optParams); |
| 629 |
return $this->call('query', array($params), "Google_Service_YouTubeAnalytics_ResultTable"); |
| 630 |
} |
| 631 |
} |
| 632 |
|
| 633 |
|
| 634 |
|
| 635 |
|
| 636 |
class Google_Service_YouTubeAnalytics_BatchReport extends Google_Collection |
| 637 |
{ |
| 638 |
protected $collection_key = 'outputs'; |
| 639 |
protected $internal_gapi_mappings = array( |
| 640 |
); |
| 641 |
public $id; |
| 642 |
public $kind; |
| 643 |
protected $outputsType = 'Google_Service_YouTubeAnalytics_BatchReportOutputs'; |
| 644 |
protected $outputsDataType = 'array'; |
| 645 |
public $reportId; |
| 646 |
protected $timeSpanType = 'Google_Service_YouTubeAnalytics_BatchReportTimeSpan'; |
| 647 |
protected $timeSpanDataType = ''; |
| 648 |
public $timeUpdated; |
| 649 |
|
| 650 |
|
| 651 |
public function setId($id) |
| 652 |
{ |
| 653 |
$this->id = $id; |
| 654 |
} |
| 655 |
public function getId() |
| 656 |
{ |
| 657 |
return $this->id; |
| 658 |
} |
| 659 |
public function setKind($kind) |
| 660 |
{ |
| 661 |
$this->kind = $kind; |
| 662 |
} |
| 663 |
public function getKind() |
| 664 |
{ |
| 665 |
return $this->kind; |
| 666 |
} |
| 667 |
public function setOutputs($outputs) |
| 668 |
{ |
| 669 |
$this->outputs = $outputs; |
| 670 |
} |
| 671 |
public function getOutputs() |
| 672 |
{ |
| 673 |
return $this->outputs; |
| 674 |
} |
| 675 |
public function setReportId($reportId) |
| 676 |
{ |
| 677 |
$this->reportId = $reportId; |
| 678 |
} |
| 679 |
public function getReportId() |
| 680 |
{ |
| 681 |
return $this->reportId; |
| 682 |
} |
| 683 |
public function setTimeSpan(Google_Service_YouTubeAnalytics_BatchReportTimeSpan $timeSpan) |
| 684 |
{ |
| 685 |
$this->timeSpan = $timeSpan; |
| 686 |
} |
| 687 |
public function getTimeSpan() |
| 688 |
{ |
| 689 |
return $this->timeSpan; |
| 690 |
} |
| 691 |
public function setTimeUpdated($timeUpdated) |
| 692 |
{ |
| 693 |
$this->timeUpdated = $timeUpdated; |
| 694 |
} |
| 695 |
public function getTimeUpdated() |
| 696 |
{ |
| 697 |
return $this->timeUpdated; |
| 698 |
} |
| 699 |
} |
| 700 |
|
| 701 |
class Google_Service_YouTubeAnalytics_BatchReportDefinition extends Google_Model |
| 702 |
{ |
| 703 |
protected $internal_gapi_mappings = array( |
| 704 |
); |
| 705 |
public $id; |
| 706 |
public $kind; |
| 707 |
public $name; |
| 708 |
public $status; |
| 709 |
public $type; |
| 710 |
|
| 711 |
|
| 712 |
public function setId($id) |
| 713 |
{ |
| 714 |
$this->id = $id; |
| 715 |
} |
| 716 |
public function getId() |
| 717 |
{ |
| 718 |
return $this->id; |
| 719 |
} |
| 720 |
public function setKind($kind) |
| 721 |
{ |
| 722 |
$this->kind = $kind; |
| 723 |
} |
| 724 |
public function getKind() |
| 725 |
{ |
| 726 |
return $this->kind; |
| 727 |
} |
| 728 |
public function setName($name) |
| 729 |
{ |
| 730 |
$this->name = $name; |
| 731 |
} |
| 732 |
public function getName() |
| 733 |
{ |
| 734 |
return $this->name; |
| 735 |
} |
| 736 |
public function setStatus($status) |
| 737 |
{ |
| 738 |
$this->status = $status; |
| 739 |
} |
| 740 |
public function getStatus() |
| 741 |
{ |
| 742 |
return $this->status; |
| 743 |
} |
| 744 |
public function setType($type) |
| 745 |
{ |
| 746 |
$this->type = $type; |
| 747 |
} |
| 748 |
public function getType() |
| 749 |
{ |
| 750 |
return $this->type; |
| 751 |
} |
| 752 |
} |
| 753 |
|
| 754 |
class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_Collection |
| 755 |
{ |
| 756 |
protected $collection_key = 'items'; |
| 757 |
protected $internal_gapi_mappings = array( |
| 758 |
); |
| 759 |
protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReportDefinition'; |
| 760 |
protected $itemsDataType = 'array'; |
| 761 |
public $kind; |
| 762 |
|
| 763 |
|
| 764 |
public function setItems($items) |
| 765 |
{ |
| 766 |
$this->items = $items; |
| 767 |
} |
| 768 |
public function getItems() |
| 769 |
{ |
| 770 |
return $this->items; |
| 771 |
} |
| 772 |
public function setKind($kind) |
| 773 |
{ |
| 774 |
$this->kind = $kind; |
| 775 |
} |
| 776 |
public function getKind() |
| 777 |
{ |
| 778 |
return $this->kind; |
| 779 |
} |
| 780 |
} |
| 781 |
|
| 782 |
class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection |
| 783 |
{ |
| 784 |
protected $collection_key = 'items'; |
| 785 |
protected $internal_gapi_mappings = array( |
| 786 |
); |
| 787 |
protected $itemsType = 'Google_Service_YouTubeAnalytics_BatchReport'; |
| 788 |
protected $itemsDataType = 'array'; |
| 789 |
public $kind; |
| 790 |
|
| 791 |
|
| 792 |
public function setItems($items) |
| 793 |
{ |
| 794 |
$this->items = $items; |
| 795 |
} |
| 796 |
public function getItems() |
| 797 |
{ |
| 798 |
return $this->items; |
| 799 |
} |
| 800 |
public function setKind($kind) |
| 801 |
{ |
| 802 |
$this->kind = $kind; |
| 803 |
} |
| 804 |
public function getKind() |
| 805 |
{ |
| 806 |
return $this->kind; |
| 807 |
} |
| 808 |
} |
| 809 |
|
| 810 |
class Google_Service_YouTubeAnalytics_BatchReportOutputs extends Google_Model |
| 811 |
{ |
| 812 |
protected $internal_gapi_mappings = array( |
| 813 |
); |
| 814 |
public $downloadUrl; |
| 815 |
public $format; |
| 816 |
public $type; |
| 817 |
|
| 818 |
|
| 819 |
public function setDownloadUrl($downloadUrl) |
| 820 |
{ |
| 821 |
$this->downloadUrl = $downloadUrl; |
| 822 |
} |
| 823 |
public function getDownloadUrl() |
| 824 |
{ |
| 825 |
return $this->downloadUrl; |
| 826 |
} |
| 827 |
public function setFormat($format) |
| 828 |
{ |
| 829 |
$this->format = $format; |
| 830 |
} |
| 831 |
public function getFormat() |
| 832 |
{ |
| 833 |
return $this->format; |
| 834 |
} |
| 835 |
public function setType($type) |
| 836 |
{ |
| 837 |
$this->type = $type; |
| 838 |
} |
| 839 |
public function getType() |
| 840 |
{ |
| 841 |
return $this->type; |
| 842 |
} |
| 843 |
} |
| 844 |
|
| 845 |
class Google_Service_YouTubeAnalytics_BatchReportTimeSpan extends Google_Model |
| 846 |
{ |
| 847 |
protected $internal_gapi_mappings = array( |
| 848 |
); |
| 849 |
public $endTime; |
| 850 |
public $startTime; |
| 851 |
|
| 852 |
|
| 853 |
public function setEndTime($endTime) |
| 854 |
{ |
| 855 |
$this->endTime = $endTime; |
| 856 |
} |
| 857 |
public function getEndTime() |
| 858 |
{ |
| 859 |
return $this->endTime; |
| 860 |
} |
| 861 |
public function setStartTime($startTime) |
| 862 |
{ |
| 863 |
$this->startTime = $startTime; |
| 864 |
} |
| 865 |
public function getStartTime() |
| 866 |
{ |
| 867 |
return $this->startTime; |
| 868 |
} |
| 869 |
} |
| 870 |
|
| 871 |
class Google_Service_YouTubeAnalytics_Group extends Google_Model |
| 872 |
{ |
| 873 |
protected $internal_gapi_mappings = array( |
| 874 |
); |
| 875 |
protected $contentDetailsType = 'Google_Service_YouTubeAnalytics_GroupContentDetails'; |
| 876 |
protected $contentDetailsDataType = ''; |
| 877 |
public $etag; |
| 878 |
public $id; |
| 879 |
public $kind; |
| 880 |
protected $snippetType = 'Google_Service_YouTubeAnalytics_GroupSnippet'; |
| 881 |
protected $snippetDataType = ''; |
| 882 |
|
| 883 |
|
| 884 |
public function setContentDetails(Google_Service_YouTubeAnalytics_GroupContentDetails $contentDetails) |
| 885 |
{ |
| 886 |
$this->contentDetails = $contentDetails; |
| 887 |
} |
| 888 |
public function getContentDetails() |
| 889 |
{ |
| 890 |
return $this->contentDetails; |
| 891 |
} |
| 892 |
public function setEtag($etag) |
| 893 |
{ |
| 894 |
$this->etag = $etag; |
| 895 |
} |
| 896 |
public function getEtag() |
| 897 |
{ |
| 898 |
return $this->etag; |
| 899 |
} |
| 900 |
public function setId($id) |
| 901 |
{ |
| 902 |
$this->id = $id; |
| 903 |
} |
| 904 |
public function getId() |
| 905 |
{ |
| 906 |
return $this->id; |
| 907 |
} |
| 908 |
public function setKind($kind) |
| 909 |
{ |
| 910 |
$this->kind = $kind; |
| 911 |
} |
| 912 |
public function getKind() |
| 913 |
{ |
| 914 |
return $this->kind; |
| 915 |
} |
| 916 |
public function setSnippet(Google_Service_YouTubeAnalytics_GroupSnippet $snippet) |
| 917 |
{ |
| 918 |
$this->snippet = $snippet; |
| 919 |
} |
| 920 |
public function getSnippet() |
| 921 |
{ |
| 922 |
return $this->snippet; |
| 923 |
} |
| 924 |
} |
| 925 |
|
| 926 |
class Google_Service_YouTubeAnalytics_GroupContentDetails extends Google_Model |
| 927 |
{ |
| 928 |
protected $internal_gapi_mappings = array( |
| 929 |
); |
| 930 |
public $itemCount; |
| 931 |
public $itemType; |
| 932 |
|
| 933 |
|
| 934 |
public function setItemCount($itemCount) |
| 935 |
{ |
| 936 |
$this->itemCount = $itemCount; |
| 937 |
} |
| 938 |
public function getItemCount() |
| 939 |
{ |
| 940 |
return $this->itemCount; |
| 941 |
} |
| 942 |
public function setItemType($itemType) |
| 943 |
{ |
| 944 |
$this->itemType = $itemType; |
| 945 |
} |
| 946 |
public function getItemType() |
| 947 |
{ |
| 948 |
return $this->itemType; |
| 949 |
} |
| 950 |
} |
| 951 |
|
| 952 |
class Google_Service_YouTubeAnalytics_GroupItem extends Google_Model |
| 953 |
{ |
| 954 |
protected $internal_gapi_mappings = array( |
| 955 |
); |
| 956 |
public $etag; |
| 957 |
public $groupId; |
| 958 |
public $id; |
| 959 |
public $kind; |
| 960 |
protected $resourceType = 'Google_Service_YouTubeAnalytics_GroupItemResource'; |
| 961 |
protected $resourceDataType = ''; |
| 962 |
|
| 963 |
|
| 964 |
public function setEtag($etag) |
| 965 |
{ |
| 966 |
$this->etag = $etag; |
| 967 |
} |
| 968 |
public function getEtag() |
| 969 |
{ |
| 970 |
return $this->etag; |
| 971 |
} |
| 972 |
public function setGroupId($groupId) |
| 973 |
{ |
| 974 |
$this->groupId = $groupId; |
| 975 |
} |
| 976 |
public function getGroupId() |
| 977 |
{ |
| 978 |
return $this->groupId; |
| 979 |
} |
| 980 |
public function setId($id) |
| 981 |
{ |
| 982 |
$this->id = $id; |
| 983 |
} |
| 984 |
public function getId() |
| 985 |
{ |
| 986 |
return $this->id; |
| 987 |
} |
| 988 |
public function setKind($kind) |
| 989 |
{ |
| 990 |
$this->kind = $kind; |
| 991 |
} |
| 992 |
public function getKind() |
| 993 |
{ |
| 994 |
return $this->kind; |
| 995 |
} |
| 996 |
public function setResource(Google_Service_YouTubeAnalytics_GroupItemResource $resource) |
| 997 |
{ |
| 998 |
$this->resource = $resource; |
| 999 |
} |
| 1000 |
public function getResource() |
| 1001 |
{ |
| 1002 |
return $this->resource; |
| 1003 |
} |
| 1004 |
} |
| 1005 |
|
| 1006 |
class Google_Service_YouTubeAnalytics_GroupItemListResponse extends Google_Collection |
| 1007 |
{ |
| 1008 |
protected $collection_key = 'items'; |
| 1009 |
protected $internal_gapi_mappings = array( |
| 1010 |
); |
| 1011 |
public $etag; |
| 1012 |
protected $itemsType = 'Google_Service_YouTubeAnalytics_GroupItem'; |
| 1013 |
protected $itemsDataType = 'array'; |
| 1014 |
public $kind; |
| 1015 |
|
| 1016 |
|
| 1017 |
public function setEtag($etag) |
| 1018 |
{ |
| 1019 |
$this->etag = $etag; |
| 1020 |
} |
| 1021 |
public function getEtag() |
| 1022 |
{ |
| 1023 |
return $this->etag; |
| 1024 |
} |
| 1025 |
public function setItems($items) |
| 1026 |
{ |
| 1027 |
$this->items = $items; |
| 1028 |
} |
| 1029 |
public function getItems() |
| 1030 |
{ |
| 1031 |
return $this->items; |
| 1032 |
} |
| 1033 |
public function setKind($kind) |
| 1034 |
{ |
| 1035 |
$this->kind = $kind; |
| 1036 |
} |
| 1037 |
public function getKind() |
| 1038 |
{ |
| 1039 |
return $this->kind; |
| 1040 |
} |
| 1041 |
} |
| 1042 |
|
| 1043 |
class Google_Service_YouTubeAnalytics_GroupItemResource extends Google_Model |
| 1044 |
{ |
| 1045 |
protected $internal_gapi_mappings = array( |
| 1046 |
); |
| 1047 |
public $id; |
| 1048 |
public $kind; |
| 1049 |
|
| 1050 |
|
| 1051 |
public function setId($id) |
| 1052 |
{ |
| 1053 |
$this->id = $id; |
| 1054 |
} |
| 1055 |
public function getId() |
| 1056 |
{ |
| 1057 |
return $this->id; |
| 1058 |
} |
| 1059 |
public function setKind($kind) |
| 1060 |
{ |
| 1061 |
$this->kind = $kind; |
| 1062 |
} |
| 1063 |
public function getKind() |
| 1064 |
{ |
| 1065 |
return $this->kind; |
| 1066 |
} |
| 1067 |
} |
| 1068 |
|
| 1069 |
class Google_Service_YouTubeAnalytics_GroupListResponse extends Google_Collection |
| 1070 |
{ |
| 1071 |
protected $collection_key = 'items'; |
| 1072 |
protected $internal_gapi_mappings = array( |
| 1073 |
); |
| 1074 |
public $etag; |
| 1075 |
protected $itemsType = 'Google_Service_YouTubeAnalytics_Group'; |
| 1076 |
protected $itemsDataType = 'array'; |
| 1077 |
public $kind; |
| 1078 |
public $nextPageToken; |
| 1079 |
|
| 1080 |
|
| 1081 |
public function setEtag($etag) |
| 1082 |
{ |
| 1083 |
$this->etag = $etag; |
| 1084 |
} |
| 1085 |
public function getEtag() |
| 1086 |
{ |
| 1087 |
return $this->etag; |
| 1088 |
} |
| 1089 |
public function setItems($items) |
| 1090 |
{ |
| 1091 |
$this->items = $items; |
| 1092 |
} |
| 1093 |
public function getItems() |
| 1094 |
{ |
| 1095 |
return $this->items; |
| 1096 |
} |
| 1097 |
public function setKind($kind) |
| 1098 |
{ |
| 1099 |
$this->kind = $kind; |
| 1100 |
} |
| 1101 |
public function getKind() |
| 1102 |
{ |
| 1103 |
return $this->kind; |
| 1104 |
} |
| 1105 |
public function setNextPageToken($nextPageToken) |
| 1106 |
{ |
| 1107 |
$this->nextPageToken = $nextPageToken; |
| 1108 |
} |
| 1109 |
public function getNextPageToken() |
| 1110 |
{ |
| 1111 |
return $this->nextPageToken; |
| 1112 |
} |
| 1113 |
} |
| 1114 |
|
| 1115 |
class Google_Service_YouTubeAnalytics_GroupSnippet extends Google_Model |
| 1116 |
{ |
| 1117 |
protected $internal_gapi_mappings = array( |
| 1118 |
); |
| 1119 |
public $publishedAt; |
| 1120 |
public $title; |
| 1121 |
|
| 1122 |
|
| 1123 |
public function setPublishedAt($publishedAt) |
| 1124 |
{ |
| 1125 |
$this->publishedAt = $publishedAt; |
| 1126 |
} |
| 1127 |
public function getPublishedAt() |
| 1128 |
{ |
| 1129 |
return $this->publishedAt; |
| 1130 |
} |
| 1131 |
public function setTitle($title) |
| 1132 |
{ |
| 1133 |
$this->title = $title; |
| 1134 |
} |
| 1135 |
public function getTitle() |
| 1136 |
{ |
| 1137 |
return $this->title; |
| 1138 |
} |
| 1139 |
} |
| 1140 |
|
| 1141 |
class Google_Service_YouTubeAnalytics_ResultTable extends Google_Collection |
| 1142 |
{ |
| 1143 |
protected $collection_key = 'rows'; |
| 1144 |
protected $internal_gapi_mappings = array( |
| 1145 |
); |
| 1146 |
protected $columnHeadersType = 'Google_Service_YouTubeAnalytics_ResultTableColumnHeaders'; |
| 1147 |
protected $columnHeadersDataType = 'array'; |
| 1148 |
public $kind; |
| 1149 |
public $rows; |
| 1150 |
|
| 1151 |
|
| 1152 |
public function setColumnHeaders($columnHeaders) |
| 1153 |
{ |
| 1154 |
$this->columnHeaders = $columnHeaders; |
| 1155 |
} |
| 1156 |
public function getColumnHeaders() |
| 1157 |
{ |
| 1158 |
return $this->columnHeaders; |
| 1159 |
} |
| 1160 |
public function setKind($kind) |
| 1161 |
{ |
| 1162 |
$this->kind = $kind; |
| 1163 |
} |
| 1164 |
public function getKind() |
| 1165 |
{ |
| 1166 |
return $this->kind; |
| 1167 |
} |
| 1168 |
public function setRows($rows) |
| 1169 |
{ |
| 1170 |
$this->rows = $rows; |
| 1171 |
} |
| 1172 |
public function getRows() |
| 1173 |
{ |
| 1174 |
return $this->rows; |
| 1175 |
} |
| 1176 |
} |
| 1177 |
|
| 1178 |
class Google_Service_YouTubeAnalytics_ResultTableColumnHeaders extends Google_Model |
| 1179 |
{ |
| 1180 |
protected $internal_gapi_mappings = array( |
| 1181 |
); |
| 1182 |
public $columnType; |
| 1183 |
public $dataType; |
| 1184 |
public $name; |
| 1185 |
|
| 1186 |
|
| 1187 |
public function setColumnType($columnType) |
| 1188 |
{ |
| 1189 |
$this->columnType = $columnType; |
| 1190 |
} |
| 1191 |
public function getColumnType() |
| 1192 |
{ |
| 1193 |
return $this->columnType; |
| 1194 |
} |
| 1195 |
public function setDataType($dataType) |
| 1196 |
{ |
| 1197 |
$this->dataType = $dataType; |
| 1198 |
} |
| 1199 |
public function getDataType() |
| 1200 |
{ |
| 1201 |
return $this->dataType; |
| 1202 |
} |
| 1203 |
public function setName($name) |
| 1204 |
{ |
| 1205 |
$this->name = $name; |
| 1206 |
} |
| 1207 |
public function getName() |
| 1208 |
{ |
| 1209 |
return $this->name; |
| 1210 |
} |
| 1211 |
} |
| 1212 |
|