Google_Service_AdSenseHost_Customchannels_Resource

The "customchannels" collection of methods.

Defined (1)

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

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