class Accounts extends Resource (View source)

The "accounts" collection of methods.

Typical usage is:

 $cssService = new Google\Service\Css(...);
 $accounts = $cssService->accounts;

Methods

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

Retrieves a single CSS/MC account by ID. (accounts.get)

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

Lists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name. (accounts.listChildAccounts)

updateLabels(string $name, UpdateAccountLabelsRequest $postBody, array $optParams = [])

Updates labels assigned to CSS/MC accounts by a CSS domain.

Details

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

Retrieves a single CSS/MC account by ID. (accounts.get)

Parameters

string $name

Required. The name of the managed CSS/MC account. Format: accounts/{account}

array $optParams

Optional parameters.

Return Value

Account

Exceptions

Exception

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

Lists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name. (accounts.listChildAccounts)

Parameters

string $parent

Required. The parent account. Must be a CSS group or domain. Format: accounts/{account}

array $optParams

Optional parameters.

Return Value

ListChildAccountsResponse

Exceptions

Exception

Account updateLabels(string $name, UpdateAccountLabelsRequest $postBody, array $optParams = [])

Updates labels assigned to CSS/MC accounts by a CSS domain.

(accounts.updateLabels)

Parameters

string $name

Required. The label resource name. Format: accounts/{account}

UpdateAccountLabelsRequest $postBody
array $optParams

Optional parameters.

Return Value

Account

Exceptions

Exception