google_AdclientsServiceResource

The "adclients" collection of methods.

Defined (2)

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

/inc/google-api-php-client/src/contrib/Google_AdsenseService.php  
  1. class Google_AdclientsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * List all ad clients in this AdSense account. (adclients.list) 
  6. * @param array $optParams Optional parameters. 
  7. * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. 
  8. * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging. 
  9. * @return Google_AdClients 
  10. */ 
  11. public function listAdclients($optParams = array()) { 
  12. $params = array(); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('list', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_AdClients($data); 
  17. } else { 
  18. return $data; 
/inc/google-api-php-client/src/contrib/Google_AdsensehostService.php  
  1. class Google_AdclientsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * List all host ad clients in this AdSense account. (adclients.list) 
  6. * @param array $optParams Optional parameters. 
  7. * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. 
  8. * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging. 
  9. * @return Google_AdClients 
  10. */ 
  11. public function listAdclients($optParams = array()) { 
  12. $params = array(); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('list', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_AdClients($data); 
  17. } else { 
  18. return $data; 
  19. /** 
  20. * Get information about one of the ad clients in the Host AdSense account. (adclients.get) 
  21. * @param string $adClientId Ad client to get. 
  22. * @param array $optParams Optional parameters. 
  23. * @return Google_AdClient 
  24. */ 
  25. public function get($adClientId, $optParams = array()) { 
  26. $params = array('adClientId' => $adClientId); 
  27. $params = array_merge($params, $optParams); 
  28. $data = $this->__call('get', array($params)); 
  29. if ($this->useObjects()) { 
  30. return new Google_AdClient($data); 
  31. } else { 
  32. return $data;