Show / Hide Table of Contents

Class AccountsResource

The "accounts" collection of methods.

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

Constructors

AccountsResource(IClientService)

Constructs a new resource.

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

Properties

Credentials

Gets the Credentials resource.

Declaration
public virtual AccountsResource.CredentialsResource Credentials { get; }
Property Value
Type Description
AccountsResource.CredentialsResource

Labels

Gets the Labels resource.

Declaration
public virtual AccountsResource.LabelsResource Labels { get; }
Property Value
Type Description
AccountsResource.LabelsResource

Returncarrier

Gets the Returncarrier resource.

Declaration
public virtual AccountsResource.ReturncarrierResource Returncarrier { get; }
Property Value
Type Description
AccountsResource.ReturncarrierResource

Methods

Authinfo()

Returns information about the authenticated user.

Declaration
public virtual AccountsResource.AuthinfoRequest Authinfo()
Returns
Type Description
AccountsResource.AuthinfoRequest

Claimwebsite(UInt64, UInt64)

Claims the website of a Merchant Center sub-account.

Declaration
public virtual AccountsResource.ClaimwebsiteRequest Claimwebsite(ulong merchantId, ulong accountId)
Parameters
Type Name Description
System.UInt64 merchantId

The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.

System.UInt64 accountId

The ID of the account whose website is claimed.

Returns
Type Description
AccountsResource.ClaimwebsiteRequest

Custombatch(AccountsCustomBatchRequest)

Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.

Declaration
public virtual AccountsResource.CustombatchRequest Custombatch(AccountsCustomBatchRequest body)
Parameters
Type Name Description
AccountsCustomBatchRequest body

The body of the request.

Returns
Type Description
AccountsResource.CustombatchRequest

Delete(UInt64, UInt64)

Deletes a Merchant Center sub-account.

Declaration
public virtual AccountsResource.DeleteRequest Delete(ulong merchantId, ulong accountId)
Parameters
Type Name Description
System.UInt64 merchantId

The ID of the managing account. This must be a multi-client account, and accountId must be the ID of a sub-account of this account.

System.UInt64 accountId

The ID of the account.

Returns
Type Description
AccountsResource.DeleteRequest

Get(UInt64, UInt64)

Retrieves a Merchant Center account.

Declaration
public virtual AccountsResource.GetRequest Get(ulong merchantId, ulong accountId)
Parameters
Type Name Description
System.UInt64 merchantId

The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.

System.UInt64 accountId

The ID of the account.

Returns
Type Description
AccountsResource.GetRequest

Insert(Account, UInt64)

Creates a Merchant Center sub-account.

Declaration
public virtual AccountsResource.InsertRequest Insert(Account body, ulong merchantId)
Parameters
Type Name Description
Account body

The body of the request.

System.UInt64 merchantId

The ID of the managing account. This must be a multi-client account.

Returns
Type Description
AccountsResource.InsertRequest

Link(AccountsLinkRequest, UInt64, UInt64)

Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.

Declaration
public virtual AccountsResource.LinkRequest Link(AccountsLinkRequest body, ulong merchantId, ulong accountId)
Parameters
Type Name Description
AccountsLinkRequest body

The body of the request.

System.UInt64 merchantId

The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.

System.UInt64 accountId

The ID of the account that should be linked.

Returns
Type Description
AccountsResource.LinkRequest

List(UInt64)

Lists the sub-accounts in your Merchant Center account.

Declaration
public virtual AccountsResource.ListRequest List(ulong merchantId)
Parameters
Type Name Description
System.UInt64 merchantId

The ID of the managing account. This must be a multi-client account.

Returns
Type Description
AccountsResource.ListRequest

Listlinks(UInt64, UInt64)

Returns the list of accounts linked to your Merchant Center account.

Declaration
public virtual AccountsResource.ListlinksRequest Listlinks(ulong merchantId, ulong accountId)
Parameters
Type Name Description
System.UInt64 merchantId

The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.

System.UInt64 accountId

The ID of the account for which to list links.

Returns
Type Description
AccountsResource.ListlinksRequest

Update(Account, UInt64, UInt64)

Updates a Merchant Center account. Any fields that are not provided are deleted from the resource.

Declaration
public virtual AccountsResource.UpdateRequest Update(Account body, ulong merchantId, ulong accountId)
Parameters
Type Name Description
Account body

The body of the request.

System.UInt64 merchantId

The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and accountId must be the ID of a sub-account of this account.

System.UInt64 accountId

The ID of the account.

Returns
Type Description
AccountsResource.UpdateRequest

Updatelabels(AccountsUpdateLabelsRequest, UInt64, UInt64)

Updates labels that are assigned to the Merchant Center account by CSS user.

Declaration
public virtual AccountsResource.UpdatelabelsRequest Updatelabels(AccountsUpdateLabelsRequest body, ulong merchantId, ulong accountId)
Parameters
Type Name Description
AccountsUpdateLabelsRequest body

The body of the request.

System.UInt64 merchantId

The ID of the managing account.

System.UInt64 accountId

The ID of the account whose labels are updated.

Returns
Type Description
AccountsResource.UpdatelabelsRequest
In This Article
Back to top