GoogleGAL_Service_AdSenseHost_Accounts_Resource

The "accounts" collection of methods.

Defined (1)

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

/core/Google/Service/AdSenseHost.php  
  1. class GoogleGAL_Service_AdSenseHost_Accounts_Resource extends GoogleGAL_Service_Resource 
  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 GoogleGAL_Service_AdSenseHost_Account 
  8. */ 
  9. public function get($accountId, $optParams = array()) 
  10. $params = array('accountId' => $accountId); 
  11. $params = array_merge($params, $optParams); 
  12. return $this->call('get', array($params), "GoogleGAL_Service_AdSenseHost_Account"); 
  13.  
  14. /** 
  15. * List hosted accounts associated with this AdSense account by ad client id. 
  16. * (accounts.listAccounts) 
  17. * @param string $filterAdClientId Ad clients to list accounts for. 
  18. * @param array $optParams Optional parameters. 
  19. * @return GoogleGAL_Service_AdSenseHost_Accounts 
  20. */ 
  21. public function listAccounts($filterAdClientId, $optParams = array()) 
  22. $params = array('filterAdClientId' => $filterAdClientId); 
  23. $params = array_merge($params, $optParams); 
  24. return $this->call('list', array($params), "GoogleGAL_Service_AdSenseHost_Accounts");