* $adsensehostService = new Google\Service\AdSenseHost(...); * $accounts = $adsensehostService->accounts; * */ class Accounts extends \Google\Service\Resource { /** * Get information about the selected associated AdSense account. (accounts.get) * * @param string $accountId Account to get information about. * @param array $optParams Optional parameters. * @return Account */ public function get($accountId, $optParams = []) { $params = ['accountId' => $accountId]; $params = array_merge($params, $optParams); return $this->call('get', [$params], Account::class); } /** * List hosted accounts associated with this AdSense account by ad client id. * (accounts.listAccounts) * * @param string|array $filterAdClientId Ad clients to list accounts for. * @param array $optParams Optional parameters. * @return AccountsModel */ public function listAccounts($filterAdClientId, $optParams = []) { $params = ['filterAdClientId' => $filterAdClientId]; $params = array_merge($params, $optParams); return $this->call('list', [$params], AccountsModel::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Accounts::class, 'Google_Service_AdSenseHost_Resource_Accounts');