Show / Hide Table of Contents

Class AccountsResource.LabelsResource

The "labels" collection of methods.

Inheritance
object
AccountsResource.LabelsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.ShoppingContent.v2_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class AccountsResource.LabelsResource

Constructors

LabelsResource(IClientService)

Constructs a new resource.

Declaration
public LabelsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(AccountLabel, long)

Creates a new label, not assigned to any account.

Declaration
public virtual AccountsResource.LabelsResource.CreateRequest Create(AccountLabel body, long accountId)
Parameters
Type Name Description
AccountLabel body

The body of the request.

long accountId

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

Returns
Type Description
AccountsResource.LabelsResource.CreateRequest

Delete(long, long)

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

Declaration
public virtual AccountsResource.LabelsResource.DeleteRequest Delete(long accountId, long labelId)
Parameters
Type Name Description
long accountId

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

long labelId

Required. The id of the label to delete.

Returns
Type Description
AccountsResource.LabelsResource.DeleteRequest

List(long)

Lists the labels assigned to an account.

Declaration
public virtual AccountsResource.LabelsResource.ListRequest List(long accountId)
Parameters
Type Name Description
long accountId

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

Returns
Type Description
AccountsResource.LabelsResource.ListRequest

Patch(AccountLabel, long, long)

Updates a label.

Declaration
public virtual AccountsResource.LabelsResource.PatchRequest Patch(AccountLabel body, long accountId, long labelId)
Parameters
Type Name Description
AccountLabel body

The body of the request.

long accountId

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

long labelId

Required. The id of the label to update.

Returns
Type Description
AccountsResource.LabelsResource.PatchRequest
In this article
Back to top Generated by DocFX