Google_Service_YouTube_ChannelBanners_Resource

The "channelBanners" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/YouTube.php  
  1. class Google_Service_YouTube_ChannelBanners_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Uploads a channel banner image to YouTube. This method represents the first 
  5. * two steps in a three-step process to update the banner image for a channel: 
  6. * - Call the channelBanners.insert method to upload the binary image data to 
  7. * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 
  8. * pixels. - Extract the url property's value from the response that the API 
  9. * returns for step 1. - Call the channels.update method to update the channel's 
  10. * branding settings. Set the brandingSettings.image.bannerExternalUrl 
  11. * property's value to the URL obtained in step 2. (channelBanners.insert) 
  12. * @param Google_ChannelBannerResource $postBody 
  13. * @param array $optParams Optional parameters. 
  14. * @opt_param string onBehalfOfContentOwner Note: This parameter is intended 
  15. * exclusively for YouTube content partners. 
  16. * The onBehalfOfContentOwner parameter indicates that the request's 
  17. * authorization credentials identify a YouTube CMS user who is acting on behalf 
  18. * of the content owner specified in the parameter value. This parameter is 
  19. * intended for YouTube content partners that own and manage many different 
  20. * YouTube channels. It allows content owners to authenticate once and get 
  21. * access to all their video and channel data, without having to provide 
  22. * authentication credentials for each individual channel. The CMS account that 
  23. * the user authenticates with must be linked to the specified YouTube content 
  24. * owner. 
  25. * @return Google_Service_YouTube_ChannelBannerResource 
  26. */ 
  27. public function insert(Google_Service_YouTube_ChannelBannerResource $postBody, $optParams = array()) 
  28. $params = array('postBody' => $postBody); 
  29. $params = array_merge($params, $optParams); 
  30. return $this->call('insert', array($params), "Google_Service_YouTube_ChannelBannerResource");