Class AccountsResource
The "accounts" collection of methods.
Inherited Members
Namespace: Google.Apis.Merchant.accounts_v1beta
Assembly: Google.Apis.Merchant.accounts_v1beta.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 |
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 |
EmailPreferences
Gets the EmailPreferences resource.
Declaration
public virtual AccountsResource.EmailPreferencesResource EmailPreferences { get; }
Property Value
Type | Description |
---|---|
AccountsResource.EmailPreferencesResource |
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 |
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 |
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 standalone 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, MCA or sub-account. Deleting an MCA leads
to the deletion of all of its sub-accounts. 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()
Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on. If no filter is provided, then it returns accounts the user is directly added to.
Declaration
public virtual AccountsResource.ListRequest List()
Returns
Type | Description |
---|---|
AccountsResource.ListRequest |
ListSubaccounts(string)
List all sub-accounts for a given multi client account. This is a convenience wrapper for the more powerful
ListAccounts
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 parent account. Format: |
Returns
Type | Description |
---|---|
AccountsResource.ListSubaccountsRequest |
Patch(Account, string)
Updates an account regardless of its type: standalone, MCA 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 |