Class AccountsResource
The "accounts" collection of methods.
Inherited Members
Namespace: Google.Apis.Merchant.accounts_v1
Assembly: Google.Apis.Merchant.accounts_v1.dll
Syntax
public class AccountsResource
Constructors
AccountsResource(IClientService)
Constructs a new resource.
Declaration
public AccountsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
AutofeedSettings
Gets the AutofeedSettings resource.
Declaration
public virtual AccountsResource.AutofeedSettingsResource AutofeedSettings { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.AutofeedSettingsResource |
AutomaticImprovements
Gets the AutomaticImprovements resource.
Declaration
public virtual AccountsResource.AutomaticImprovementsResource AutomaticImprovements { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.AutomaticImprovementsResource |
BusinessIdentity
Gets the BusinessIdentity resource.
Declaration
public virtual AccountsResource.BusinessIdentityResource BusinessIdentity { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.BusinessIdentityResource |
BusinessInfo
Gets the BusinessInfo resource.
Declaration
public virtual AccountsResource.BusinessInfoResource BusinessInfo { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.BusinessInfoResource |
DeveloperRegistration
Gets the DeveloperRegistration resource.
Declaration
public virtual AccountsResource.DeveloperRegistrationResource DeveloperRegistration { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.DeveloperRegistrationResource |
EmailPreferences
Gets the EmailPreferences resource.
Declaration
public virtual AccountsResource.EmailPreferencesResource EmailPreferences { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.EmailPreferencesResource |
GbpAccounts
Gets the GbpAccounts resource.
Declaration
public virtual AccountsResource.GbpAccountsResource GbpAccounts { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.GbpAccountsResource |
Homepage
Gets the Homepage resource.
Declaration
public virtual AccountsResource.HomepageResource Homepage { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.HomepageResource |
Issues
Gets the Issues resource.
Declaration
public virtual AccountsResource.IssuesResource Issues { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.IssuesResource |
OmnichannelSettings
Gets the OmnichannelSettings resource.
Declaration
public virtual AccountsResource.OmnichannelSettingsResource OmnichannelSettings { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.OmnichannelSettingsResource |
OnlineReturnPolicies
Gets the OnlineReturnPolicies resource.
Declaration
public virtual AccountsResource.OnlineReturnPoliciesResource OnlineReturnPolicies { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.OnlineReturnPoliciesResource |
Programs
Gets the Programs resource.
Declaration
public virtual AccountsResource.ProgramsResource Programs { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.ProgramsResource |
Regions
Gets the Regions resource.
Declaration
public virtual AccountsResource.RegionsResource Regions { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.RegionsResource |
Relationships
Gets the Relationships resource.
Declaration
public virtual AccountsResource.RelationshipsResource Relationships { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.RelationshipsResource |
Services
Gets the Services resource.
Declaration
public virtual AccountsResource.ServicesResource Services { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.ServicesResource |
ShippingSettings
Gets the ShippingSettings resource.
Declaration
public virtual AccountsResource.ShippingSettingsResource ShippingSettings { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.ShippingSettingsResource |
TermsOfServiceAgreementStates
Gets the TermsOfServiceAgreementStates resource.
Declaration
public virtual AccountsResource.TermsOfServiceAgreementStatesResource TermsOfServiceAgreementStates { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.TermsOfServiceAgreementStatesResource |
Users
Gets the Users resource.
Declaration
public virtual AccountsResource.UsersResource Users { get; }
Property Value
| Type | Description |
|---|---|
| AccountsResource.UsersResource |
Methods
CreateAndConfigure(CreateAndConfigureAccountRequest)
Creates a Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.
Declaration
public virtual AccountsResource.CreateAndConfigureRequest CreateAndConfigure(CreateAndConfigureAccountRequest body)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateAndConfigureAccountRequest | body | The body of the request. |
Returns
| Type | Description |
|---|---|
| AccountsResource.CreateAndConfigureRequest |
Delete(string)
Deletes the specified account regardless of its type: standalone, advanced account or sub-account. Deleting
an advanced account leads to the deletion of all of its sub-accounts. This also deletes the account's
developer registration entity and
any associated GCP project to the account. Executing this method requires admin access. The deletion
succeeds only if the account does not provide services to any other account and has no processed offers. You
can use the force parameter to override this.
Declaration
public virtual AccountsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the account to delete. Format: |
Returns
| Type | Description |
|---|---|
| AccountsResource.DeleteRequest |
Get(string)
Retrieves an account from your Merchant Center account. After inserting, updating, or deleting an account, it may take several minutes before changes take effect.
Declaration
public virtual AccountsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the account to retrieve. Format: |
Returns
| Type | Description |
|---|---|
| AccountsResource.GetRequest |
List()
Note: For the accounts.list method, quota and limits usage are charged for each user, and not for the
Merchant Center ID or the advanced account ID. To list several sub-accounts, you should use the
accounts.listSubaccounts method, which is more suitable for advanced accounts use case.
Declaration
public virtual AccountsResource.ListRequest List()
Returns
| Type | Description |
|---|---|
| AccountsResource.ListRequest |
ListSubaccounts(string)
List all sub-accounts for a given advanced account. This is a convenience wrapper for the more powerful
accounts.list method. This method will produce the same results as calling ListsAccounts with the
following filter: relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))
Declaration
public virtual AccountsResource.ListSubaccountsRequest ListSubaccounts(string provider)
Parameters
| Type | Name | Description |
|---|---|---|
| string | provider | Required. The aggregation service provider. Format: |
Returns
| Type | Description |
|---|---|
| AccountsResource.ListSubaccountsRequest |
Patch(Account, string)
Updates an account regardless of its type: standalone, advanced account or sub-account. Executing this method requires admin access.
Declaration
public virtual AccountsResource.PatchRequest Patch(Account body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Account | body | The body of the request. |
| string | name | Identifier. The resource name of the account. Format: |
Returns
| Type | Description |
|---|---|
| AccountsResource.PatchRequest |