Google_Service_AdSense_AccountsCustomchannels_Resource

The "customchannels" collection of methods.

Defined (1)

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

/lib/Google/Service/AdSense.php  
  1. class Google_Service_AdSense_AccountsCustomchannels_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Get the specified custom channel from the specified ad client for the 
  5. * specified account. (customchannels.get) 
  6. * @param string $accountId 
  7. * Account to which the ad client belongs. 
  8. * @param string $adClientId 
  9. * Ad client which contains the custom channel. 
  10. * @param string $customChannelId 
  11. * Custom channel to retrieve. 
  12. * @param array $optParams Optional parameters. 
  13. * @return Google_Service_AdSense_CustomChannel 
  14. */ 
  15. public function get($accountId, $adClientId, $customChannelId, $optParams = array()) 
  16. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId); 
  17. $params = array_merge($params, $optParams); 
  18. return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel"); 
  19. /** 
  20. * List all custom channels in the specified ad client for the specified 
  21. * account. (customchannels.listAccountsCustomchannels) 
  22. * @param string $accountId 
  23. * Account to which the ad client belongs. 
  24. * @param string $adClientId 
  25. * Ad client for which to list custom channels. 
  26. * @param array $optParams Optional parameters. 
  27. * @opt_param string pageToken 
  28. * A continuation token, used to page through custom channels. To retrieve the next page, set this 
  29. * parameter to the value of "nextPageToken" from the previous response. 
  30. * @opt_param int maxResults 
  31. * The maximum number of custom channels to include in the response, used for paging. 
  32. * @return Google_Service_AdSense_CustomChannels 
  33. */ 
  34. public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) 
  35. $params = array('accountId' => $accountId, 'adClientId' => $adClientId); 
  36. $params = array_merge($params, $optParams); 
  37. return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");