Show / Hide Table of Contents

Class AccountsResource.HomepageResource

The "homepage" collection of methods.

Inheritance
object
AccountsResource.HomepageResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Merchant.accounts_v1beta
Assembly: Google.Apis.Merchant.accounts_v1beta.dll
Syntax
public class AccountsResource.HomepageResource

Constructors

HomepageResource(IClientService)

Constructs a new resource.

Declaration
public HomepageResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Claim(ClaimHomepageRequest, string)

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 is returned: * PERMISSION_DENIED: User doesn't have the necessary permissions on this Merchant Center account. * FAILED_PRECONDITION: - The account is not a Merchant Center account. - Merchant Center account doesn't have a homepage. - Claiming failed (in this case the error message contains more details).

Declaration
public virtual AccountsResource.HomepageResource.ClaimRequest Claim(ClaimHomepageRequest body, string name)
Parameters
Type Name Description
ClaimHomepageRequest body

The body of the request.

string name

Required. The name of the homepage to claim. Format: accounts/{account}/homepage

Returns
Type Description
AccountsResource.HomepageResource.ClaimRequest

GetHomepage(string)

Retrieves a store's homepage.

Declaration
public virtual AccountsResource.HomepageResource.GetHomepageRequest GetHomepage(string name)
Parameters
Type Name Description
string name

Required. The name of the homepage to retrieve. Format: accounts/{account}/homepage

Returns
Type Description
AccountsResource.HomepageResource.GetHomepageRequest

Unclaim(UnclaimHomepageRequest, string)

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

Declaration
public virtual AccountsResource.HomepageResource.UnclaimRequest Unclaim(UnclaimHomepageRequest body, string name)
Parameters
Type Name Description
UnclaimHomepageRequest body

The body of the request.

string name

Required. The name of the homepage to unclaim. Format: accounts/{account}/homepage

Returns
Type Description
AccountsResource.HomepageResource.UnclaimRequest

UpdateHomepage(Homepage, string)

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

Declaration
public virtual AccountsResource.HomepageResource.UpdateHomepageRequest UpdateHomepage(Homepage body, string name)
Parameters
Type Name Description
Homepage body

The body of the request.

string name

Identifier. The resource name of the store's homepage. Format: accounts/{account}/homepage

Returns
Type Description
AccountsResource.HomepageResource.UpdateHomepageRequest
In this article
Back to top Generated by DocFX