Class AccountsResource.ClaimwebsiteRequest
Claims the website of a Merchant Center sub-account. Merchant accounts with approved third-party CSSs aren't required to claim a website.
Inheritance
Inherited Members
Namespace: Google.Apis.ShoppingContent.v2_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class AccountsResource.ClaimwebsiteRequest : ShoppingContentBaseServiceRequest<AccountsClaimWebsiteResponse>, IClientServiceRequest<AccountsClaimWebsiteResponse>, IClientServiceRequest
Constructors
ClaimwebsiteRequest(IClientService, ulong, ulong)
Constructs a new Claimwebsite request.
Declaration
public ClaimwebsiteRequest(IClientService service, ulong merchantId, ulong accountId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
ulong | merchantId | |
ulong | accountId |
Properties
AccountId
The ID of the account whose website is claimed.
Declaration
[RequestParameter("accountId", RequestParameterType.Path)]
public virtual ulong AccountId { get; }
Property Value
Type | Description |
---|---|
ulong |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MerchantId
The ID of the managing account. If this parameter is not the same as accountId, then this account must
be a multi-client account and accountId
must be the ID of a sub-account of this account.
Declaration
[RequestParameter("merchantId", RequestParameterType.Path)]
public virtual ulong MerchantId { get; }
Property Value
Type | Description |
---|---|
ulong |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Overwrite
Only available to selected merchants, for example multi-client accounts (MCAs) and their sub-accounts.
When set to True
, this option removes any existing claim on the requested website and replaces it with
a claim from the account that makes the request.
Declaration
[RequestParameter("overwrite", RequestParameterType.Query)]
public virtual bool? Overwrite { get; set; }
Property Value
Type | Description |
---|---|
bool? |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes Claimwebsite parameter list.
Declaration
protected override void InitParameters()