class Accounts extends Resource (View source)

The "accounts" collection of methods.

Typical usage is:

 $adsenseService = new Google\Service\Adsense(...);
 $accounts = $adsenseService->accounts;

Methods

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

Gets information about the selected AdSense account. (accounts.get)

getAdBlockingRecoveryTag(string $name, array $optParams = [])

Gets the ad blocking recovery tag of an account.

listAccounts(array $optParams = [])

Lists all accounts available to this user. (accounts.listAccounts)

listChildAccounts(string $parent, array $optParams = [])

Lists all accounts directly managed by the given AdSense account.

Details

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

Gets information about the selected AdSense account. (accounts.get)

Parameters

string $name

Required. Account to get information about. Format: accounts/{account}

array $optParams

Optional parameters.

Return Value

Account

Exceptions

Exception

AdBlockingRecoveryTag getAdBlockingRecoveryTag(string $name, array $optParams = [])

Gets the ad blocking recovery tag of an account.

(accounts.getAdBlockingRecoveryTag)

Parameters

string $name

Required. The name of the account to get the tag for. Format: accounts/{account}

array $optParams

Optional parameters.

Return Value

AdBlockingRecoveryTag

Exceptions

Exception

ListAccountsResponse listAccounts(array $optParams = [])

Lists all accounts available to this user. (accounts.listAccounts)

Parameters

array $optParams

Optional parameters.

Return Value

ListAccountsResponse

Exceptions

Exception

ListChildAccountsResponse listChildAccounts(string $parent, array $optParams = [])

Lists all accounts directly managed by the given AdSense account.

(accounts.listChildAccounts)

Parameters

string $parent

Required. The parent account, which owns the child accounts. Format: accounts/{account}

array $optParams

Optional parameters.

Return Value

ListChildAccountsResponse

Exceptions

Exception