Google_Service_AdSenseHost_Accounts_Resource

The "accounts" collection of methods.

Defined (1)

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

/lib/Google/Service/AdSenseHost.php  
  1. class Google_Service_AdSenseHost_Accounts_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Get information about the selected associated AdSense account. (accounts.get) 
  5. * @param string $accountId 
  6. * Account to get information about. 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Service_AdSenseHost_Account 
  9. */ 
  10. public function get($accountId, $optParams = array()) 
  11. $params = array('accountId' => $accountId); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('get', array($params), "Google_Service_AdSenseHost_Account"); 
  14. /** 
  15. * List hosted accounts associated with this AdSense account by ad client id. 
  16. * (accounts.listAccounts) 
  17. * @param string $filterAdClientId 
  18. * Ad clients to list accounts for. 
  19. * @param array $optParams Optional parameters. 
  20. * @return Google_Service_AdSenseHost_Accounts 
  21. */ 
  22. public function listAccounts($filterAdClientId, $optParams = array()) 
  23. $params = array('filterAdClientId' => $filterAdClientId); 
  24. $params = array_merge($params, $optParams); 
  25. return $this->call('list', array($params), "Google_Service_AdSenseHost_Accounts");