Class AccountsResource.GbpAccountsResource
The "gbpAccounts" collection of methods.
Inherited Members
Namespace: Google.Apis.Merchant.accounts_v1
Assembly: Google.Apis.Merchant.accounts_v1.dll
Syntax
public class AccountsResource.GbpAccountsResource
Constructors
GbpAccountsResource(IClientService)
Constructs a new resource.
Declaration
public GbpAccountsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
LinkGbpAccount(LinkGbpAccountRequest, string)
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}.
Declaration
public virtual AccountsResource.GbpAccountsResource.LinkGbpAccountRequest LinkGbpAccount(LinkGbpAccountRequest body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| LinkGbpAccountRequest | body | The body of the request. |
| string | parent | Required. The name of the parent resource to which the GBP account is linked. Format:
|
Returns
| Type | Description |
|---|---|
| AccountsResource.GbpAccountsResource.LinkGbpAccountRequest |
List(string)
List the GBP accounts for a given merchant.
Declaration
public virtual AccountsResource.GbpAccountsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The name of the parent resource under which the GBP accounts are listed. Format:
|
Returns
| Type | Description |
|---|---|
| AccountsResource.GbpAccountsResource.ListRequest |