Google_AccountsAdunitsCustomchannelsServiceResource

The "customchannels" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_AdsenseService.php  
  1. class Google_AccountsAdunitsCustomchannelsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * List all custom channels which the specified ad unit belongs to. (customchannels.list) 
  6. * @param string $accountId Account to which the ad client belongs. 
  7. * @param string $adClientId Ad client which contains the ad unit. 
  8. * @param string $adUnitId Ad unit for which to list custom channels. 
  9. * @param array $optParams Optional parameters. 
  10. * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging. 
  11. * @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. 
  12. * @return Google_CustomChannels 
  13. */ 
  14. public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array()) { 
  15. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId); 
  16. $params = array_merge($params, $optParams); 
  17. $data = $this->__call('list', array($params)); 
  18. if ($this->useObjects()) { 
  19. return new Google_CustomChannels($data); 
  20. } else { 
  21. return $data;