class Subaccounts extends Resource (View source)

The "subaccounts" collection of methods.

Typical usage is:

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

Methods

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

Gets one subaccount by ID. (subaccounts.get)

insert(string $profileId, Subaccount $postBody, array $optParams = [])

Inserts a new subaccount. (subaccounts.insert)

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

Gets a list of subaccounts, possibly filtered. This method supports paging.

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

Updates an existing subaccount. This method supports patch semantics.

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

Updates an existing subaccount. (subaccounts.update)

Details

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

Gets one subaccount by ID. (subaccounts.get)

Parameters

string $profileId

User profile ID associated with this request.

string $id

Subaccount ID.

array $optParams

Optional parameters.

Return Value

Subaccount

Exceptions

Exception

Subaccount insert(string $profileId, Subaccount $postBody, array $optParams = [])

Inserts a new subaccount. (subaccounts.insert)

Parameters

string $profileId

User profile ID associated with this request.

Subaccount $postBody
array $optParams

Optional parameters.

Return Value

Subaccount

Exceptions

Exception

SubaccountsListResponse listSubaccounts(string $profileId, array $optParams = [])

Gets a list of subaccounts, possibly filtered. This method supports paging.

(subaccounts.listSubaccounts)

Parameters

string $profileId

User profile ID associated with this request.

array $optParams

Optional parameters.

Return Value

SubaccountsListResponse

Exceptions

Exception

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

Updates an existing subaccount. This method supports patch semantics.

(subaccounts.patch)

Parameters

string $profileId

User profile ID associated with this request.

string $id

Required. Subaccount ID.

Subaccount $postBody
array $optParams

Optional parameters.

Return Value

Subaccount

Exceptions

Exception

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

Updates an existing subaccount. (subaccounts.update)

Parameters

string $profileId

User profile ID associated with this request.

Subaccount $postBody
array $optParams

Optional parameters.

Return Value

Subaccount

Exceptions

Exception