Class HomepageServiceClientImpl
HomepageService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public sealed class HomepageServiceClientImpl : HomepageServiceClient
Remarks
Service to support an API for a store's homepage.
Constructors
HomepageServiceClientImpl(HomepageServiceClient, HomepageServiceSettings, ILogger)
Constructs a client wrapper for the HomepageService service, with the specified gRPC client and settings.
Declaration
public HomepageServiceClientImpl(HomepageService.HomepageServiceClient grpcClient, HomepageServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
HomepageService.HomepageServiceClient | grpcClient | The underlying gRPC client. |
HomepageServiceSettings | settings | The base HomepageServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC HomepageService client
Declaration
public override HomepageService.HomepageServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
HomepageService.HomepageServiceClient |
Overrides
Methods
ClaimHomepage(ClaimHomepageRequest, CallSettings)
Claims a store's homepage. Executing this method requires admin access.
If the homepage is already claimed, this will recheck the verification (unless the merchant is exempted from claiming, which also exempts from verification) and return a successful response. If ownership can no longer be verified, it will return an error, but it won't clear the claim. In case of failure, a canonical error message will be returned:
- PERMISSION_DENIED: user doesn't have the necessary permissions on this MC account;
- FAILED_PRECONDITION:
- The account is not a Merchant Center account;
- MC account doesn't have a homepage;
- claiming failed (in this case the error message will contain more details).
Declaration
public override Homepage ClaimHomepage(ClaimHomepageRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ClaimHomepageRequest | 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 |
---|---|
Homepage | The RPC response. |
Overrides
ClaimHomepageAsync(ClaimHomepageRequest, CallSettings)
Claims a store's homepage. Executing this method requires admin access.
If the homepage is already claimed, this will recheck the verification (unless the merchant is exempted from claiming, which also exempts from verification) and return a successful response. If ownership can no longer be verified, it will return an error, but it won't clear the claim. In case of failure, a canonical error message will be returned:
- PERMISSION_DENIED: user doesn't have the necessary permissions on this MC account;
- FAILED_PRECONDITION:
- The account is not a Merchant Center account;
- MC account doesn't have a homepage;
- claiming failed (in this case the error message will contain more details).
Declaration
public override Task<Homepage> ClaimHomepageAsync(ClaimHomepageRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ClaimHomepageRequest | 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<Homepage> | A Task containing the RPC response. |
Overrides
GetHomepage(GetHomepageRequest, CallSettings)
Retrieves a store's homepage.
Declaration
public override Homepage GetHomepage(GetHomepageRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetHomepageRequest | 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 |
---|---|
Homepage | The RPC response. |
Overrides
GetHomepageAsync(GetHomepageRequest, CallSettings)
Retrieves a store's homepage.
Declaration
public override Task<Homepage> GetHomepageAsync(GetHomepageRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetHomepageRequest | 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<Homepage> | A Task containing the RPC response. |
Overrides
UnclaimHomepage(UnclaimHomepageRequest, CallSettings)
Unclaims a store's homepage. Executing this method requires admin access.
Declaration
public override Homepage UnclaimHomepage(UnclaimHomepageRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UnclaimHomepageRequest | 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 |
---|---|
Homepage | The RPC response. |
Overrides
UnclaimHomepageAsync(UnclaimHomepageRequest, CallSettings)
Unclaims a store's homepage. Executing this method requires admin access.
Declaration
public override Task<Homepage> UnclaimHomepageAsync(UnclaimHomepageRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UnclaimHomepageRequest | 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<Homepage> | A Task containing the RPC response. |
Overrides
UpdateHomepage(UpdateHomepageRequest, CallSettings)
Updates a store's homepage. Executing this method requires admin access.
Declaration
public override Homepage UpdateHomepage(UpdateHomepageRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateHomepageRequest | 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 |
---|---|
Homepage | The RPC response. |
Overrides
UpdateHomepageAsync(UpdateHomepageRequest, CallSettings)
Updates a store's homepage. Executing this method requires admin access.
Declaration
public override Task<Homepage> UpdateHomepageAsync(UpdateHomepageRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateHomepageRequest | 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<Homepage> | A Task containing the RPC response. |