Show / Hide Table of Contents

Class CollectionsResource

The "collections" collection of methods.

Inheritance
object
CollectionsResource
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 CollectionsResource

Constructors

CollectionsResource(IClientService)

Constructs a new resource.

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

Methods

Create(Collection, long)

Uploads a collection to your Merchant Center account. If a collection with the same collectionId already exists, this method updates that entry. In each update, the collection is completely replaced by the fields in the body of the update request.

Declaration
public virtual CollectionsResource.CreateRequest Create(Collection body, long merchantId)
Parameters
Type Name Description
Collection body

The body of the request.

long merchantId

Required. The ID of the account that contains the collection. This account cannot be a multi-client account.

Returns
Type Description
CollectionsResource.CreateRequest

Delete(long, string)

Deletes a collection from your Merchant Center account.

Declaration
public virtual CollectionsResource.DeleteRequest Delete(long merchantId, string collectionId)
Parameters
Type Name Description
long merchantId

Required. The ID of the account that contains the collection. This account cannot be a multi-client account.

string collectionId

Required. The collectionId of the collection. CollectionId is the same as the REST ID of the collection.

Returns
Type Description
CollectionsResource.DeleteRequest

Get(long, string)

Retrieves a collection from your Merchant Center account.

Declaration
public virtual CollectionsResource.GetRequest Get(long merchantId, string collectionId)
Parameters
Type Name Description
long merchantId

Required. The ID of the account that contains the collection. This account cannot be a multi-client account.

string collectionId

Required. The REST ID of the collection.

Returns
Type Description
CollectionsResource.GetRequest

List(long)

Lists the collections in your Merchant Center account. The response might contain fewer items than specified by page_size. Rely on next_page_token to determine if there are more items to be requested.

Declaration
public virtual CollectionsResource.ListRequest List(long merchantId)
Parameters
Type Name Description
long merchantId

Required. The ID of the account that contains the collection. This account cannot be a multi-client account.

Returns
Type Description
CollectionsResource.ListRequest
In this article
Back to top Generated by DocFX