Class AccountsResource.HomepageResource
The "homepage" collection of methods.
Inherited Members
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 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 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: |
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: |
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: |
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: |
Returns
Type | Description |
---|---|
AccountsResource.HomepageResource.UpdateHomepageRequest |