Google_AccountsCustomchannelsAdunitsServiceResource

The "adunits" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_AdsenseService.php  
  1. class Google_AccountsCustomchannelsAdunitsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * List all ad units in the specified custom channel. (adunits.list) 
  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 for which to list ad units. 
  9. * @param array $optParams Optional parameters. 
  10. * @opt_param bool includeInactive Whether to include inactive ad units. Default: true. 
  11. * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging. 
  12. * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. 
  13. * @return Google_AdUnits 
  14. */ 
  15. public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array()) { 
  16. $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId); 
  17. $params = array_merge($params, $optParams); 
  18. $data = $this->__call('list', array($params)); 
  19. if ($this->useObjects()) { 
  20. return new Google_AdUnits($data); 
  21. } else { 
  22. return $data;