Google_Service_AdSense_Customchannels_Resource

The "customchannels" collection of methods.

Defined (1)

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

/vendor/google/apiclient/src/Google/Service/AdSense.php  
  1. class Google_Service_AdSense_Customchannels_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Get the specified custom channel from the specified ad client. 
  5. * (customchannels.get) 
  6. * @param string $adClientId Ad client which contains the custom channel. 
  7. * @param string $customChannelId Custom channel to retrieve. 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_Service_AdSense_CustomChannel 
  10. */ 
  11. public function get($adClientId, $customChannelId, $optParams = array()) 
  12. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel"); 
  15.  
  16. /** 
  17. * List all custom channels in the specified ad client for this AdSense account. 
  18. * (customchannels.listCustomchannels) 
  19. * @param string $adClientId Ad client for which to list custom channels. 
  20. * @param array $optParams Optional parameters. 
  21. * @opt_param int maxResults The maximum number of custom channels to include in 
  22. * the response, used for paging. 
  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. * @return Google_Service_AdSense_CustomChannels 
  27. */ 
  28. public function listCustomchannels($adClientId, $optParams = array()) 
  29. $params = array('adClientId' => $adClientId); 
  30. $params = array_merge($params, $optParams); 
  31. return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");