Google_AccountsCustomchannelsServiceResource

The "customchannels" collection of methods.

Defined (1)

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

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