GoogleGAL_Service_AdSense_AccountsCustomchannels_Resource

The "customchannels" collection of methods.

Defined (1)

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

/core/Google/Service/AdSense.php  
  1. class GoogleGAL_Service_AdSense_AccountsCustomchannels_Resource extends GoogleGAL_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 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 GoogleGAL_Service_AdSense_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. return $this->call('get', array($params), "GoogleGAL_Service_AdSense_CustomChannel"); 
  16.  
  17. /** 
  18. * List all custom channels in the specified ad client for the specified 
  19. * account. (customchannels.listAccountsCustomchannels) 
  20. * @param string $accountId Account to which the ad client belongs. 
  21. * @param string $adClientId Ad client for which to list custom channels. 
  22. * @param array $optParams Optional parameters. 
  23. * @opt_param string pageToken A continuation token, used to page through custom 
  24. * channels. To retrieve the next page, set this parameter to the value of 
  25. * "nextPageToken" from the previous response. 
  26. * @opt_param int maxResults The maximum number of custom channels to include in 
  27. * the response, used for paging. 
  28. * @return GoogleGAL_Service_AdSense_CustomChannels 
  29. */ 
  30. public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) 
  31. $params = array('accountId' => $accountId, 'adClientId' => $adClientId); 
  32. $params = array_merge($params, $optParams); 
  33. return $this->call('list', array($params), "GoogleGAL_Service_AdSense_CustomChannels");