Google_Service_AdSenseHost_Customchannels_Resource

The "customchannels" collection of methods.

Defined (1)

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

/vendor/google/apiclient/src/Google/Service/AdSenseHost.php  
  1. class Google_Service_AdSenseHost_Customchannels_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Delete a specific custom channel from the host AdSense account. 
  5. * (customchannels.delete) 
  6. * @param string $adClientId Ad client from which to delete the custom channel. 
  7. * @param string $customChannelId Custom channel to delete. 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_Service_AdSenseHost_CustomChannel 
  10. */ 
  11. public function delete($adClientId, $customChannelId, $optParams = array()) 
  12. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('delete', array($params), "Google_Service_AdSenseHost_CustomChannel"); 
  15.  
  16. /** 
  17. * Get a specific custom channel from the host AdSense account. 
  18. * (customchannels.get) 
  19. * @param string $adClientId Ad client from which to get the custom channel. 
  20. * @param string $customChannelId Custom channel to get. 
  21. * @param array $optParams Optional parameters. 
  22. * @return Google_Service_AdSenseHost_CustomChannel 
  23. */ 
  24. public function get($adClientId, $customChannelId, $optParams = array()) 
  25. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); 
  26. $params = array_merge($params, $optParams); 
  27. return $this->call('get', array($params), "Google_Service_AdSenseHost_CustomChannel"); 
  28.  
  29. /** 
  30. * Add a new custom channel to the host AdSense account. (customchannels.insert) 
  31. * @param string $adClientId Ad client to which the new custom channel will be 
  32. * added. 
  33. * @param Google_CustomChannel $postBody 
  34. * @param array $optParams Optional parameters. 
  35. * @return Google_Service_AdSenseHost_CustomChannel 
  36. */ 
  37. public function insert($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array()) 
  38. $params = array('adClientId' => $adClientId, 'postBody' => $postBody); 
  39. $params = array_merge($params, $optParams); 
  40. return $this->call('insert', array($params), "Google_Service_AdSenseHost_CustomChannel"); 
  41.  
  42. /** 
  43. * List all host custom channels in this AdSense account. 
  44. * (customchannels.listCustomchannels) 
  45. * @param string $adClientId Ad client for which to list custom channels. 
  46. * @param array $optParams Optional parameters. 
  47. * @opt_param string maxResults The maximum number of custom channels to include 
  48. * in the response, used for paging. 
  49. * @opt_param string pageToken A continuation token, used to page through custom 
  50. * channels. To retrieve the next page, set this parameter to the value of 
  51. * "nextPageToken" from the previous response. 
  52. * @return Google_Service_AdSenseHost_CustomChannels 
  53. */ 
  54. public function listCustomchannels($adClientId, $optParams = array()) 
  55. $params = array('adClientId' => $adClientId); 
  56. $params = array_merge($params, $optParams); 
  57. return $this->call('list', array($params), "Google_Service_AdSenseHost_CustomChannels"); 
  58.  
  59. /** 
  60. * Update a custom channel in the host AdSense account. This method supports 
  61. * patch semantics. (customchannels.patch) 
  62. * @param string $adClientId Ad client in which the custom channel will be 
  63. * updated. 
  64. * @param string $customChannelId Custom channel to get. 
  65. * @param Google_CustomChannel $postBody 
  66. * @param array $optParams Optional parameters. 
  67. * @return Google_Service_AdSenseHost_CustomChannel 
  68. */ 
  69. public function patch($adClientId, $customChannelId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array()) 
  70. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody); 
  71. $params = array_merge($params, $optParams); 
  72. return $this->call('patch', array($params), "Google_Service_AdSenseHost_CustomChannel"); 
  73.  
  74. /** 
  75. * Update a custom channel in the host AdSense account. (customchannels.update) 
  76. * @param string $adClientId Ad client in which the custom channel will be 
  77. * updated. 
  78. * @param Google_CustomChannel $postBody 
  79. * @param array $optParams Optional parameters. 
  80. * @return Google_Service_AdSenseHost_CustomChannel 
  81. */ 
  82. public function update($adClientId, Google_Service_AdSenseHost_CustomChannel $postBody, $optParams = array()) 
  83. $params = array('adClientId' => $adClientId, 'postBody' => $postBody); 
  84. $params = array_merge($params, $optParams); 
  85. return $this->call('update', array($params), "Google_Service_AdSenseHost_CustomChannel");