class Accounts extends Resource (View source)

The "accounts" collection of methods.

Typical usage is:

 $adsensehostService = new Google\Service\AdSenseHost(...);
 $accounts = $adsensehostService->accounts;

Methods

get(string $accountId, array $optParams = [])

Get information about the selected associated AdSense account. (accounts.get)

listAccounts(string|array $filterAdClientId, array $optParams = [])

List hosted accounts associated with this AdSense account by ad client id.

Details

Account get(string $accountId, array $optParams = [])

Get information about the selected associated AdSense account. (accounts.get)

Parameters

string $accountId

Account to get information about.

array $optParams

Optional parameters.

Return Value

Account

Exceptions

Exception

Accounts listAccounts(string|array $filterAdClientId, array $optParams = [])

List hosted accounts associated with this AdSense account by ad client id.

(accounts.listAccounts)

Parameters

string|array $filterAdClientId

Ad clients to list accounts for.

array $optParams

Optional parameters.

Return Value

Accounts

Exceptions

Exception