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
Assembly: Google.Apis.ShoppingContent.v2.dll
Syntax
public class AccountsResource

Constructors

AccountsResource(IClientService)

Constructs a new resource.

Declaration
public AccountsResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.IClientService service

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

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
In This Article
Back to top