Show / Hide Table of Contents

Class GbpAccountsServiceClientImpl

GbpAccountsService client wrapper implementation, for convenient use.

Inheritance
object
GbpAccountsServiceClient
GbpAccountsServiceClientImpl
Inherited Members
GbpAccountsServiceClient.DefaultEndpoint
GbpAccountsServiceClient.DefaultScopes
GbpAccountsServiceClient.ServiceMetadata
GbpAccountsServiceClient.CreateAsync(CancellationToken)
GbpAccountsServiceClient.Create()
GbpAccountsServiceClient.ShutdownDefaultChannelsAsync()
GbpAccountsServiceClient.ListGbpAccounts(string, string, int?, CallSettings)
GbpAccountsServiceClient.ListGbpAccountsAsync(string, string, int?, CallSettings)
GbpAccountsServiceClient.ListGbpAccounts(AccountName, string, int?, CallSettings)
GbpAccountsServiceClient.ListGbpAccountsAsync(AccountName, string, int?, CallSettings)
GbpAccountsServiceClient.LinkGbpAccountAsync(LinkGbpAccountRequest, CancellationToken)
GbpAccountsServiceClient.LinkGbpAccount(string, CallSettings)
GbpAccountsServiceClient.LinkGbpAccountAsync(string, CallSettings)
GbpAccountsServiceClient.LinkGbpAccountAsync(string, CancellationToken)
GbpAccountsServiceClient.LinkGbpAccount(AccountName, CallSettings)
GbpAccountsServiceClient.LinkGbpAccountAsync(AccountName, CallSettings)
GbpAccountsServiceClient.LinkGbpAccountAsync(AccountName, CancellationToken)
object.GetHashCode()
object.GetType()
object.ToString()
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
GbpAccountsServiceClient.GrpcClient

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
GbpAccountsServiceClient.LinkGbpAccount(LinkGbpAccountRequest, CallSettings)

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
GbpAccountsServiceClient.LinkGbpAccountAsync(LinkGbpAccountRequest, CallSettings)

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
GbpAccountsServiceClient.ListGbpAccounts(ListGbpAccountsRequest, CallSettings)

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.

Overrides
GbpAccountsServiceClient.ListGbpAccountsAsync(ListGbpAccountsRequest, CallSettings)
In this article
Back to top Generated by DocFX