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 |
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 |
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 |
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, 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 all the accounts the user has access to. This method is eventually consistent, meaning changes such as creating, updating an account or a change of relationships between accounts may not show up in the results immediately. Instead, these changes propagate over a short period, after which the updated information can match the associated predicates. That means, that searching by account name might not return a recently changed account even though it satisfies the predicate.
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 aggregation service provider. 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 |