Class BuyongoogleprogramsResource.OnboardRequest
Onboards the BoG program in your Merchant Center account. By using this method, you agree to the Terms of Service. Calling this method is only possible if the authenticated account is the same as the merchant id in the request. Calling this method multiple times will only accept Terms of Service if the latest version is not currently signed.
Inheritance
BuyongoogleprogramsResource.OnboardRequest
Inherited Members
Namespace: Google.Apis.ShoppingContent.v2_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class BuyongoogleprogramsResource.OnboardRequest : ShoppingContentBaseServiceRequest<string>, IClientServiceRequest<string>, IClientServiceRequest
Constructors
OnboardRequest(IClientService, OnboardBuyOnGoogleProgramRequest, long, string)
Constructs a new Onboard request.
Declaration
public OnboardRequest(IClientService service, OnboardBuyOnGoogleProgramRequest body, long merchantId, string regionCode)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
OnboardBuyOnGoogleProgramRequest | body | |
long | merchantId | |
string | regionCode |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MerchantId
Required. The ID of the account.
Declaration
[RequestParameter("merchantId", RequestParameterType.Path)]
public virtual long MerchantId { get; }
Property Value
Type | Description |
---|---|
long |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RegionCode
Required. The program region code ISO 3166-1 alpha-2. Currently only US is available.
Declaration
[RequestParameter("regionCode", RequestParameterType.Path)]
public virtual string RegionCode { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Onboard parameter list.
Declaration
protected override void InitParameters()