Class AccountsServiceClientImpl
AccountsService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Css.V1
Assembly: Google.Shopping.Css.V1.dll
Syntax
public sealed class AccountsServiceClientImpl : AccountsServiceClient
Remarks
Service for managing CSS/MC account information.
Constructors
AccountsServiceClientImpl(AccountsServiceClient, AccountsServiceSettings, ILogger)
Constructs a client wrapper for the AccountsService service, with the specified gRPC client and settings.
Declaration
public AccountsServiceClientImpl(AccountsService.AccountsServiceClient grpcClient, AccountsServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
AccountsService.AccountsServiceClient | grpcClient | The underlying gRPC client. |
AccountsServiceSettings | settings | The base AccountsServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC AccountsService client
Declaration
public override AccountsService.AccountsServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
AccountsService.AccountsServiceClient |
Overrides
Methods
GetAccount(GetAccountRequest, CallSettings)
Retrieves a single CSS/MC account by ID.
Declaration
public override Account GetAccount(GetAccountRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetAccountRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Account | The RPC response. |
Overrides
GetAccountAsync(GetAccountRequest, CallSettings)
Retrieves a single CSS/MC account by ID.
Declaration
public override Task<Account> GetAccountAsync(GetAccountRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetAccountRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Account> | A Task containing the RPC response. |
Overrides
ListChildAccounts(ListChildAccountsRequest, CallSettings)
Lists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name.
Declaration
public override PagedEnumerable<ListChildAccountsResponse, Account> ListChildAccounts(ListChildAccountsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListChildAccountsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListChildAccountsResponse, Account> | A pageable sequence of Account resources. |
Overrides
ListChildAccountsAsync(ListChildAccountsRequest, CallSettings)
Lists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name.
Declaration
public override PagedAsyncEnumerable<ListChildAccountsResponse, Account> ListChildAccountsAsync(ListChildAccountsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListChildAccountsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListChildAccountsResponse, Account> | A pageable asynchronous sequence of Account resources. |
Overrides
UpdateLabels(UpdateAccountLabelsRequest, CallSettings)
Updates labels assigned to CSS/MC accounts by a CSS domain.
Declaration
public override Account UpdateLabels(UpdateAccountLabelsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountLabelsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Account | The RPC response. |
Overrides
UpdateLabelsAsync(UpdateAccountLabelsRequest, CallSettings)
Updates labels assigned to CSS/MC accounts by a CSS domain.
Declaration
public override Task<Account> UpdateLabelsAsync(UpdateAccountLabelsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountLabelsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Account> | A Task containing the RPC response. |