Class RepricingrulesResource
The "repricingrules" collection of methods.
Inherited Members
Namespace: Google.Apis.ShoppingContent.v2_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class RepricingrulesResource
Constructors
RepricingrulesResource(IClientService)
Constructs a new resource.
Declaration
public RepricingrulesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Repricingreports
Gets the Repricingreports resource.
Declaration
public virtual RepricingrulesResource.RepricingreportsResource Repricingreports { get; }
Property Value
Type | Description |
---|---|
RepricingrulesResource.RepricingreportsResource |
Methods
Create(RepricingRule, long)
Creates a repricing rule for your Merchant Center account.
Declaration
public virtual RepricingrulesResource.CreateRequest Create(RepricingRule body, long merchantId)
Parameters
Type | Name | Description |
---|---|---|
RepricingRule | body | The body of the request. |
long | merchantId | Required. The id of the merchant who owns the repricing rule. |
Returns
Type | Description |
---|---|
RepricingrulesResource.CreateRequest |
Delete(long, string)
Deletes a repricing rule in your Merchant Center account.
Declaration
public virtual RepricingrulesResource.DeleteRequest Delete(long merchantId, string ruleId)
Parameters
Type | Name | Description |
---|---|---|
long | merchantId | Required. The id of the merchant who owns the repricing rule. |
string | ruleId | Required. The id of the rule to Delete. |
Returns
Type | Description |
---|---|
RepricingrulesResource.DeleteRequest |
Get(long, string)
Retrieves a repricing rule from your Merchant Center account.
Declaration
public virtual RepricingrulesResource.GetRequest Get(long merchantId, string ruleId)
Parameters
Type | Name | Description |
---|---|---|
long | merchantId | Required. The id of the merchant who owns the repricing rule. |
string | ruleId | Required. The id of the rule to retrieve. |
Returns
Type | Description |
---|---|
RepricingrulesResource.GetRequest |
List(long)
Lists the repricing rules in your Merchant Center account.
Declaration
public virtual RepricingrulesResource.ListRequest List(long merchantId)
Parameters
Type | Name | Description |
---|---|---|
long | merchantId | Required. The id of the merchant who owns the repricing rule. |
Returns
Type | Description |
---|---|
RepricingrulesResource.ListRequest |
Patch(RepricingRule, long, string)
Updates a repricing rule in your Merchant Center account. All mutable fields will be overwritten in each update request. In each update, you must provide all required mutable fields, or an error will be thrown. If you do not provide an optional field in the update request, if that field currently exists, it will be deleted from the rule.
Declaration
public virtual RepricingrulesResource.PatchRequest Patch(RepricingRule body, long merchantId, string ruleId)
Parameters
Type | Name | Description |
---|---|---|
RepricingRule | body | The body of the request. |
long | merchantId | Required. The id of the merchant who owns the repricing rule. |
string | ruleId | Required. The id of the rule to update. |
Returns
Type | Description |
---|---|
RepricingrulesResource.PatchRequest |