class PlatformsAccounts extends Resource (View source)

The "accounts" collection of methods.

Typical usage is:

 $adsenseplatformService = new Google\Service\AdSensePlatform(...);
 $accounts = $adsenseplatformService->platforms_accounts;

Methods

close(string $name, CloseAccountRequest $postBody, array $optParams = [])

Closes a sub-account. (accounts.close)

create(string $parent, Account $postBody, array $optParams = [])

Creates a sub-account. (accounts.create)

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

Gets information about the selected sub-account. (accounts.get)

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

Lists a partial view of sub-accounts for a specific parent account.

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

Looks up information about a sub-account for a specified creation_request_id.

Details

CloseAccountResponse close(string $name, CloseAccountRequest $postBody, array $optParams = [])

Closes a sub-account. (accounts.close)

Parameters

string $name

Required. Account to close. Format: platforms/{platform}/accounts/{account_id}

CloseAccountRequest $postBody
array $optParams

Optional parameters.

Return Value

CloseAccountResponse

Exceptions

Exception

Account create(string $parent, Account $postBody, array $optParams = [])

Creates a sub-account. (accounts.create)

Parameters

string $parent

Required. Platform to create an account for. Format: platforms/{platform}

Account $postBody
array $optParams

Optional parameters.

Return Value

Account

Exceptions

Exception

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

Gets information about the selected sub-account. (accounts.get)

Parameters

string $name

Required. Account to get information about. Format: platforms/{platform}/accounts/{account_id}

array $optParams

Optional parameters.

Return Value

Account

Exceptions

Exception

ListAccountsResponse listPlatformsAccounts(string $parent, array $optParams = [])

Lists a partial view of sub-accounts for a specific parent account.

(accounts.listPlatformsAccounts)

Parameters

string $parent

Required. Platform who parents the accounts. Format: platforms/{platform}

array $optParams

Optional parameters.

Return Value

ListAccountsResponse

Exceptions

Exception

LookupAccountResponse lookup(string $parent, array $optParams = [])

Looks up information about a sub-account for a specified creation_request_id.

If no account exists for the given creation_request_id, returns 404. (accounts.lookup)

Parameters

string $parent

Required. Platform who parents the account. Format: platforms/{platform}

array $optParams

Optional parameters.

Return Value

LookupAccountResponse

Exceptions

Exception