Class GbpAccountsServiceClientImpl
GbpAccountsService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Merchant.Accounts.V1
Assembly: Google.Shopping.Merchant.Accounts.V1.dll
Syntax
public sealed class GbpAccountsServiceClientImpl : GbpAccountsServiceClient
Remarks
The service facilitates the management of a merchant's Google Business Profile (GBP) account settings. This API defines the following resource model:
- [GbpAccount][google.shopping.merchant.accounts.v1.GbpAccount]
Constructors
GbpAccountsServiceClientImpl(GbpAccountsServiceClient, GbpAccountsServiceSettings, ILogger)
Constructs a client wrapper for the GbpAccountsService service, with the specified gRPC client and settings.
Declaration
public GbpAccountsServiceClientImpl(GbpAccountsService.GbpAccountsServiceClient grpcClient, GbpAccountsServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
GbpAccountsService.GbpAccountsServiceClient | grpcClient | The underlying gRPC client. |
GbpAccountsServiceSettings | settings | The base GbpAccountsServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC GbpAccountsService client
Declaration
public override GbpAccountsService.GbpAccountsServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
GbpAccountsService.GbpAccountsServiceClient |
Overrides
Methods
LinkGbpAccount(LinkGbpAccountRequest, CallSettings)
Link the specified merchant to a GBP account for all countries.
To run this method, you must have admin access to the Merchant Center
account. If you don't have admin access, the request fails with the error
message User is not an administrator of account {ACCOUNT_ID}
.
Declaration
public override LinkGbpAccountResponse LinkGbpAccount(LinkGbpAccountRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
LinkGbpAccountRequest | 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 |
---|---|
LinkGbpAccountResponse | The RPC response. |
Overrides
LinkGbpAccountAsync(LinkGbpAccountRequest, CallSettings)
Link the specified merchant to a GBP account for all countries.
To run this method, you must have admin access to the Merchant Center
account. If you don't have admin access, the request fails with the error
message User is not an administrator of account {ACCOUNT_ID}
.
Declaration
public override Task<LinkGbpAccountResponse> LinkGbpAccountAsync(LinkGbpAccountRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
LinkGbpAccountRequest | 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<LinkGbpAccountResponse> | A Task containing the RPC response. |
Overrides
ListGbpAccounts(ListGbpAccountsRequest, CallSettings)
List the GBP accounts for a given merchant.
Declaration
public override PagedEnumerable<ListGbpAccountsResponse, GbpAccount> ListGbpAccounts(ListGbpAccountsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListGbpAccountsRequest | 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<ListGbpAccountsResponse, GbpAccount> | A pageable sequence of GbpAccount resources. |
Overrides
ListGbpAccountsAsync(ListGbpAccountsRequest, CallSettings)
List the GBP accounts for a given merchant.
Declaration
public override PagedAsyncEnumerable<ListGbpAccountsResponse, GbpAccount> ListGbpAccountsAsync(ListGbpAccountsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListGbpAccountsRequest | 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<ListGbpAccountsResponse, GbpAccount> | A pageable asynchronous sequence of GbpAccount resources. |