Google_AccountsAdclientsServiceResource

The "adclients" collection of methods.

Defined (1)

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

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