Google_AccountsCustomchannelsServiceResource

The "customchannels" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_AdsenseService.php  
  1. class Google_AccountsCustomchannelsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Get the specified custom channel from the specified ad client for the specified account. 
  6. * (customchannels.get) 
  7. * @param string $accountId Account to which the ad client belongs. 
  8. * @param string $adClientId Ad client which contains the custom channel. 
  9. * @param string $customChannelId Custom channel to retrieve. 
  10. * @param array $optParams Optional parameters. 
  11. * @return Google_CustomChannel 
  12. */ 
  13. public function get($accountId, $adClientId, $customChannelId, $optParams = array()) { 
  14. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId); 
  15. $params = array_merge($params, $optParams); 
  16. $data = $this->__call('get', array($params)); 
  17. if ($this->useObjects()) { 
  18. return new Google_CustomChannel($data); 
  19. } else { 
  20. return $data; 
  21. /** 
  22. * List all custom channels in the specified ad client for the specified account. 
  23. * (customchannels.list) 
  24. * @param string $accountId Account to which the ad client belongs. 
  25. * @param string $adClientId Ad client for which to list custom channels. 
  26. * @param array $optParams Optional parameters. 
  27. * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging. 
  28. * @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. 
  29. * @return Google_CustomChannels 
  30. */ 
  31. public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) { 
  32. $params = array('accountId' => $accountId, 'adClientId' => $adClientId); 
  33. $params = array_merge($params, $optParams); 
  34. $data = $this->__call('list', array($params)); 
  35. if ($this->useObjects()) { 
  36. return new Google_CustomChannels($data); 
  37. } else { 
  38. return $data;