class Accounts extends Resource (View source)

The "accounts" collection of methods.

Typical usage is:

 $dfareportingService = new Google\Service\Dfareporting(...);
 $accounts = $dfareportingService->accounts;

Methods

get(string $profileId, string $id, array $optParams = [])

Gets one account by ID. (accounts.get)

listAccounts(string $profileId, array $optParams = [])

Retrieves the list of accounts, possibly filtered. This method supports paging. (accounts.listAccounts)

patch(string $profileId, string $id, Account $postBody, array $optParams = [])

Updates an existing account. This method supports patch semantics.

update(string $profileId, Account $postBody, array $optParams = [])

Updates an existing account. (accounts.update)

Details

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

Gets one account by ID. (accounts.get)

Parameters

string $profileId

User profile ID associated with this request.

string $id

Account ID.

array $optParams

Optional parameters.

Return Value

Account

Exceptions

Exception

AccountsListResponse listAccounts(string $profileId, array $optParams = [])

Retrieves the list of accounts, possibly filtered. This method supports paging. (accounts.listAccounts)

Parameters

string $profileId

User profile ID associated with this request.

array $optParams

Optional parameters.

Return Value

AccountsListResponse

Exceptions

Exception

Account patch(string $profileId, string $id, Account $postBody, array $optParams = [])

Updates an existing account. This method supports patch semantics.

(accounts.patch)

Parameters

string $profileId

User profile ID associated with this request.

string $id

Required. Account ID.

Account $postBody
array $optParams

Optional parameters.

Return Value

Account

Exceptions

Exception

Account update(string $profileId, Account $postBody, array $optParams = [])

Updates an existing account. (accounts.update)

Parameters

string $profileId

User profile ID associated with this request.

Account $postBody
array $optParams

Optional parameters.

Return Value

Account

Exceptions

Exception