Google_AccountsServiceResource

The "accounts" collection of methods.

Defined (4)

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

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