Google_AccountsAdclientsServiceResource

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_AccountsAdclientsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * List all ad clients in the specified account. (adclients.list) 
  6. * @param string $accountId Account for which to list ad clients. 
  7. * @param array $optParams Optional parameters. 
  8. * @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. 
  9. * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging. 
  10. * @return Google_AdClients 
  11. */ 
  12. public function listAccountsAdclients($accountId, $optParams = array()) { 
  13. $params = array('accountId' => $accountId); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('list', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_AdClients($data); 
  18. } else { 
  19. return $data; 
/inc/google-api-php-client/src/contrib/Google_AdsensehostService.php  
  1. class Google_AccountsAdclientsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * List all hosted ad clients in the specified hosted account. (adclients.list) 
  6. * @param string $accountId Account for which to list ad clients. 
  7. * @param array $optParams Optional parameters. 
  8. * @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. 
  9. * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging. 
  10. * @return Google_AdClients 
  11. */ 
  12. public function listAccountsAdclients($accountId, $optParams = array()) { 
  13. $params = array('accountId' => $accountId); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('list', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_AdClients($data); 
  18. } else { 
  19. return $data; 
  20. /** 
  21. * Get information about one of the ad clients in the specified publisher's AdSense account. 
  22. * (adclients.get) 
  23. * @param string $accountId Account which contains the ad client. 
  24. * @param string $adClientId Ad client to get. 
  25. * @param array $optParams Optional parameters. 
  26. * @return Google_AdClient 
  27. */ 
  28. public function get($accountId, $adClientId, $optParams = array()) { 
  29. $params = array('accountId' => $accountId, 'adClientId' => $adClientId); 
  30. $params = array_merge($params, $optParams); 
  31. $data = $this->__call('get', array($params)); 
  32. if ($this->useObjects()) { 
  33. return new Google_AdClient($data); 
  34. } else { 
  35. return $data;