Google_Service_AdExchangeBuyer_Accounts_Resource

The "accounts" collection of methods.

Defined (1)

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

/lib/Google/Service/AdExchangeBuyer.php  
  1. class Google_Service_AdExchangeBuyer_Accounts_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Gets one account by ID. (accounts.get) 
  5. * @param int $id 
  6. * The account id 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Service_AdExchangeBuyer_Account 
  9. */ 
  10. public function get($id, $optParams = array()) 
  11. $params = array('id' => $id); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('get', array($params), "Google_Service_AdExchangeBuyer_Account"); 
  14. /** 
  15. * Retrieves the authenticated user's list of accounts. (accounts.listAccounts) 
  16. * @param array $optParams Optional parameters. 
  17. * @return Google_Service_AdExchangeBuyer_AccountsList 
  18. */ 
  19. public function listAccounts($optParams = array()) 
  20. $params = array(); 
  21. $params = array_merge($params, $optParams); 
  22. return $this->call('list', array($params), "Google_Service_AdExchangeBuyer_AccountsList"); 
  23. /** 
  24. * Updates an existing account. This method supports patch semantics. 
  25. * (accounts.patch) 
  26. * @param int $id 
  27. * The account id 
  28. * @param Google_Account $postBody 
  29. * @param array $optParams Optional parameters. 
  30. * @return Google_Service_AdExchangeBuyer_Account 
  31. */ 
  32. public function patch($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array()) 
  33. $params = array('id' => $id, 'postBody' => $postBody); 
  34. $params = array_merge($params, $optParams); 
  35. return $this->call('patch', array($params), "Google_Service_AdExchangeBuyer_Account"); 
  36. /** 
  37. * Updates an existing account. (accounts.update) 
  38. * @param int $id 
  39. * The account id 
  40. * @param Google_Account $postBody 
  41. * @param array $optParams Optional parameters. 
  42. * @return Google_Service_AdExchangeBuyer_Account 
  43. */ 
  44. public function update($id, Google_Service_AdExchangeBuyer_Account $postBody, $optParams = array()) 
  45. $params = array('id' => $id, 'postBody' => $postBody); 
  46. $params = array_merge($params, $optParams); 
  47. return $this->call('update', array($params), "Google_Service_AdExchangeBuyer_Account");