Google_Service_AdSense_Customchannels_Resource

The "customchannels" collection of methods.

Defined (1)

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

/lib/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 
  7. * Ad client which contains the custom channel. 
  8. * @param string $customChannelId 
  9. * Custom channel to retrieve. 
  10. * @param array $optParams Optional parameters. 
  11. * @return Google_Service_AdSense_CustomChannel 
  12. */ 
  13. public function get($adClientId, $customChannelId, $optParams = array()) 
  14. $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId); 
  15. $params = array_merge($params, $optParams); 
  16. return $this->call('get', array($params), "Google_Service_AdSense_CustomChannel"); 
  17. /** 
  18. * List all custom channels in the specified ad client for this AdSense account. 
  19. * (customchannels.listCustomchannels) 
  20. * @param string $adClientId 
  21. * Ad client for which to list custom channels. 
  22. * @param array $optParams Optional parameters. 
  23. * @opt_param string pageToken 
  24. * A continuation token, used to page through custom channels. To retrieve the next page, set this 
  25. * parameter to the value of "nextPageToken" from the previous response. 
  26. * @opt_param int maxResults 
  27. * The maximum number of custom channels to include in the response, used for paging. 
  28. * @return Google_Service_AdSense_CustomChannels 
  29. */ 
  30. public function listCustomchannels($adClientId, $optParams = array()) 
  31. $params = array('adClientId' => $adClientId); 
  32. $params = array_merge($params, $optParams); 
  33. return $this->call('list', array($params), "Google_Service_AdSense_CustomChannels");