class Repricingrules extends Resource (View source)

The "repricingrules" collection of methods.

Typical usage is:

 $contentService = new Google\Service\ShoppingContent(...);
 $repricingrules = $contentService->repricingrules;

Methods

create(string $merchantId, RepricingRule $postBody, array $optParams = [])

Creates a repricing rule for your Merchant Center account.

delete(string $merchantId, string $ruleId, array $optParams = [])

Deletes a repricing rule in your Merchant Center account.

get(string $merchantId, string $ruleId, array $optParams = [])

Retrieves a repricing rule from your Merchant Center account.

listRepricingrules(string $merchantId, array $optParams = [])

Lists the repricing rules in your Merchant Center account.

patch(string $merchantId, string $ruleId, RepricingRule $postBody, array $optParams = [])

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. (repricingrules.patch)

Details

RepricingRule create(string $merchantId, RepricingRule $postBody, array $optParams = [])

Creates a repricing rule for your Merchant Center account.

(repricingrules.create)

Parameters

string $merchantId

Required. The id of the merchant who owns the repricing rule.

RepricingRule $postBody
array $optParams

Optional parameters.

Return Value

RepricingRule

delete(string $merchantId, string $ruleId, array $optParams = [])

Deletes a repricing rule in your Merchant Center account.

(repricingrules.delete)

Parameters

string $merchantId

Required. The id of the merchant who owns the repricing rule.

string $ruleId

Required. The id of the rule to Delete.

array $optParams

Optional parameters.

RepricingRule get(string $merchantId, string $ruleId, array $optParams = [])

Retrieves a repricing rule from your Merchant Center account.

(repricingrules.get)

Parameters

string $merchantId

Required. The id of the merchant who owns the repricing rule.

string $ruleId

Required. The id of the rule to retrieve.

array $optParams

Optional parameters.

Return Value

RepricingRule

ListRepricingRulesResponse listRepricingrules(string $merchantId, array $optParams = [])

Lists the repricing rules in your Merchant Center account.

(repricingrules.listRepricingrules)

Parameters

string $merchantId

Required. The id of the merchant who owns the repricing rule.

array $optParams

Optional parameters.

Return Value

ListRepricingRulesResponse

RepricingRule patch(string $merchantId, string $ruleId, RepricingRule $postBody, array $optParams = [])

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. (repricingrules.patch)

Parameters

string $merchantId

Required. The id of the merchant who owns the repricing rule.

string $ruleId

Required. The id of the rule to update.

RepricingRule $postBody
array $optParams

Optional parameters.

Return Value

RepricingRule