Google_AccountsCustomchannelsAdunitsServiceResource

The "adunits" collection of methods.

Defined (1)

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

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