class AccountsLabels extends Resource (View source)

The "labels" collection of methods.

Typical usage is:

 $contentService = new Google\Service\ShoppingContent(...);
 $labels = $contentService->accounts_labels;

Methods

create(string $accountId, AccountLabel $postBody, array $optParams = [])

Creates a new label, not assigned to any account. (labels.create)

delete(string $accountId, string $labelId, array $optParams = [])

Deletes a label and removes it from all accounts to which it was assigned.

listAccountsLabels(string $accountId, array $optParams = [])

Lists the labels assigned to an account. (labels.listAccountsLabels)

patch(string $accountId, string $labelId, AccountLabel $postBody, array $optParams = [])

Updates a label. (labels.patch)

Details

AccountLabel create(string $accountId, AccountLabel $postBody, array $optParams = [])

Creates a new label, not assigned to any account. (labels.create)

Parameters

string $accountId

Required. The id of the account this label belongs to.

AccountLabel $postBody
array $optParams

Optional parameters.

Return Value

AccountLabel

Exceptions

Exception

delete(string $accountId, string $labelId, array $optParams = [])

Deletes a label and removes it from all accounts to which it was assigned.

(labels.delete)

Parameters

string $accountId

Required. The id of the account that owns the label.

string $labelId

Required. The id of the label to delete.

array $optParams

Optional parameters.

Exceptions

Exception

ListAccountLabelsResponse listAccountsLabels(string $accountId, array $optParams = [])

Lists the labels assigned to an account. (labels.listAccountsLabels)

Parameters

string $accountId

Required. The account id for whose labels are to be listed.

array $optParams

Optional parameters.

Return Value

ListAccountLabelsResponse

Exceptions

Exception

AccountLabel patch(string $accountId, string $labelId, AccountLabel $postBody, array $optParams = [])

Updates a label. (labels.patch)

Parameters

string $accountId

Required. The id of the account this label belongs to.

string $labelId

Required. The id of the label to update.

AccountLabel $postBody
array $optParams

Optional parameters.

Return Value

AccountLabel

Exceptions

Exception