google_CustomchannelsServiceResource

The "customchannels" collection of methods.

Defined (2)

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

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