Show / Hide Table of Contents

Class HomepageService.HomepageServiceBase

Base class for server-side implementations of HomepageService

Inheritance
object
HomepageService.HomepageServiceBase
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
[BindServiceMethod(typeof(HomepageService), "BindService")]
public abstract class HomepageService.HomepageServiceBase

Methods

ClaimHomepage(ClaimHomepageRequest, ServerCallContext)

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 virtual Task<Homepage> ClaimHomepage(ClaimHomepageRequest request, ServerCallContext context)
Parameters
Type Name Description
ClaimHomepageRequest request

The request received from the client.

ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Homepage>

The response to send back to the client (wrapped by a task).

GetHomepage(GetHomepageRequest, ServerCallContext)

Retrieves a store's homepage.

Declaration
public virtual Task<Homepage> GetHomepage(GetHomepageRequest request, ServerCallContext context)
Parameters
Type Name Description
GetHomepageRequest request

The request received from the client.

ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Homepage>

The response to send back to the client (wrapped by a task).

UnclaimHomepage(UnclaimHomepageRequest, ServerCallContext)

Unclaims a store's homepage. Executing this method requires admin access.

Declaration
public virtual Task<Homepage> UnclaimHomepage(UnclaimHomepageRequest request, ServerCallContext context)
Parameters
Type Name Description
UnclaimHomepageRequest request

The request received from the client.

ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Homepage>

The response to send back to the client (wrapped by a task).

UpdateHomepage(UpdateHomepageRequest, ServerCallContext)

Updates a store's homepage. Executing this method requires admin access.

Declaration
public virtual Task<Homepage> UpdateHomepage(UpdateHomepageRequest request, ServerCallContext context)
Parameters
Type Name Description
UpdateHomepageRequest request

The request received from the client.

ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Homepage>

The response to send back to the client (wrapped by a task).

In this article
Back to top Generated by DocFX