Google_AccountsServiceResource

The "accounts" collection of methods.

Defined (3)

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

/inc/google-api-php-client/src/contrib/Google_AdexchangebuyerService.php  
  1. class Google_AccountsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Updates an existing account. This method supports patch semantics. (accounts.patch) 
  6. * @param int $id The account id 
  7. * @param Google_Account $postBody 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_Account 
  10. */ 
  11. public function patch($id, Google_Account $postBody, $optParams = array()) { 
  12. $params = array('id' => $id, 'postBody' => $postBody); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('patch', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_Account($data); 
  17. } else { 
  18. return $data; 
  19. /** 
  20. * Retrieves the authenticated user's list of accounts. (accounts.list) 
  21. * @param array $optParams Optional parameters. 
  22. * @return Google_AccountsList 
  23. */ 
  24. public function listAccounts($optParams = array()) { 
  25. $params = array(); 
  26. $params = array_merge($params, $optParams); 
  27. $data = $this->__call('list', array($params)); 
  28. if ($this->useObjects()) { 
  29. return new Google_AccountsList($data); 
  30. } else { 
  31. return $data; 
  32. /** 
  33. * Updates an existing account. (accounts.update) 
  34. * @param int $id The account id 
  35. * @param Google_Account $postBody 
  36. * @param array $optParams Optional parameters. 
  37. * @return Google_Account 
  38. */ 
  39. public function update($id, Google_Account $postBody, $optParams = array()) { 
  40. $params = array('id' => $id, 'postBody' => $postBody); 
  41. $params = array_merge($params, $optParams); 
  42. $data = $this->__call('update', array($params)); 
  43. if ($this->useObjects()) { 
  44. return new Google_Account($data); 
  45. } else { 
  46. return $data; 
  47. /** 
  48. * Gets one account by ID. (accounts.get) 
  49. * @param int $id The account id 
  50. * @param array $optParams Optional parameters. 
  51. * @return Google_Account 
  52. */ 
  53. public function get($id, $optParams = array()) { 
  54. $params = array('id' => $id); 
  55. $params = array_merge($params, $optParams); 
  56. $data = $this->__call('get', array($params)); 
  57. if ($this->useObjects()) { 
  58. return new Google_Account($data); 
  59. } else { 
  60. return $data; 
/inc/google-api-php-client/src/contrib/Google_AdsenseService.php  
  1. class Google_AccountsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * List all accounts available to this AdSense account. (accounts.list) 
  6. * @param array $optParams Optional parameters. 
  7. * @opt_param string pageToken A continuation token, used to page through accounts. 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 accounts to include in the response, used for paging. 
  9. * @return Google_Accounts 
  10. */ 
  11. public function listAccounts($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_Accounts($data); 
  17. } else { 
  18. return $data; 
  19. /** 
  20. * Get information about the selected AdSense account. (accounts.get) 
  21. * @param string $accountId Account to get information about. 
  22. * @param array $optParams Optional parameters. 
  23. * @opt_param bool tree Whether the tree of sub accounts should be returned. 
  24. * @return Google_Account 
  25. */ 
  26. public function get($accountId, $optParams = array()) { 
  27. $params = array('accountId' => $accountId); 
  28. $params = array_merge($params, $optParams); 
  29. $data = $this->__call('get', array($params)); 
  30. if ($this->useObjects()) { 
  31. return new Google_Account($data); 
  32. } else { 
  33. return $data; 
/inc/google-api-php-client/src/contrib/Google_AdsensehostService.php  
  1. class Google_AccountsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * List hosted accounts associated with this AdSense account by ad client id. (accounts.list) 
  6. * @param string $filterAdClientId Ad clients to list accounts for. 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Accounts 
  9. */ 
  10. public function listAccounts($filterAdClientId, $optParams = array()) { 
  11. $params = array('filterAdClientId' => $filterAdClientId); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('list', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_Accounts($data); 
  16. } else { 
  17. return $data; 
  18. /** 
  19. * Get information about the selected associated AdSense account. (accounts.get) 
  20. * @param string $accountId Account to get information about. 
  21. * @param array $optParams Optional parameters. 
  22. * @return Google_Account 
  23. */ 
  24. public function get($accountId, $optParams = array()) { 
  25. $params = array('accountId' => $accountId); 
  26. $params = array_merge($params, $optParams); 
  27. $data = $this->__call('get', array($params)); 
  28. if ($this->useObjects()) { 
  29. return new Google_Account($data); 
  30. } else { 
  31. return $data;