Class RegionsResource
The "regions" collection of methods.
Inherited Members
Namespace: Google.Apis.ShoppingContent.v2_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class RegionsResource
Constructors
RegionsResource(IClientService)
Constructs a new resource.
Declaration
public RegionsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(Region, long)
Creates a region definition in your Merchant Center account.
Declaration
public virtual RegionsResource.CreateRequest Create(Region body, long merchantId)
Parameters
Type | Name | Description |
---|---|---|
Region | body | The body of the request. |
long | merchantId | Required. The id of the merchant for which to create region definition. |
Returns
Type | Description |
---|---|
RegionsResource.CreateRequest |
Delete(long, string)
Deletes a region definition from your Merchant Center account.
Declaration
public virtual RegionsResource.DeleteRequest Delete(long merchantId, string regionId)
Parameters
Type | Name | Description |
---|---|---|
long | merchantId | Required. The id of the merchant for which to delete region definition. |
string | regionId | Required. The id of the region to delete. |
Returns
Type | Description |
---|---|
RegionsResource.DeleteRequest |
Get(long, string)
Retrieves a region defined in your Merchant Center account.
Declaration
public virtual RegionsResource.GetRequest Get(long merchantId, string regionId)
Parameters
Type | Name | Description |
---|---|---|
long | merchantId | Required. The id of the merchant for which to retrieve region definition. |
string | regionId | Required. The id of the region to retrieve. |
Returns
Type | Description |
---|---|
RegionsResource.GetRequest |
List(long)
Lists the regions in your Merchant Center account.
Declaration
public virtual RegionsResource.ListRequest List(long merchantId)
Parameters
Type | Name | Description |
---|---|---|
long | merchantId | Required. The id of the merchant for which to list region definitions. |
Returns
Type | Description |
---|---|
RegionsResource.ListRequest |
Patch(Region, long, string)
Updates a region definition in your Merchant Center account.
Declaration
public virtual RegionsResource.PatchRequest Patch(Region body, long merchantId, string regionId)
Parameters
Type | Name | Description |
---|---|---|
Region | body | The body of the request. |
long | merchantId | Required. The id of the merchant for which to update region definition. |
string | regionId | Required. The id of the region to update. |
Returns
Type | Description |
---|---|
RegionsResource.PatchRequest |