Google_Service_YouTube_Watermarks_Resource

The "watermarks" collection of methods.

Defined (1)

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

/src/Google/Service/YouTube.php  
  1. class Google_Service_YouTube_Watermarks_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Uploads a watermark image to YouTube and sets it for a channel. 
  5. * (watermarks.set) 
  6. * @param string $channelId The channelId parameter specifies a YouTube channel 
  7. * ID for which the watermark is being provided. 
  8. * @param Google_InvideoBranding $postBody 
  9. * @param array $optParams Optional parameters. 
  10. * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter 
  11. * indicates that the authenticated user is acting on behalf of the content 
  12. * owner specified in the parameter value. This parameter is intended for 
  13. * YouTube content partners that own and manage many different YouTube channels. 
  14. * It allows content owners to authenticate once and get access to all their 
  15. * video and channel data, without having to provide authentication credentials 
  16. * for each individual channel. The actual CMS account that the user 
  17. * authenticates with needs to be linked to the specified YouTube content owner. 
  18. */ 
  19. public function set($channelId, Google_Service_YouTube_InvideoBranding $postBody, $optParams = array()) 
  20. $params = array('channelId' => $channelId, 'postBody' => $postBody); 
  21. $params = array_merge($params, $optParams); 
  22. return $this->call('set', array($params)); 
  23.  
  24. /** 
  25. * Deletes a watermark. (watermarks.unsetWatermarks) 
  26. * @param string $channelId The channelId parameter specifies a YouTube channel 
  27. * ID for which the watermark is being unset. 
  28. * @param array $optParams Optional parameters. 
  29. * @opt_param string onBehalfOfContentOwner The onBehalfOfContentOwner parameter 
  30. * indicates that the authenticated user is acting on behalf of the content 
  31. * owner specified in the parameter value. This parameter is intended for 
  32. * YouTube content partners that own and manage many different YouTube channels. 
  33. * It allows content owners to authenticate once and get access to all their 
  34. * video and channel data, without having to provide authentication credentials 
  35. * for each individual channel. The actual CMS account that the user 
  36. * authenticates with needs to be linked to the specified YouTube content owner. 
  37. */ 
  38. public function unsetWatermarks($channelId, $optParams = array()) 
  39. $params = array('channelId' => $channelId); 
  40. $params = array_merge($params, $optParams); 
  41. return $this->call('unset', array($params));