Google_AccountsAdunitsCustomchannelsServiceResource

The "customchannels" collection of methods.

Defined (1)

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

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