Class AccountsResource
The "accounts" collection of methods.
Inherited Members
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(ulong, ulong)
Claims the website of a Merchant Center sub-account. Merchant accounts with approved third-party CSSs aren't required to claim a website.
Declaration
public virtual AccountsResource.ClaimwebsiteRequest Claimwebsite(ulong merchantId, ulong accountId)
Parameters
Type | Name | Description |
---|---|---|
ulong | 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 |
ulong | 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(ulong, ulong)
Deletes a Merchant Center sub-account.
Declaration
public virtual AccountsResource.DeleteRequest Delete(ulong merchantId, ulong accountId)
Parameters
Type | Name | Description |
---|---|---|
ulong | 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. |
ulong | accountId | The ID of the account. |
Returns
Type | Description |
---|---|
AccountsResource.DeleteRequest |
Get(ulong, ulong)
Retrieves a Merchant Center account.
Declaration
public virtual AccountsResource.GetRequest Get(ulong merchantId, ulong accountId)
Parameters
Type | Name | Description |
---|---|---|
ulong | 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 |
ulong | accountId | The ID of the account. |
Returns
Type | Description |
---|---|
AccountsResource.GetRequest |
Insert(Account, ulong)
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. |
ulong | merchantId | The ID of the managing account. This must be a multi-client account. |
Returns
Type | Description |
---|---|
AccountsResource.InsertRequest |
Link(AccountsLinkRequest, ulong, ulong)
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. |
ulong | 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 |
ulong | accountId | The ID of the account that should be linked. |
Returns
Type | Description |
---|---|
AccountsResource.LinkRequest |
List(ulong)
Lists the sub-accounts in your Merchant Center account.
Declaration
public virtual AccountsResource.ListRequest List(ulong merchantId)
Parameters
Type | Name | Description |
---|---|---|
ulong | merchantId | The ID of the managing account. This must be a multi-client account. |
Returns
Type | Description |
---|---|
AccountsResource.ListRequest |
Listlinks(ulong, ulong)
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 |
---|---|---|
ulong | 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 |
ulong | accountId | The ID of the account for which to list links. |
Returns
Type | Description |
---|---|
AccountsResource.ListlinksRequest |
Requestphoneverification(RequestPhoneVerificationRequest, long, long)
Request verification code to start phone verification.
Declaration
public virtual AccountsResource.RequestphoneverificationRequest Requestphoneverification(RequestPhoneVerificationRequest body, long merchantId, long accountId)
Parameters
Type | Name | Description |
---|---|---|
RequestPhoneVerificationRequest | body | The body of the request. |
long | merchantId | Required. 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. |
long | accountId | Required. The ID of the account. |
Returns
Type | Description |
---|---|
AccountsResource.RequestphoneverificationRequest |
Update(Account, ulong, ulong)
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. |
ulong | 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 |
ulong | accountId | The ID of the account. |
Returns
Type | Description |
---|---|
AccountsResource.UpdateRequest |
Updatelabels(AccountsUpdateLabelsRequest, ulong, ulong)
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. |
ulong | merchantId | The ID of the managing account. |
ulong | accountId | The ID of the account whose labels are updated. |
Returns
Type | Description |
---|---|
AccountsResource.UpdatelabelsRequest |
Verifyphonenumber(VerifyPhoneNumberRequest, long, long)
Validates verification code to verify phone number for the account. If successful this will overwrite the
value of accounts.businessinformation.phoneNumber
. Only verified phone number will replace an existing
verified phone number.
Declaration
public virtual AccountsResource.VerifyphonenumberRequest Verifyphonenumber(VerifyPhoneNumberRequest body, long merchantId, long accountId)
Parameters
Type | Name | Description |
---|---|---|
VerifyPhoneNumberRequest | body | The body of the request. |
long | merchantId | Required. 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. |
long | accountId | Required. The ID of the account. |
Returns
Type | Description |
---|---|
AccountsResource.VerifyphonenumberRequest |