Class AccountsResource.GbpAccountsResource.LinkGbpAccountRequest
Link the specified merchant to a GBP account for all countries. To run this method, you must have admin
access to the Merchant Center account. If you don't have admin access, the request fails with the error
message User is not an administrator of account {ACCOUNT_ID}.
Inheritance
AccountsResource.GbpAccountsResource.LinkGbpAccountRequest
Inherited Members
Namespace: Google.Apis.Merchant.accounts_v1
Assembly: Google.Apis.Merchant.accounts_v1.dll
Syntax
public class AccountsResource.GbpAccountsResource.LinkGbpAccountRequest : MerchantBaseServiceRequest<LinkGbpAccountResponse>, IClientServiceRequest<LinkGbpAccountResponse>, IClientServiceRequest
Constructors
LinkGbpAccountRequest(IClientService, LinkGbpAccountRequest, string)
Constructs a new LinkGbpAccount request.
Declaration
public LinkGbpAccountRequest(IClientService service, LinkGbpAccountRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| LinkGbpAccountRequest | body | |
| string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Parent
Required. The name of the parent resource to which the GBP account is linked. Format:
accounts/{account}.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { 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 LinkGbpAccount parameter list.
Declaration
protected override void InitParameters()